# Electron Agent Bridge

> Electron Agent Bridge is an open-source MCP server for developer tools. MCP server and CLI that let AI agents and tests inspect and drive Electron desktop apps. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, API
- **Repository:** https://github.com/chavagov123/electron-agent-bridge
- **MCP Registry name:** io.github.Chavagov123/electron-agent-bridge
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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.
- `find` (name 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.

## 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.

## Alternatives

- [Core](https://ai-powered.com/mcp/core): Core is an MCP server for developer tools.
- [Electron Viewer](https://ai-powered.com/mcp/electron-viewer): Electron Viewer is an open-source MCP server for developer tools.
- [agent-device](https://ai-powered.com/mcp/agent-device-2): agent-device is an open-source MCP server for developer tools.
- [Electron MCP Server](https://ai-powered.com/mcp/electron-mcp-server): Electron MCP Server is an open-source MCP server for developer tools.
- [ExecBro](https://ai-powered.com/mcp/execbro-2): ExecBro is a free MCP server for developer tools.
- [Agent Droid Bridge](https://ai-powered.com/mcp/agent-droid-bridge): Agent Droid Bridge is an open-source MCP server for developer tools.
- [ForgeBridge](https://ai-powered.com/mcp/forgebridge): ForgeBridge is an open-source MCP server for developer tools.
- [agent-device](https://ai-powered.com/mcp/agent-device): agent-device is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/electron-agent-bridge
