
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@codmir/desktop-connector
Advanced tools
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.
MCP server that gives AI assistants (Claude, Cursor, Windsurf) the ability to control the desktop computer, browser, and Codmir desktop app.
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.
Three tools work without the desktop agent:
desktop_open_url — Open a URL in the default browserdesktop_get_clipboard — Read clipboard contentsdesktop_set_clipboard — Write to clipboardAdd to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"codmir-desktop": {
"command": "npx",
"args": ["@codmir/desktop-connector"]
}
}
}
Add to .cursor/mcp.json:
{
"mcpServers": {
"codmir-desktop": {
"command": "npx",
"args": ["@codmir/desktop-connector"]
}
}
}
Add to .windsurf/mcp.json:
{
"mcpServers": {
"codmir-desktop": {
"command": "npx",
"args": ["@codmir/desktop-connector"]
}
}
}
claude mcp add codmir-desktop -- npx @codmir/desktop-connector
| 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 |
| 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 |
| 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 |
| Tool | Description |
|---|---|
desktop_connect | Start agent session (shows border glow in desktop app) |
desktop_disconnect | End agent session |
| Tool | Description |
|---|---|
desktop_open_url | Open URL in default browser |
desktop_get_clipboard | Read clipboard text |
desktop_set_clipboard | Write text to clipboard |
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.
pnpm install
pnpm build
pnpm start
Apache-2.0
FAQs
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.
The npm package @codmir/desktop-connector receives a total of 0 weekly downloads. As such, @codmir/desktop-connector popularity was classified as not popular.
We found that @codmir/desktop-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.