by amafjarkasi
MCP server for debugging Electron apps via Chrome DevTools Protocol. Start/attach processes, capture screenshots, read console errors & network logs, inspect DOM, evaluate JS, and automate UI — built for Cursor and other MCP clients.
# Add to your Claude Code skills
git clone https://github.com/amafjarkasi/electron-mcp-serverGuides for using ai agents skills like electron-mcp-server.
electron-mcp-server is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by amafjarkasi. MCP server for debugging Electron apps via Chrome DevTools Protocol. Start/attach processes, capture screenshots, read console errors & network logs, inspect DOM, evaluate JS, and automate UI — built for Cursor and other MCP clients. It has 102 GitHub stars.
electron-mcp-server's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/amafjarkasi/electron-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
electron-mcp-server is primarily written in TypeScript. It is open-source under amafjarkasi on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh electron-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Real Chrome DevTools Protocol superpowers for AI coding agents. Give Cursor, Claude & autonomous agents eyes, hands, and deep runtime inspection inside Electron desktop applications.
Most AI coding agents struggle with desktop applications: they can edit source code, but they cannot see the resulting window, click buttons, read console errors, or diagnose silent main-process crashes.
Electron Debug MCP bridges your agent directly into your Electron runtime via the Chrome DevTools Protocol (CDP) and Node inspector, unlocking full visual, interactive, and diagnostic autonomy.
flowchart LR
A["🤖 AI Agent (Cursor / Claude)"] <-->|"stdio JSON-RPC"| B["⚡ Electron Debug MCP"]
B <-->|"CDP (WebSocket)"| C["🖼️ Renderer Windows\n(DOM · AXTree · Network · V8)"]
B <-->|"Node Inspector / V8"| D["⚙️ Main Process\n(IPC · WebContents · Windows · Fuses)"]
electron_security_audit evaluates running windows against official Electron security guidelines. Flags nodeIntegration, missing contextIsolation, disabled sandbox, unsafe CSP, missing setWindowOpenHandler, unguarded will-navigate, and executable binary fuses.
Automate logins and API forms without leaking credentials. type_text({ text: "{{secret:VAR}}" }) resolves from process.env and automatically redacts the secret from return values, console logs, network entries, and HAR exports with [REDACTED].
High-level single-turn workflows reduce round trips:
act_and_verify: Action → network idle → UI assertion → automatic failure screenshot if assertion fails.triage: Instant health overview with page state, console errors, network failures, and resolved top exception stack.network_failure_report: Aggregates failed HTTP calls with response bodies inline plus an exported HAR artifact.ipc_tap: Intercepts main-process ipcMain.handle and webContents.send calls.ipc_invoke: Call any registered main-process handle channel directly with custom arguments.ipc_schema_inference: Analyzes traffic patterns and automatically emits inferred TypeScript interfaces for your preload bridge.resolve_stack decodes inline base64 and external v3 source maps. When your bundled app throws an exception, the agent gets original .ts and .tsx file names, line numbers, and original source snippets rather than minified bundle noise.
processId: Automatically defaults to the single active app session.readOnlyHint, destructiveHint) so clients can auto-approve safe queries.electron://artifact/{id}.~/.cursor/mcp.json or .cursor/mcp.json){
"mcpServers": {
"electron-debug": {
"command": "npx",
"args": ["-y", "electron-debug-mcp@latest"]
}
}
}
claude_desktop_config.json){
"mcpServers": {
"electron-debug": {
"command": "npx",
"args": ["-y", "electron-debug-mcp@latest"]
}
}
}
[!TIP] Developing locally? Run
npm run buildand configure"command": "node"with"args": ["/path/to/electron-mcp-server/build/index.js"].
All tools accept an optional processId. When only one app is running, it automatically resolves to the active process.
| Tool | Description |
|---|---|
start_app |
Launch Electron app with remote debugging port. Set inspectMain: true to enable main-process debugging. |
stop_app |
Terminate launched app or detach from an attached session. |
attach |
Connect to a running Electron app via DevTools port or WebSocket URL. |
attach_by_pid |
Detect DevTools port from an Electron OS PID's command line and attach. |
find_apps |
Enumerate all running Electron processes on the host machine. |
discover_apps |
Scan local TCP ports (default 9222–9322) to discover live CDP debug endpoints. |
find_installed_apps |
Scan standard OS application directories for installed packaged Electron apps. |
list_apps |
Enumerate all active and managed sessions with uptime, PID, and target counts. |
| Tool | Description |
|---|---|
vision |
Recommended one-shot snapshot: viewport screenshot, page URL/title, console errors, and network failures. Supports markElements: true for Set-of-Marks visual badges. |
snapshot |
Complete semantic accessibility tree (Accessibility.getFullAXTree) with stable element refs (ref: "e1"), roles, names, and backend IDs. Supports markElements: true. |
screenshot |
Capture viewport PNG or JPEG base64 payload. |
save_screenshot |
Capture screenshot to disk (supports CSS selector clipping); registers an artifact. |
diff_screenshot |
Visual regression comparison against a baseline screenshot. |
start_screencast |
Stream live viewport frames into a bounded ring buffer. |
stop_screencast |
Stop screencasting and optionally save the final frame to disk. |
highlight |
Visually highlight a DOM element in the viewport with border and background overlays. |
| Tool | Description |
|---|---|
act_and_verify |
Composite: Executes an action (click, type, click_ax), waits for network idle, verifies assertion, and captures failure screenshot if failed. |
click |
Click the center of an element matching a CSS selector or accessibility ref (e.g. "e1"). |
click_ax |
Robust click locating an element by its accessibility name and optional role. |
type_text |
Type text into focused element, selector, or ref. Supports {{secret:VAR}} resolution and redaction. |
type_ax |
Focus an element by accessibility name and type text with secret placeholder support. |
press_key |
Dispatch keypress or keyboard shortcut (Enter, Escape, Tab, Arrows, Ctrl+A, etc.). |
hover |
Move mouse pointer over a CSS selector or ref without clicking. |
scroll |
Scroll page or element by delta coordinates, or scroll a selector or ref into view. |
drag |
Drag-and-drop between two selectors or refs with native HTML5 dataTransfer payload. |
select_option |
Select an option in a <select> dropdown by value or label. |
set_file_input |
Programmatically set files on an <input type="file">. |
handle_dialog |
Automatically accept or dismiss JavaScript alerts, confirms, and prompts. |
open_deep_link |
Dispatch a custom protocol deep link (e.g. myapp://action) into the application. |
| Tool | Description |
|---|---|
fill_form |
Composite: Smart multi-field form solver (text, select, checkbox, radio, file) with {{secret:VAR}} resolution, auto-submit, and UI assertion. |
responsive_theme_matrix |
Composite: Multi-theme (light, dark) and viewport sweep detecting text clipping & horizontal overflow scrollbars. |
repro_bundle |
Composite: Self-contained bug repro bundle (screenshot, MHTML DOM, HAR replay, console errors, logs, health) zipped into an artifact. |
page_info |
Basic page details: URL, title, dimensions, readyState, and user agent. |
navigate |
Navigate the active page target to a URL with configurable load-state waiting. |
reload |
Reload the active page target (supports cache busting). |
wait_for |
Wait for a CSS selector, page title, URL substring, or custom JS expression. |
get_dom |
Retrieve page HTML markup (supports CSS selector root and maxLength token protection). |
query_selector |
Evaluate CSS query and inspect matching elements' attributes and text content. |
evaluate |
Evaluate arbitrary JavaScript in the renderer page context. |
get_console_messages |
Retrieve buffered console messages and exceptions (supports level and tail filtering). |
get_logs |
Retrieve captured process stdout and stderr logs. |
get_cookies |
Inspect cookies for specified URLs or across all targets. |
set_cookie |
Set browser |