npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codmir/desktop-connector

v0.1.0

Published

Codmir Desktop Connector - MCP server for AI-powered desktop and browser control. Take screenshots, click, type, scroll, run shell commands, browse web pages, and manage files from Claude, Cursor, or Windsurf.

Readme

@codmir/desktop-connector

MCP server that gives AI assistants (Claude, Cursor, Windsurf) the ability to control the desktop computer, browser, and Codmir desktop app.

Two Modes

With Codmir Desktop App (Full Control)

When the Codmir desktop app is running, the connector communicates with the local desktop agent via TCP. This enables full screen control: screenshots, mouse clicks, typing, keyboard shortcuts, scrolling, shell commands, file listing, and web page fetching.

The desktop agent advertises its port at ~/.codmir/agent-port. The connector discovers this automatically.

Standalone (No Desktop App Required)

Three tools work without the desktop agent:

  • desktop_open_url — Open a URL in the default browser
  • desktop_get_clipboard — Read clipboard contents
  • desktop_set_clipboard — Write to clipboard

Setup

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "codmir-desktop": {
      "command": "npx",
      "args": ["@codmir/desktop-connector"]
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "codmir-desktop": {
      "command": "npx",
      "args": ["@codmir/desktop-connector"]
    }
  }
}

Windsurf

Add to .windsurf/mcp.json:

{
  "mcpServers": {
    "codmir-desktop": {
      "command": "npx",
      "args": ["@codmir/desktop-connector"]
    }
  }
}

Claude Code

claude mcp add codmir-desktop -- npx @codmir/desktop-connector

Tools

Screen Control (requires Codmir desktop agent)

| Tool | Description | |------|-------------| | desktop_screenshot | Capture full screenshot as base64 PNG | | desktop_click | Click at screen coordinates (x, y) | | desktop_double_click | Double-click at coordinates | | desktop_right_click | Right-click to open context menus | | desktop_type | Type text at the current cursor position | | desktop_key | Press a keyboard key or combination | | desktop_scroll | Scroll at coordinates | | desktop_mouse_move | Move mouse without clicking | | desktop_screen_info | Get screen dimensions and frontmost app |

System (requires Codmir desktop agent)

| Tool | Description | |------|-------------| | desktop_shell | Run a shell command, returns stdout/stderr/exit code | | desktop_list_directory | List files at a path (skips node_modules, .git, etc.) | | desktop_status | Check if the desktop agent is running |

Web (requires Codmir desktop agent)

| Tool | Description | |------|-------------| | desktop_fetch_page | Fetch a web page, returns status/headers/title/links/body | | desktop_scan_routes | Scan multiple routes for HTTP status codes |

Session Management (requires Codmir desktop agent)

| Tool | Description | |------|-------------| | desktop_connect | Start agent session (shows border glow in desktop app) | | desktop_disconnect | End agent session |

Standalone (no desktop agent needed)

| Tool | Description | |------|-------------| | desktop_open_url | Open URL in default browser | | desktop_get_clipboard | Read clipboard text | | desktop_set_clipboard | Write text to clipboard |

Provider Detection

The server auto-detects which AI provider is running it based on environment variables:

| Variable | Provider | |----------|----------| | CODMIR_PROVIDER | Explicit override | | CLAUDE_CODE or ANTHROPIC_API_KEY | Claude | | GEMINI_API_KEY | Gemini | | CURSOR_SESSION | Cursor | | WINDSURF_SESSION | Windsurf |

The detected provider is sent to the desktop agent on every request and used for the desktop_connect session glow color.

Development

pnpm install
pnpm build
pnpm start

License

Apache-2.0