Electron Debug MCP Server
Provides debugging capabilities for Electron applications, including process management, Chrome DevTools Protocol integration for inspecting targets, executing JavaScript, and controlling application execution.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Electron Debug MCP Server list running Electron processes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Electron Debug MCP
Real Chrome DevTools Protocol superpowers for AI coding agents. Give Cursor, Claude & autonomous agents eyes, hands, and deep runtime inspection inside Electron desktop applications.
π Why Electron Debug MCP?
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)"]Related MCP server: electron-mcp-server
β¨ Key Superpowers
π‘οΈ Runtime Security Audit
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.
π Zero-Leak Secret Automation
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].
π§© Autonomous Composite Workflows
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.
π Deep IPC Observability
ipc_tap: Intercepts main-processipcMain.handleandwebContents.sendcalls.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.
πΊοΈ Source-Mapped Stack Traces
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.
β‘ Frictionless Agent Ergonomics
Optional
processId: Automatically defaults to the single active app session.Tool Annotations: Tools declare standard MCP hints (
readOnlyHint,destructiveHint) so clients can auto-approve safe queries.Artifacts Resource: Output files are indexed as
electron://artifact/{id}.
β‘ Quick Start
1. Configure Your MCP Client
π In Cursor (~/.cursor/mcp.json or .cursor/mcp.json)
{
"mcpServers": {
"electron-debug": {
"command": "npx",
"args": ["-y", "electron-debug-mcp@latest"]
}
}
}π¬ In Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"electron-debug": {
"command": "npx",
"args": ["-y", "electron-debug-mcp@latest"]
}
}
}Developing locally? Run npm run build and configure "command": "node" with "args": ["/path/to/electron-mcp-server/build/index.js"].
π οΈ Tool Matrix (111 Tools)
All tools accept an optional processId. When only one app is running, it automatically resolves to the active process.
π Lifecycle & Connection (8)
Tool | Description |
| Launch Electron app with remote debugging port. Set |
| Terminate launched app or detach from an attached session. |
| Connect to a running Electron app via DevTools port or WebSocket URL. |
| Detect DevTools port from an Electron OS PID's command line and attach. |
| Enumerate all running Electron processes on the host machine. |
| Scan local TCP ports (default 9222β9322) to discover live CDP debug endpoints. |
| Scan standard OS application directories for installed packaged Electron apps. |
| Enumerate all active and managed sessions with uptime, PID, and target counts. |
ποΈ See & Visual Inspection (8)
Tool | Description |
| Recommended one-shot snapshot: viewport screenshot, page URL/title, console errors, and network failures. Supports |
| Complete semantic accessibility tree ( |
| Capture viewport PNG or JPEG base64 payload. |
| Capture screenshot to disk (supports CSS selector clipping); registers an artifact. |
| Visual regression comparison against a baseline screenshot. |
| Stream live viewport frames into a bounded ring buffer. |
| Stop screencasting and optionally save the final frame to disk. |
| Visually highlight a DOM element in the viewport with border and background overlays. |
π±οΈ Act & UI Automation (13)
Tool | Description |
| Composite: Executes an action ( |
| Click the center of an element matching a CSS |
| Robust click locating an element by its accessibility name and optional role. |
| Type text into focused element, |
| Focus an element by accessibility name and type text with secret placeholder support. |
| Dispatch keypress or keyboard shortcut (Enter, Escape, Tab, Arrows, Ctrl+A, etc.). |
| Move mouse pointer over a CSS |
| Scroll page or element by delta coordinates, or scroll a |
| Drag-and-drop between two selectors or refs with native HTML5 |
| Select an option in a |
| Programmatically set files on an |
| Automatically accept or dismiss JavaScript alerts, confirms, and prompts. |
| Dispatch a custom protocol deep link (e.g. |
π Page State & Navigation (20)
Tool | Description |
| Composite: Smart multi-field form solver (text, select, checkbox, radio, file) with |
| Composite: Multi-theme ( |
| Composite: Self-contained bug repro bundle (screenshot, MHTML DOM, HAR replay, console errors, logs, health) zipped into an artifact. |
| Basic page details: URL, title, dimensions, readyState, and user agent. |
| Navigate the active page target to a URL with configurable load-state waiting. |
| Reload the active page target (supports cache busting). |
| Wait for a CSS selector, page title, URL substring, or custom JS expression. |
| Retrieve page HTML markup (supports CSS selector root and |
| Evaluate CSS query and inspect matching elements' attributes and text content. |
| Evaluate arbitrary JavaScript in the renderer page context. |
| Retrieve buffered console messages and exceptions (supports level and tail filtering). |
| Retrieve captured process stdout and stderr logs. |
| Inspect cookies for specified URLs or across all targets. |
| Set browser cookies with domain, path, and security flags. |
| Delete a specific cookie by name. |
| Read items from |
| Write items to |
| Verify page URL, title, element visibility, text matches, and absence of console errors. |
| Export cookies, |
| Restore cookies and origin storage state back into the live Electron session for instant auth bypass and state replay. |
π Network & Downloads (12)
Tool | Description |
| Composite: Network chaos and fault recovery audit (simulating offline, high latency, or HTTP 500 faults) and Resilience Grade ( |
| Composite: Gathers failed HTTP requests (status β₯ 400 or network failure), inlines response bodies, and registers an exported HAR artifact. |
| Buffered HTTP requests and responses. Supports status, failure, and URL pattern filters. |
| Fetch raw response body for a completed |
| Export buffered network traffic to an official HAR 1.2 file and register artifact. |
| Block until zero network requests are in flight and the network has been quiet. |
| Intercept and mock HTTP requests matching a pattern with custom status, headers, or body. |
| Remove all active network interception stubs. |
| Block network requests matching wildcard URL patterns. |
| Inject custom HTTP headers into all subsequent requests. |
| Emulate offline conditions, added round-trip latency, and download/upload throughput caps. |
| Arm download listeners across all sessions and capture downloaded files without save dialogs. |
π Performance, Profiling & Debugger (16)
Tool | Description |
| Composite: Coordinates CDP tracing, CPU profiling, and code coverage over an interaction or reload, returning an aggregated performance bundle and artifact URIs. |
| Composite: Memory leak detector measuring DOM node, event listener, document, and heap growth across iterations post-GC. |
| Renderer performance counters (JS heap used/total, DOM node count, layout count, etc.). |
| Lightweight performance audit analyzing LCP, CLS, paint timing, and audit issues. |
| Buffered Chromium security, mixed content, and deprecation audit issues. |
| Record and export Perfetto/DevTools JSON timeline traces. |
| Record and export V8 |
| Capture complete V8 heap snapshot file artifact. |
| Track JavaScript and CSS code coverage and report unused code percentage. |
| Resolves stack frames back to source snippets; automatically decodes v3 source maps. |
| Set or clear JavaScript breakpoints by script URL and line number. |
| Suspend or resume V8 JavaScript execution via Debugger domain. |
π‘οΈ Main Process, Native Mocks, Menus & Security (23)
Tool | Description |
| Composite: IPC security and crash hardening fuzzer probing active handlers with boundary & attack payloads ( |
| Intercept and mock any Electron native module ( |
| Inspect recorded call history, argument signatures, and timestamps for mocked Electron APIs. |
| Restore original native Electron implementations and purge mock call records. |
| Inspect the native |
| Programmatically dispatch |
| Inspect and trigger native global accelerators ( |
| Watchdog monitoring process exits, crashes ( |
| Comprehensive security audit of webPreferences, context isolation, sandboxing, window handlers, navigation guards, and binary fuses. |
| Directly invoke a main-process IPC handle channel or emit an IPC event with arguments. |
| Infer IPC channel contracts, payload types, and auto-generate TypeScript definitions. |
| Hook main-process IPC to capture traffic between renderer and main. |
| Evaluate JavaScript inside the Electron main/Node context (requires |
| Inspect Electron application state: open windows, metrics, versions, and system paths. |
| Map BrowserWindows and webContents IDs to their respective CDP targets. |
| Show and bring a specific BrowserWindow to the foreground. |
| Move or resize an Electron BrowserWindow. |
| Programmatically allow or deny permissions (notifications, media, geolocation, etc.). |
| Read or write text and image data on the OS clipboard. |
| Render the page to a PDF document artifact. |
| Save the page DOM, stylesheets, and images into an MHTML archive artifact. |
π©Ί Meta & Diagnostics (11)
Tool | Description |
| Composite: Server-side workflow engine with templating ( |
| Composite: One-shot diagnosis aggregating page state, console errors, network failures, audit issues, log tails, and resolved exception stacks. |
| Verify environment health, Node/Electron binaries, and test ephemeral port binding. |
| Health check across all active sessions, target counts, and buffer sizes. |
| Reset buffered console messages, network requests, logs, or IPC entries. |
| Enumerate all CDP targets (pages, workers, iframes, node). |
| Override viewport, user agent, geolocation, device scale factor, and color scheme. |
| Freeze or advance virtual time to test deterministic timers and animations. |
| Stream live console and log messages directly as MCP notifications. |
| Raw CDP escape hatch: execute any |
π¦ Resources & Prompts
π‘ Standard MCP Resources
Expose real-time state and exported artifacts directly via standard MCP resources:
electron://serverβ Server status, version, and host environment.electron://infoβ Active process IDs, target breakdown, and recent error counts.electron://targetsβ Live CDP targets across all connected processes.electron://artifactsβ Index of all exported screenshots, traces, heap snapshots, and HARs.electron://artifact/{id}β Fetch an exported artifact by its ID.electron://process/{id}Β·electron://logs/{id}Β·electron://console/{id}Β·electron://cdp/{proc}/{target}
π¬ Built-in MCP Prompts
Interactive debugging recipes ready for one-click invocation:
debug_blank_windowβ Systematically diagnose white/blank renderers.find_renderer_exceptionβ Isolate unhandled exceptions, inspect audits, and resolve source stacks.ui_smoke_checkβ End-to-end UI verification: wait, interact, and assert.attach_and_screenshotβ Discover local apps, attach, and capture visual status.vision_then_actβ Visual-first agent loop: see, locate semantic target, act, and verify.ax_then_assertβ Accessibility-first action loop: locate by accessible name and assert state.
π Agent Recipes
1. Vision β Act β Verify Loop
// Step 1: Look at the screen and check for errors
{ "name": "vision", "arguments": {} }
// Step 2: Act and verify in a single turn (captures failure screenshot if assertion fails)
{
"name": "act_and_verify",
"arguments": {
"action": { "type": "click_ax", "name": "Sign In" },
"assertion": { "textIncludes": "Welcome back" }
}
}2. Secret Redaction in Automation Forms
{
"name": "type_text",
"arguments": {
"selector": "#api-key",
"text": "{{secret:MY_APP_API_KEY}}"
}
}Resolvesprocess.env.MY_APP_API_KEY, inserts it via CDP, returns typed: "[REDACTED]", and automatically sanitizes the secret from all subsequent logs, console events, and HAR files.
3. Automated Security Audit
{ "name": "electron_security_audit", "arguments": {} }Returns checklist score (0β100), letter grade (AβF), and actionable remediation guidance for webPreferences and Electron binary fuses.
4. IPC Contract Inference
// 1. Arm tap -> 2. Run app interactions -> 3. Infer TypeScript contracts
{ "name": "ipc_schema_inference", "arguments": {} }Generates ready-to-use TypeScript definitions for your preload APIs directly from observed runtime communication.
5. Multi-Step Workflow Engine & Playwright Codegen (run_script)
Execute complex, multi-action automations server-side in a single MCP roundtrip with variable interpolation, conditional branching, retries, assertion checks, and code generation.
{
"name": "run_script",
"arguments": {
"vars": {
"targetWorkspace": "workspace-alpha",
"expectedItems": 3
},
"steps": [
{
"id": "authenticate",
"tool": "type_text",
"args": {
"selector": "input#token",
"text": "{{secret:APP_API_TOKEN}}"
},
"expect": { "status": "success" }
},
{
"id": "switch_workspace",
"tool": "click",
"args": { "selector": "button.workspace-switch" },
"retry": { "retries": 3, "delayMs": 250 }
},
{
"id": "check_banner",
"tool": "eval_js",
"args": { "expression": "Boolean(document.querySelector('.promo-modal'))" }
},
{
"id": "dismiss_banner",
"if": "{{steps.check_banner.result.value}} == true",
"tool": "click",
"args": { "selector": ".promo-modal .close-btn" }
},
{
"id": "verify_workspace_state",
"tool": "eval_js",
"args": {
"expression": "({ active: document.querySelector('#current-ws').textContent.trim(), count: document.querySelectorAll('.item').length })"
},
"expect": {
"js": "result.value.active === 'workspace-alpha' && result.value.count >= 3"
}
}
],
"exportAs": "playwright"
}
}Capabilities & Options
Feature | Syntax / Option | Purpose |
Variables & Context |
| Reference values from the script's |
Step Dependencies |
| Pass outputs, IDs, or tokens computed in earlier steps directly into subsequent tool arguments. |
Environment & Secrets |
| Inject process environment variables; secrets are automatically masked in logs, console events, and outputs as |
Conditional Branching |
| Skips step execution unless condition evaluates to true ( |
Expectation Assertions |
| Validates step outcome; custom |
Automatic Retries |
| Automatically retries flaky operations with exponential backoff before failing. |
Failure Diagnostics | Automated | If a step fails, captures viewport screenshot artifact ( |
Playwright Codegen |
| Generates a standalone, runnable Playwright |
import { test, expect, _electron as electron } from "@playwright/test";
test("executed script workflow", async () => {
const electronApp = await electron.launch({ args: ["."] });
const window = await electronApp.firstWindow();
// Step: authenticate
await window.locator("input#token").fill(process.env.APP_API_TOKEN || "");
// Step: switch_workspace
await window.locator("button.workspace-switch").click();
// Step: dismiss_banner
await window.locator(".promo-modal .close-btn").click();
// Step: verify_workspace_state
const evalResult = await window.evaluate("({ active: document.querySelector('#current-ws').textContent.trim(), count: document.querySelectorAll('.item').length })");
expect(evalResult).toBeDefined();
await electronApp.close();
});6. Ref Locators & Set-of-Marks Visual Prompting
Inspect accessibility targets with compact refs (e1, e2) and drive interactions without fragile CSS selectors:
// 1. Take snapshot with Set-of-Marks badges in the screenshot
{ "name": "vision", "arguments": { "markElements": true } }
// 2. Click directly by ref token
{ "name": "click", "arguments": { "ref": "e3" } }
// 3. Type text into ref
{ "name": "type_text", "arguments": { "ref": "e4", "text": "Hello Desktop!" } }7. Native Electron API Mocking (Dialogs, Shell, Clipboard)
Bypass OS file dialogs, external URL opens, or update checks during automated test runs:
// 1. Mock dialog.showOpenDialog to return test fixtures
{
"name": "mock_electron_api",
"arguments": {
"module": "dialog",
"method": "showOpenDialog",
"returns": { "canceled": false, "filePaths": ["/fixtures/document.pdf"] }
}
}
// 2. Mock shell.openExternal
{
"name": "mock_electron_api",
"arguments": {
"module": "shell",
"method": "openExternal",
"returns": true
}
}
// 3. Inspect tracked invocations
{ "name": "get_mock_calls", "arguments": { "module": "shell", "method": "openExternal" } }
// 4. Restore original implementation
{ "name": "restore_electron_mocks", "arguments": { "module": "shell", "method": "openExternal" } }8. Native Application Menu & Accelerator Trigger
Automate native OS menus and global keyboard shortcuts:
// 1. Inspect the full native menu tree
{ "name": "get_application_menu", "arguments": {} }
// 2. Click menu item by path or role
{ "name": "click_menu_item", "arguments": { "path": "File > Save" } }
// 3. Dispatch an Electron accelerator directly
{ "name": "trigger_shortcut", "arguments": { "accelerator": "CommandOrControl+Shift+P" } }9. Process Health Watchdog & Crash Diagnostics
{ "name": "get_process_health", "arguments": {} }Returns real-time status ("healthy", "unresponsive", or "crashed"), tracking OOM terminations, child process failures, window hangs, and memory metrics.
10. Storage State Snapshot & Auth Replay
Save full session state (cookies, localStorage, sessionStorage) into Playwright-compatible storage state artifacts to bypass repeated login flows across tests:
// 1. Export storage state to an artifact
{ "name": "save_storage_state", "arguments": {} }
// 2. Restore state into any new Electron session
{
"name": "load_storage_state",
"arguments": {
"state": { "cookies": [...], "origins": [...] }
}
}11. One-Shot Bug Repro Bundle & Issue Generator (repro_bundle)
Package a complete, self-contained zip archive containing viewport screenshot, full MHTML DOM archive, HAR network replay, source-mapped console errors, stderr tail, health metrics, and a GitHub-ready Markdown issue report in one turn:
{
"name": "repro_bundle",
"arguments": {
"notes": "Regression on checkout flow after OAuth upgrade"
}
}Returns artifactUri: "electron://artifact/...", destination path, and the complete markdown summary ready to paste into GitHub issues or Jira.
12. Smart Multi-Field Accessible & Secret Form Solver (fill_form)
Fill complete multi-input forms in a single tool call from either a key-value dictionary or structured field specs:
{
"name": "fill_form",
"arguments": {
"fields": {
"Username or Email": "developer@example.com",
"Password": "{{secret:APP_PASSWORD}}",
"Environment": "Staging",
"Remember Me": true
},
"submit": true,
"expect": {
"textIncludes": "Welcome back"
}
}
}Resolves fields via accessibility tree labels, ARIA attributes, placeholders, or refs (e1), resolves secrets securely, selects dropdown options, toggles checkboxes, clicks submit, and verifies post-submit UI assertions.
13. Network Chaos & Resilience Scorecard (offline_resilience_check)
Simulate real-world network failure conditions (offline, latency, or HTTP 500) during interaction, monitor app health and error bursts, restore network, and compute an executive Resilience Grade (AβF):
{
"name": "offline_resilience_check",
"arguments": {
"faultType": "offline",
"durationMs": 1500,
"action": { "type": "click", "selector": "#save-btn" }
}
}14. Responsive Theme & Viewport Matrix Sweep (responsive_theme_matrix)
Audit how layouts adapt across color schemes (light, dark) and viewport sizes, catching horizontal scrollbar leaks (scrollWidth > innerWidth):
{
"name": "responsive_theme_matrix",
"arguments": {
"themes": ["light", "dark"],
"viewports": [
{ "width": 800, "height": 600, "name": "compact" },
{ "width": 1280, "height": 800, "name": "desktop" }
]
}
}15. IPC Security & Crash Hardening Fuzzer (ipc_fuzz_and_verify)
Harden renderer-to-main IPC communication against malicious or malformed payloads (null, prototype pollution, path traversal, oversized buffers) and verify process crash resistance:
{
"name": "ipc_fuzz_and_verify",
"arguments": {
"iterations": 6
}
}π Changelog & Releases
Version | Release Highlights | Test Suite |
v1.15.1 | Security & Client Startup Fixes: Path validation for | 142 unit Β· 111 smoke |
v1.15.0 | Composite Superpowers & Resilience Workflows: One-Shot Bug Repro Bundle ( | 140 unit Β· 111 smoke |
v1.14.0 | Ref Locators & Set-of-Marks ( | 135 unit Β· 106 smoke |
v1.13.0 | Server-Side Workflow Engine & Codegen ( | 130 unit Β· 97 smoke |
v1.12.0 | Runtime Security Audit ( | 125 unit Β· 96 smoke |
v1.11.0 | Tool Annotations ( | 120 unit Β· 88 smoke |
Complete historical release notes, API migration notes, and dependency updates are tracked inCHANGELOG.md.
π Examples & Guides
Explore production-ready examples and full tool references in the examples/ directory:
π 20 High-Leverage Workflows & Examples β Comprehensive scenarios with step sequences and JSON inputs (repro bundles, IPC fuzzing, responsive matrix sweeps, offline chaos, memory leak diffing, secret masking, and more).
ποΈ Complete All-111-Tools Reference Catalog β Dedicated parameter documentation, schema tables, and ready-to-use JSON invocation examples for every single tool.
βοΈ Runnable Workflow Recipes β Copy-paste JSON automation recipes directly executable via
run_script.π Client Configurations β Setup guides and configuration files for Claude Desktop, Cursor, and NPX.
π§― Troubleshooting
Symptom | Solution |
| Run |
| Omit |
Terminal hangs on | Normal: the server communicates over stdio JSON-RPC. Spawn it from your MCP client. |
Main-process tools fail | Launch the app with |
Port in use / WSAEACCES on Windows | The server dynamically probes and selects ephemeral bindable ports to avoid Hyper-V/WSL conflicts. |
π Development & Verification
npm test # Run build, 140 unit tests, and full 111-tool smoke suite
npm run doctor # Verify environment health and port binding
npm run sync:readme # Automatically synchronize badge counts with registered toolsπ License
ISC Β© Electron Debug MCP contributors
Available Tools
111 toolsact_and_verifyB
Composite action & assertion: performs a UI action (click, click_ax, type_text, type_ax), waits for network idle, verifies assertion (assert_ui), and captures a screenshot immediately if assertion fails.
Inputs: action (required), assertion (required), targetId, processId, +1 more.
assert_uiBRead-only
Check url/title/text/selector/console-error budget/expression. Returns pass:false with per-check detail (does not throw on a failed check).
Inputs: selector, targetId, processId, expression, +5 more.
attachA
Attach to an already-running Electron/Chromium app that was started with --remote-debugging-port. Example: {"debugPort":9222}
Inputs: debugPort (required), name.
attach_by_pidA
Attach to a running Electron app by PID. Resolves the remote-debugging port from process arguments. App must have been started with --remote-debugging-port.
Inputs: pid (required), name.
block_urlsB
Block URL patterns via Network.setBlockedURLs (e.g. .analytics.com/)
Inputs: urls (required), targetId, processId.
capture_mhtmlCIdempotent
Save page as MHTML via Page.captureSnapshot. Also registers the file as an artifact resource.
Inputs: path, targetId, processId.
cdp_commandC
Execute an arbitrary Chrome DevTools Protocol method on a target (Domain.method)
Inputs: method (required), params, targetId, processId.
clear_buffersBDestructive
Clear buffered console messages, network events, process logs, ipc, and/or audits
Inputs: ipc, logs, audits, console, +2 more.
clear_network_stubsB
Disable Fetch interception and drop stub rules for this session
Inputs: processId.
clickC
Click the center of a CSS selector via CDP Input.dispatchMouseEvent
Inputs: ref, button, selector, targetId, +1 more.
click_axA
Click an element by accessibility name (optional role). Uses the AX tree, not CSS.
Inputs: name (required), role, exact, button, +2 more.
delete_cookieBDestructive
Delete a cookie by name. Provide url or domain, same as set_cookie. Defaults url to the page location.
Inputs: name (required), url, path, domain, +2 more.
diagnoseARead-only
Summarize process health: debug port reachability, target roles (page/worker/browser), recent console errors, and discovered local debug ports
Inputs: processId.
diff_screenshotCRead-only
Capture (or compare) a screenshot against a baseline PNG; reports identical + byte similarity
Inputs: baselinePath (required), selector, targetId, processId, +1 more.
discover_appsARead-onlyIdempotent
Scan a local port range (default: 9222-9235) for reachable Chrome DevTools Protocol endpoints. Useful when an app was started with an unknown debug port.
Inputs: endPort, startPort.
doctorARead-onlyIdempotent
Local environment health check: package/node/platform, Electron binary, env flags, managed process count, optional free-port sample (localhost bind only)
Inputs: sampleFreePort.
dragA
Press on fromSelector, move to toSelector, and release. Also sends an HTML5 drag with text/plain dataTransfer so drop listeners receive the payload. Pass data to override the source text.
Inputs: toSelector (required), fromSelector (required), data, targetId, +1 more.
electron_security_auditARead-only
Run security audit against Electron security recommendations (inspects webPreferences, sandbox, nodeIntegration, contextIsolation, setWindowOpenHandler, will-navigate guards, and binary fuses). Requires inspectMain.
Inputs: processId.
emulateC
Device metrics / UA / geolocation / media emulation (or clear=true to reset)
Inputs: clear, media, metrics, targetId, +3 more.
emulate_networkA
Set the page offline, or slow it with latency and throughput in bytes per second. clear:true restores a normal network. Does not change viewport, user agent, geolocation, or media; use emulate for those.
Inputs: clear, offline, targetId, latencyMs, +3 more.
evaluateB
Evaluate JavaScript in an Electron target via CDP Runtime.evaluate. Defaults to the first page/renderer target.
Inputs: expression (required), role, targetId, processId, +1 more.
evaluate_mainC
Evaluate JavaScript in the Electron main/node CDP target (use start_app with inspectMain:true for best results)
Inputs: expression (required), targetId, processId, returnByValue.
export_harBIdempotent
Write the buffered network log as HAR 1.2 JSON (method, URL, status; no bodies). Also exposes the file as an artifact resource.
Inputs: path, processId.
fill_formA
Fill multiple input fields (text, password, checkboxes, radio buttons, dropdowns) and optionally submit in a single turn. Supports {{secret:VAR}} resolution and accessibility refs.
Inputs: fields (required), expect, submit, targetId, +2 more.
find_appsARead-onlyIdempotent
Scan running OS processes for Electron apps. Returns PID, command, and any detected --remote-debugging-port / --inspect ports. Use to find targets for attach or attach_by_pid.
find_installed_appsARead-onlyIdempotent
Scan common install locations for packaged Electron apps (.app / exe / .desktop)
focus_windowA
Bring an Electron BrowserWindow forward (show, focus, moveTop). Requires inspectMain. Omit windowId to use the first window. Pass show:false to focus without showing a hidden window.
Inputs: show, windowId, processId.
get_audit_issuesBRead-only
Buffered Chromium Audits issues (cookie/CORS/mixed-content/deprecations) captured since attach
Inputs: tail, processId.
get_clipboardARead-only
Read the OS clipboard. Returns text and, when present, imageDataUrl (PNG). Requires inspectMain.
Inputs: processId.
get_console_messagesBRead-only
Get buffered page console/log/exception messages captured via CDP
Inputs: tail, level, processId.
get_cookiesCRead-only
Read cookies for the page (optionally filtered by URL)
Inputs: urls, targetId, processId.
get_domBRead-only
Read documentElement.outerHTML or a specific element's outerHTML
Inputs: selector, targetId, processId.
get_downloadsA
Arm download capture and list files saved by the app. Requires inspectMain. The first call installs a will-download listener that writes into directory (default: OS temp) and suppresses the save dialog. Call it before the download starts, then call again for savePath.
Inputs: url, directory, processId.
get_ipc_logBRead-only
Drain / read captured IPC entries after ipc_tap. Requires inspectMain.
Inputs: tail, processId, refreshFromMain.
get_logsARead-only
Get captured stdout/stderr logs for a managed Electron process
Inputs: processId (required), tail.
get_mock_callsBRead-only
Get recorded invocations and arguments for a mocked Electron API method
Inputs: method (required), module (required), targetId, processId.
get_network_logARead-only
Get buffered network request/response events captured via CDP Network domain. Supports optional filtering by tail, status code, failure status, or URL pattern.
Inputs: tail, status, processId, failedOnly, +1 more.
get_performance_metricsCRead-only
Renderer Performance.getMetrics (JS heap, layout count, task duration, β¦)
Inputs: targetId, processId.
get_process_healthBRead-only
Watchdog health check diagnosing renderer crashes (OOM, killed), window hangs, responsiveness, and process memory
Inputs: targetId, processId.
get_response_bodyARead-only
Fetch body for a buffered network requestId (call after Network.loadingFinished)
Inputs: requestId (required), targetId, processId.
get_storageBRead-only
Read localStorage or sessionStorage key/value pairs from the page
Inputs: kind, targetId, processId.
handle_dialogA
Auto accept or dismiss the next JavaScript dialogs (alert/confirm/prompt). clear:true disarms.
Inputs: clear, action, targetId, processId, +1 more.
heap_snapshotBIdempotent
Take a V8 heap snapshot (.heapsnapshot) for leak investigation
Inputs: path, targetId, processId.
highlightC
Scroll a CSS selector into view and paint a CDP overlay highlight (auto-hides when durationMs > 0)
Inputs: selector (required), targetId, processId, durationMs.
hoverA
Move the pointer over a CSS selector (mouseover / hover menus). Does not click.
Inputs: ref, selector, targetId, processId.
ipc_fuzz_and_verifyB
Fuzz test renderer-to-main IPC channels with boundary and malformed payloads (null, prototype pollution, path traversal, oversized buffers) and verify process crash resistance.
Inputs: channels, targetId, processId, timeoutMs, +1 more.
ipc_invokeA
Directly invoke a main-process IPC handle channel or emit an IPC event with arguments. Requires inspectMain.
Inputs: channel (required), args, targetId, processId.
ipc_schema_inferenceARead-only
Infer IPC channel contracts, argument shapes, and generate TypeScript interfaces from captured IPC tap traffic. Requires inspectMain.
Inputs: channel, processId, refreshFromMain.
ipc_tapA
Install main-process IPC tap (ipcMain.handle wrap + webContents send/ipc-message). Requires inspectMain.
Inputs: processId.
leak_checkA
Memory leak detector: triggers garbage collection, measures baseline DOM and heap counters, repeats an action or wait, runs GC again, and reports retained node/listener/heap growth.
Inputs: targetId, processId, iterations, actionScript, +1 more.
list_appsARead-onlyIdempotent
List Electron applications managed or attached by this server
list_targetsARead-onlyIdempotent
List Chrome DevTools Protocol targets with role classification (page/worker/browser/other)
Inputs: processId.
load_storage_stateB
Restore page cookies, localStorage, and sessionStorage from a saved JSON storage state file or payload
Inputs: path, state, targetId, processId.
main_stateCRead-only
Electron main-process nervous system: windows, app paths, versions, metrics (requires inspectMain / node target)
Inputs: processId.
mock_electron_apiB
Mock an Electron main-process API (e.g. dialog.showOpenDialog, shell.openExternal, app.getPath) with a custom return value or implementation. Requires inspectMain.
Inputs: method (required), module (required), returns, targetId, +2 more.
network_failure_reportAIdempotent
Composite network diagnostics: gathers all failed HTTP requests (status >= 400 or failed requests), fetches response bodies inline, and exports a HAR artifact.
Inputs: tail, harPath, processId, urlPattern, +1 more.
network_stubA
Intercept matching URLs via Fetch and fulfill or fail them. Replaces a rule with the same urlPattern. Pair with clear_network_stubs.
Inputs: action (required), urlPattern (required), body, status, +5 more.
offline_resilience_checkA
Audit how gracefully the Electron app handles network loss, high latency, or HTTP 500 server faults during interactions. Emulates faults, checks for crashes or unhandled rejections, restores network, and computes a Resilience Grade (A-F).
Inputs: action, targetId, faultType, processId, +2 more.
open_deep_linkA
Emit Electron open-url and second-instance (requires inspectMain). Returns the URL the app recorded and mirrors it to window.DEEP_LINK.
Inputs: url (required), channel, processId.
page_infoBRead-only
Get URL, title, readyState, and userAgent for a page target
Inputs: targetId, processId.
pauseC
Pause JavaScript execution on a target via Debugger.pause
Inputs: targetId, processId.
perf_auditBRead-only
Lighthouse-lite: Performance.getMetrics + nav/paint timing + recent Audits issues (not full Lighthouse)
Inputs: targetId, processId, includeAudits, includeNavTiming.
perf_snapshotA
Composite performance profiler: coordinates start_tracing + start_cpu_profile + start_coverage, optionally captures an interaction or reload, stops all collectors, and bundles perf audit, metrics, and artifact URIs.
Inputs: reload, targetId, processId, durationMs.
press_keyC
Press a key or shortcut (Enter, Escape, Tab, Arrow*, or a character) with optional modifiers
Inputs: key (required), repeat, selector, targetId, +2 more.
print_pdfBIdempotent
Write the page to a PDF. Uses Page.printToPDF, and falls back to webContents.printToPDF when that method is missing (needs inspectMain). printBackground defaults to true. Also registers as an artifact resource.
Inputs: path, targetId, landscape, processId, +1 more.
query_selectorBRead-only
Query DOM nodes with document.querySelectorAll and return tag/id/class/text summary
Inputs: selector (required), limit, targetId, processId.
reloadC
Reload a page target (or all page targets) in an Electron app
Inputs: targetId, processId, ignoreCache.
remove_breakpointC
Debugger.removeBreakpoint by breakpointId from set_breakpoint
Inputs: breakpointId (required), targetId, processId.
repro_bundleBRead-only
Package a complete, self-contained repro investigation bundle (screenshot, MHTML DOM archive, HAR network replay, source-mapped stack traces, logs, and system/health info) into a zip artifact.
Inputs: notes, targetId, processId, outputPath.
resolve_stackBRead-only
Resolve stack frames to source snippets (Debugger.getScriptSource / file://)
Inputs: frames (required), targetId, processId, contextLines.
responsive_theme_matrixARead-only
Run a multi-theme (dark/light) and multi-viewport responsive sweep, verifying UI layout, detecting text clipping/horizontal overflow, and capturing screenshot artifacts.
Inputs: themes, targetId, processId, viewports, +1 more.
restore_electron_mocksB
Restore original implementations of mocked Electron APIs
Inputs: method, module, targetId, processId.
resumeC
Resume JavaScript execution on a target via Debugger.resume
Inputs: targetId, processId.
run_scriptA
Advanced server-side step runner & workflow engine: executes an array of tool steps sequentially with templating ({{vars.x}}, {{steps[0].result.x}}, {{secret:KEY}}), conditional branching (if), assertions (expect), automatic retries, diagnostic failure screenshots, and optional export to Playwright test specs.
Inputs: script (required), exportAs, processId, variables, +3 more.
save_screenshotBIdempotent
Capture a screenshot and write it to a local file path (PNG/JPEG); optional selector clips to element
Inputs: path (required), format, quality, selector, +2 more.
save_storage_stateBRead-only
Export all page cookies, localStorage, and sessionStorage into a standardized JSON storage state artifact (Playwright-compatible format)
Inputs: path, targetId, processId.
screenshotBRead-only
Capture a PNG/JPEG screenshot of a page target via Page.captureScreenshot (optional CSS selector clips to element bounds)
Inputs: format, quality, selector, targetId, +1 more.
scrollA
Scroll the page or an element. With a selector and no deltas, scrolls that element into view. With deltaY/deltaX, sends a mouse wheel at the element (or the viewport).
Inputs: deltaX, deltaY, selector, targetId, +1 more.
select_optionA
Choose an option in a by value or visible label, then fire input and change.
Inputs: selector (required), label, value, targetId, +1 more.
set_breakpointC
Debugger.setBreakpointByUrl (0-based lineNumber). Keep debugger enabled while BPs exist.
Inputs: lineNumber (required), url, targetId, urlRegex, +2 more.
set_clipboardA
Write the OS clipboard. Pass text, imageDataUrl (a data:image/... URL), or both. Requires inspectMain.
Inputs: text, processId, imageDataUrl.
set_console_liveA
Enable/disable live MCP log notifications for console events (all levels when enabled; errors always notify)
Inputs: enabled (required).
set_cookieB
Set a cookie on the page (provide url or domain; defaults to current location.href). file:// pages usually reject cookies unless you pass an http(s) url or domain.
Inputs: name (required), value (required), url, path, +7 more.
set_extra_headersC
Set extra HTTP headers for subsequent requests (Network.setExtraHTTPHeaders)
Inputs: headers (required), targetId, processId.
set_file_inputA
Set files on an via DOM.setFileInputFiles (host paths)
Inputs: files (required), selector (required), targetId, processId.
set_permissionA
Allow or deny an Electron permission and grant it to the page via Browser.grantPermissions. Returns checked, the page's Notification.permission or equivalent. Requires inspectMain. Unlisted permissions are denied after the handler is installed.
Inputs: grant (required), permission (required), probe, processId.
set_storageB
Write localStorage or sessionStorage entries (optionally clear first)
Inputs: entries (required), kind, clear, targetId, +1 more.
set_window_boundsA
Move or resize a BrowserWindow. Omit a field to leave it unchanged. Requires inspectMain. Does not show a hidden window.
Inputs: x, y, width, height, +2 more.
snapshotBRead-only
Accessibility tree snapshot (roles/names) via CDP Accessibility.getFullAXTree β agent-friendly UI map
Inputs: depth, targetId, processId.
start_appB
Start an Electron application with remote debugging enabled. Example: {"appPath":"D:/apps/my-electron-app","debugPort":9222}
Inputs: appPath (required), debugPort, extraArgs, inspectMain.
start_coverageB
Start JS precise coverage (optional CSS rule usage). Pair with stop_coverage.
Inputs: css, targetId, processId.
start_cpu_profileA
Start V8 CPU profiler on a page target (pair with stop_cpu_profile)
Inputs: targetId, processId.
start_screencastB
Start Page.startScreencast; buffers up to maxFrames (ack frames). Pair with stop_screencast.
Inputs: format, quality, targetId, maxFrames, +2 more.
start_tracingB
Start Chrome DevTools Protocol performance tracing (pair with stop_tracing)
Inputs: targetId, processId, categories.
stop_appADestructive
Stop a process started by start_app, or detach bookkeeping for an attached session
Inputs: processId.
stop_coverageCIdempotent
Stop coverage and return JS (and optional CSS) coverage data; optionally write JSON
Inputs: path, processId.
stop_cpu_profileAIdempotent
Stop CPU profiler and write a .cpuprofile JSON file
Inputs: path, processId.
stop_screencastA
Stop screencast; optionally write last frame PNG/JPEG to path
Inputs: path, processId.
stop_tracingAIdempotent
Stop CDP tracing and write a JSON trace file (open in chrome://tracing)
Inputs: path, processId.
triageARead-only
One-shot crash and failure triage: inspects page state, collects console errors, failed network calls, audit issues, log tail, and resolves the stack trace of the top exception.
Inputs: targetId, processId.
trigger_shortcutC
Trigger an Electron global shortcut accelerator (e.g. 'CommandOrControl+Shift+P')
Inputs: accelerator (required), targetId, processId.
type_axB
Focus an element by accessibility name and insert text (optional clear)
Inputs: name (required), text (required), role, clear, +3 more.
type_textC
Type text into the focused element (optionally click a selector first)
Inputs: text (required), ref, clear, selector, +3 more.
virtual_clockB
Emulation.setVirtualTimePolicy β pause / advance virtual time (use budget when advancing)
Inputs: policy (required), budget, targetId, processId.
visionBRead-only
One-shot app state: screenshot + page_info + recent console errors + network failures + windows
Inputs: targetId, processId, includeScreenshot.
wait_forCRead-only
Wait until a selector exists/hides/enables, text/URL/console matches, or node count is met
Inputs: text, hidden, enabled, minCount, +8 more.
wait_network_idleARead-only
Wait until no network request is in flight and the log has been quiet for idleMs
Inputs: idleMs, targetId, processId, timeoutMs.
webcontents_topologyARead-only
Map BrowserWindows / webContents (main) to CDP targets. Requires inspectMain.
Inputs: processId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 111 tools
Many tools have overlapping boundaries: screenshot/save_screenshot/diff_screenshot, diagnose/doctor/triage/get_process_health/vision all report app health, attach vs attach_by_pid, and find_apps/discover_apps/list_apps/find_installed_apps all hunt for targets. There are also parallel primitive-vs-composite paths (assert_ui vs act_and_verify vs run_script; perf_audit vs perf_snapshot; network_failure_report vs offline_resilience_check vs repro_bundle) that an agent could easily misselect.
Almost all names are snake_case and mostly verb_noun (get_dom, set_cookie, click_ax, stop_tracing), which makes the surface scannable. The deviations are bare nouns/verbs like attach, diagnose, doctor, evaluate, screenshot, snapshot, vision, and triage, plus a cluster of *_ax variants, but nothing chaotic.
111 tools is far beyond a well-scoped surface for this purpose; the set spans process management, CDP automation, network stubbing, performance profiling, main-process introspection, and security auditing in one flat namespace. Numerous composite tools duplicate functionality already reachable by pairing primitives.
Coverage is exhaustive for Electron debugging: app lifecycle, CDP primitives, DOM/AX interaction, network interception and HAR export, storage/cookies, profiling, heap/leak analysis, main-process inspection, IPC tapping/fuzzing, mocking, and security auditing. The problem is redundancy, not missing operations.
Maintenance
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Live browser debugging for AI assistants β DOM, console, network via MCP.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Related MCP Servers
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides comprehensive Electron application automation, debugging, and observability capabilities through Chrome DevTools Protocol integration.41,188 npm72MIT
- AlicenseNot gradedqualityCmaintenanceEnables Electron app automation via Chrome DevTools Protocol (CDP), allowing MCP clients like Cursor or Claude Desktop to interact with Electron apps.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered automation, debugging, and observability of Electron applications through Chrome DevTools Protocol integration, providing real-time UI interaction and inspection capabilities.27MIT
- AlicenseBqualityCmaintenanceElectron debugging MCP server for both renderer (via Chrome DevTools Protocol) and main process (via V8 Inspector Protocol), enabling automation, debugging, and network capture.317 npmMIT