electron-server
MCP server (Node bin) for Electron app automation via CDP. Use with any Electron app running --remote-debugging-port=9222.
Installation
npx @ohah/electron-mcp-serverAsk AI about electron-server
Powered by Claude Β· Grounded in docs
I know everything about electron-server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
electron-mcp-server
MCP (Model Context Protocol) server for Electron app automation via Chrome DevTools Protocol (CDP). Use with Cursor, Claude Desktop, or any MCP client.
MCP μ¬μ© μ μꡬμ¬ν
- Node.js: MCP μλ² μ€νμ νμ (npx λλ μ μ μ€μΉ μ Node νκ²½).
- Electron μ격 λλ²κΉ
: μ±μ
--remote-debugging-port=<port>λ‘ μ€νν΄μΌ μ°κ²° κ°λ₯. κΆμ₯ ν¬νΈ: 9222 (λ¨μΌ μ±), μ¬λ¬ μ±μ΄λ©΄ 9229, 9230 λ± (μλ²λ 9229β9230β9222ββ¦ μμΌλ‘ μ€μΊ).
License
MIT Β© ohah
Usage (Cursor)
-
Install (optional if using npx):
npm install -g @ohah/electron-mcp-serverOr use
npxwithout installing (see step 2). -
Add MCP server in Cursor
- Open Cursor Settings β MCP (or edit
.cursor/mcp.jsonin your project). - Add:
{ "mcpServers": { "electron-mcp": { "command": "npx", "args": ["-y", "@ohah/electron-mcp-server"] } } } - Open Cursor Settings β MCP (or edit
-
Run your Electron app with remote debugging:
electron . --remote-debugging-port=9222 -
Restart Cursor (or reload MCP). The
electron-mcptools will be available when the app is connected.
Usage (Claude Desktop)
In Claude Desktop config (e.g. ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"electron-mcp": {
"command": "npx",
"args": ["-y", "@ohah/electron-mcp-server"]
}
}
}
Then run your Electron app with --remote-debugging-port=9222 and restart Claude Desktop.
Development
- Tools: mise (see
.mise.toml), oxlint/oxfmt for lint and format. - Scripts:
bun run build,bun run mcp(run MCP server),bun run start(run example Electron app).
