mcp-cdp
v0.3.1Safe-by-default MCP that drives an Electron/Chrome app over CDP: DOM, console, network, input.
Values you need
| Variable | What it is | |
|---|---|---|
CDP_PORT | optional | The --remote-debugging-port your app/browser exposes (default 9222). |
CDP_HOST | optional | Host serving the DevTools endpoint (default 127.0.0.1; non-loopback needs CDP_ALLOW_REMOTE). |
CDP_MODE | optional | Access mode: read-only | read-write | admin. Starts read-only; interactions need read-write. |
CDP_ALLOW_EVAL | optional | Set true to allow the evaluate tool (arbitrary JS) — admin mode only. Default false. |
CDP_TARGET_ALLOWLIST | optional | Comma-separated URL patterns; interactions are confined to matching targets. Empty = all. |
CDP_DRY_RUN | optional | 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.1Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_targets, dom_snapshot, query_dom, console_logs, network_requests, screenshot.
- 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