# Electron Debug MCP

> Debug and automate Electron apps through CDP.

- **URL**: https://followmcp.com/en/servers/electron-mcp-server
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 104
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/amafjarkasi/electron-mcp-server
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 20+
- **Auth**: No credential needed

## Overview
Electron Debug MCP connects to the Electron runtime through the Chrome DevTools Protocol and Node inspector. It lets AI coding agents inspect windows, page and main-process state, console and network data, and automate UI interactions. The README describes 111 tools, 9 resources, and 6 prompts.

## Best for
- Developers and AI coding agents debugging or testing Electron desktop apps.
- Teams that want MCP-based inspection of a running Electron app's UI, network, or processes.

## Not for
- Users who only need to debug ordinary websites or non-Electron apps.
- Users who need to inspect an app without a local Electron process or reachable debugging endpoint.

## Required permissions
- The server needs to launch an Electron app or connect to a locally running app and its DevTools endpoint.
- Depending on the tools used, it can read and operate app windows, page state, console, network, storage, clipboard, and main-process information.
- Secret placeholders are read from the server process environment; configure the relevant variables to use that feature.

## Risks
- Some tools can run JavaScript in the page or main process, modify storage and cookies, access the clipboard, invoke IPC, mock native APIs, or change network conditions.
- Automation and diagnostics may trigger real actions in the app; confirm the target process and effects before using them.
- Logs, network records, HAR files, and other exported artifacts may contain app data. Secret placeholders are redacted, but exported content should still be handled carefully.

## Client config (JSON)
```json
{"mcpServers":{"electron-debug":{"command":"npx","args":["-y","electron-debug-mcp@latest"]}}}
```

## Tools (100)
- `start_app`: Launch an Electron app with a remote debugging port.
- `stop_app`
- `attach`: Connect to a running Electron app through a DevTools port or WebSocket.
- `attach_by_pid`
- `find_apps`
- `discover_apps`
- `find_installed_apps`
- `list_apps`
- `vision`: Get a viewport screenshot, page details, console errors, and network failures in one overview.
- `snapshot`: Read the accessibility tree with stable element references.
- `screenshot`
- `save_screenshot`
- `diff_screenshot`
- `start_screencast`
- `stop_screencast`
- `highlight`
- `act_and_verify`
- `click`: Click an element matched by CSS selector or accessibility reference.
- `click_ax`
- `type_text`: Type into the focused or specified element; supports secret placeholders and redaction.
- `type_ax`
- `press_key`
- `hover`
- `scroll`
- `drag`
- `select_option`
- `set_file_input`
- `handle_dialog`
- `open_deep_link`
- `fill_form`
- `responsive_theme_matrix`
- `repro_bundle`
- `page_info`
- `navigate`
- `reload`
- `wait_for`
- `get_dom`
- `query_selector`
- `evaluate`: Run JavaScript in the renderer page context.
- `get_console_messages`: Read buffered console messages and exceptions.
- `get_logs`
- `get_cookies`
- `set_cookie`
- `delete_cookie`
- `get_storage`
- `set_storage`
- `assert_ui`
- `save_storage_state`
- `load_storage_state`
- `offline_resilience_check`
- `network_failure_report`
- `get_network_log`: Read buffered HTTP requests and responses.
- `get_response_body`
- `export_har`
- `wait_network_idle`
- `network_stub`
- `clear_network_stubs`
- `block_urls`
- `set_extra_headers`
- `emulate_network`
- `get_downloads`
- `perf_snapshot`
- `leak_check`
- `get_performance_metrics`
- `perf_audit`
- `get_audit_issues`
- `start_tracing`
- `stop_tracing`
- `start_cpu_profile`
- `stop_cpu_profile`
- `heap_snapshot`
- `start_coverage`
- `stop_coverage`
- `resolve_stack`
- `set_breakpoint`
- `remove_breakpoint`
- `pause`
- `resume`
- `ipc_fuzz_and_verify`
- `mock_electron_api`
- `get_mock_calls`
- `restore_electron_mocks`
- `get_application_menu`
- `click_menu_item`
- `trigger_shortcut`
- `get_process_health`
- `electron_security_audit`: Check running windows against Electron security settings and provide remediation guidance.
- `ipc_invoke`
- `ipc_schema_inference`
- `ipc_tap`
- `get_ipc_log`
- `evaluate_main`
- `main_state`
- `webcontents_topology`
- `focus_window`
- `set_window_bounds`
- `set_permission`
- `get_clipboard`
- `set_clipboard`
- `print_pdf`
