mcp-cdp

v0.3.1
io.github.dockndevai/mcp-cdp Checked 14 hours ago Published 8 days ago

Safe-by-default MCP that drives an Electron/Chrome app over CDP: DOM, console, network, input.

Values you need

VariableWhat it is
CDP_PORToptional The --remote-debugging-port your app/browser exposes (default 9222).
CDP_HOSToptional Host serving the DevTools endpoint (default 127.0.0.1; non-loopback needs CDP_ALLOW_REMOTE).
CDP_MODEoptional Access mode: read-only | read-write | admin. Starts read-only; interactions need read-write.
CDP_ALLOW_EVALoptional Set true to allow the evaluate tool (arbitrary JS) — admin mode only. Default false.
CDP_TARGET_ALLOWLISToptional Comma-separated URL patterns; interactions are confined to matching targets. Empty = all.
CDP_DRY_RUNoptional Set true to log interactions without dispatching them to the browser.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-cdp -- npx -y @dockndevai/mcp-cdp@0.3.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-cdp": {
      "args": [
        "-y",
        "@dockndevai/mcp-cdp@0.3.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-cdp": {
      "args": [
        "-y",
        "@dockndevai/mcp-cdp@0.3.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-cdp": {
      "args": [
        "-y",
        "@dockndevai/mcp-cdp@0.3.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-cdp]
command = "npx"
args = ["-y", "@dockndevai/mcp-cdp@0.3.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_targets, dom_snapshot, query_dom, console_logs, network_requests, screenshot.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json