Skip to content
MCP server

Electron Agent Bridge

MCP server and CLI that let AI agents and tests inspect and drive Electron desktop apps

Runs locally

Electron Agent Bridge is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Windows
Runs
Locally
Version
1.1.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add electron-agent-bridge -- npx -y @electron-agent-bridge/mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "electron-agent-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-agent-bridge/mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "electron-agent-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-agent-bridge/mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "electron-agent-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-agent-bridge/mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "electron-agent-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@electron-agent-bridge/mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add electron-agent-bridge -- npx -y @electron-agent-bridge/mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.electron-agent-bridge]
command = "npx"
args = ["-y", "@electron-agent-bridge/mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "electron-agent-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-agent-bridge/mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user electron-agent-bridge npx -- -y @electron-agent-bridge/mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "electron-agent-bridge": {
          "command": "npx",
          "args": [
            "-y",
            "@electron-agent-bridge/mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Electron Agent Bridge

Electron Agent Bridge gives an AI agent, a script or a test runner a way into a running Electron app. It reads the interface as an accessibility snapshot with stable element references, and it can perform trusted clicks, typing, form filling, drag and drop and uploads. Errors come back with a reason, such as an element being covered by a dialog, along with what the app did next, including dialogs, console errors and failed requests.

Beyond the visible UI, the bridge exposes IPC traffic between renderer and main process, renderer and main logs, crashes, network metadata, application menus and native dialogs. State stores such as Redux, Zustand and MobX can be read or dispatched to when the app registers them. It is installed either as a dependency the app imports, or injected at launch into an unmodified app with the eab launch command.

Safety is off by default: the bridge needs an environment flag to start, refuses packaged builds unless opted in, uses a local socket with a token, and keeps eval behind a separate capability tier. It suits developers who want agents to debug or test Electron applications on Windows, macOS or Linux.

Tools this server provides (12)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 12 tools reads data; 11 names don't say.

From the server's own tool labels and tool names; not verified by us.

session
Session management for the bridge.
targets
Lists reachable app targets.
snapshot
Takes an accessibility snapshot of the app.
findName suggests: reads
Locates elements in the UI.
act
Performs user actions such as clicks and typing.
wait_for
Waits for a condition in the app.
screenshot
Captures a screenshot of the app.
logs
Reads renderer and main process logs.
network
Reads network metadata.
ipc
Inspects IPC traffic.
state
Reads or dispatches to registered state stores.
app
Controls and inspects the application.

What it does

Accessibility snapshots
Compact views of the window with stable element references and deltas showing what changed.
Trusted user actions
Clicks, typing, forms, keys, drag and drop and file uploads with automatic waiting.
IPC and log inspection
Correlated IPC requests on both sides plus renderer and main process logs and crash reports.
Network metadata capture
Records request metadata from pages, workers and service workers.
State store access
Reads and dispatches to Redux, Zustand and MobX stores the app registers.
YAML test flows
Runs act and expect steps from flow files and writes JUnit reports and artifacts.
Secure defaults
Disabled unless enabled, token-protected local socket, redacted secrets and tiered capabilities.

Good for

  • Letting an AI coding agent reproduce and debug a bug in a running Electron app
  • Writing end-to-end tests for desktop apps with YAML flows in CI
  • Inspecting IPC traffic and main process logs while developing an Electron app
  • Scripting repeatable UI actions against an Electron app from Node code
  • Attaching to an unmodified Electron app for quick inspection without code changes

Pricing

Open source

Electron Agent Bridge FAQ

How do I add Electron Agent Bridge to an MCP host?

Run claude mcp add eab -- npx -y @electron-agent-bridge/mcp, or use npx eab-mcp where the package is installed.

Which Electron versions are supported?

Electron 35 and newer on Windows, macOS and Linux.

Is Electron Agent Bridge safe to leave enabled in production?

The bridge is off unless EAB_ENABLE=1 is set and refuses packaged builds unless explicitly opted in.

Which MCP tools does the agent get?

Session, targets, snapshot, find, act, wait_for, screenshot, logs, network, ipc, state and app, plus dialogs and eval where the app grants them.

Is Electron Agent Bridge free?

Yes. Electron Agent Bridge is open source, so you can use and self-host it for free.

How do I add Electron Agent Bridge to Claude Code?

Run this command in your terminal: claude mcp add electron-agent-bridge -- npx -y @electron-agent-bridge/mcp

What are the best alternatives to Electron Agent Bridge?

The closest alternatives to Electron Agent Bridge are Core, Electron Viewer, agent-device, Electron MCP Server and ExecBro.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers