Sign In

@codmir/desktop-connector

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codmir/desktop-connector

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.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@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)

ToolDescription
desktop_screenshotCapture full screenshot as base64 PNG
desktop_clickClick at screen coordinates (x, y)
desktop_double_clickDouble-click at coordinates
desktop_right_clickRight-click to open context menus
desktop_typeType text at the current cursor position
desktop_keyPress a keyboard key or combination
desktop_scrollScroll at coordinates
desktop_mouse_moveMove mouse without clicking
desktop_screen_infoGet screen dimensions and frontmost app

System (requires Codmir desktop agent)

ToolDescription
desktop_shellRun a shell command, returns stdout/stderr/exit code
desktop_list_directoryList files at a path (skips node_modules, .git, etc.)
desktop_statusCheck if the desktop agent is running

Web (requires Codmir desktop agent)

ToolDescription
desktop_fetch_pageFetch a web page, returns status/headers/title/links/body
desktop_scan_routesScan multiple routes for HTTP status codes

Session Management (requires Codmir desktop agent)

ToolDescription
desktop_connectStart agent session (shows border glow in desktop app)
desktop_disconnectEnd agent session

Standalone (no desktop agent needed)

ToolDescription
desktop_open_urlOpen URL in default browser
desktop_get_clipboardRead clipboard text
desktop_set_clipboardWrite text to clipboard

Provider Detection

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

VariableProvider
CODMIR_PROVIDERExplicit override
CLAUDE_CODE or ANTHROPIC_API_KEYClaude
GEMINI_API_KEYGemini
CURSOR_SESSIONCursor
WINDSURF_SESSIONWindsurf

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

Keywords

mcp

FAQs

Package last updated on 31 May 2026

Did you know?

Socket

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.

Install

Related posts