eab-mcp
Enables AI agents, scripts, and tests to inspect and control any Electron app, including its pages, IPC, logs, network, application state, and main process through snapshots, actions, screenshots, and test flows.
Provides visibility into MobX application state within Electron apps, allowing agents to inspect state while driving or testing the app.
Provides visibility into Redux application state within Electron apps, allowing agents to inspect state while driving or testing the app.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
electron-agent-bridge
Let AI agents, scripts and tests see and drive any Electron app: its pages, IPC, logs, network, state
and main process. One bridge, three ways in: an MCP server for agents (Claude Code and other MCP
hosts), the eab CLI, and a typed Node API, plus YAML flows for tests.
See the app the way a user does. Compact accessibility snapshots with stable refs (
button "Save" [e12]), deltas of what changed, frames, views, webviews and offscreen windows, screenshots; console and network of workers and service workers too.Act like a user. Trusted clicks, typing, filling forms, keys, drag and drop, uploads, with auto-waiting and errors that say why (
OCCLUDED by dialog "Confirm"), plus what the app did in response: dialogs, toasts, console errors, failed requests, IPC.See inside. IPC on both sides with request/response correlation, renderer and main logs, crashes, network metadata, Redux / Zustand / MobX state, application menus, native dialogs.
Safe by default. Off unless
EAB_ENABLE=1; refuses packaged builds unless opted in; local socket plus token; capability tiers (evalnever by default); secrets redacted; page content marked untrusted for agents.
Electron 35+ on Windows, macOS and Linux.
Quick start
Integrated (the app imports the bridge, which does nothing unless enabled):
npm install --save-dev @electron-agent-bridge/electron @electron-agent-bridge/mcp// First line of the app's main entry.
import '@electron-agent-bridge/electron/register';EAB_ENABLE=1 npm start # start the app with the bridge on
npx eab list # running apps the bridge can reach
npx eab snapshot # what the focused window showsLaunch (no code change; the launcher injects the bridge into an unmodified, unfused app):
npx eab launch ./node_modules/.bin/electron -- .For agents: add the MCP server to your MCP host, e.g.
claude mcp add eab -- npx -y @electron-agent-bridge/mcp (or npx eab-mcp where @electron-agent-bridge/mcp is installed). The
agent then has 14 tools: session, targets, snapshot, find, act, wait_for, screenshot,
logs, network, ipc, state, app, and, where the app grants eval, dialogs and eval.
For tests:
# checkout.flow.yaml
name: Place an order
steps:
- act:
- { type: fill, locator: { role: textbox, name: Customer }, value: Ada }
- { type: click, locator: { role: button, name: Save order } }
- expect: { text: Order saved }
- expect: { noConsoleErrors: true }npx eab run flows/ --junit report.xml --artifacts artifactsFrom code:
import { connect } from '@electron-agent-bridge/client';
const app = await connect();
const { data } = await app.call('snapshot.take', {});
await app.call('action.run', { actions: [{ type: 'click', locator: { role: 'button', name: 'Save' } }] });Related MCP server: electron-dev-bridge
Documentation
Integrated and Launch mode, gates, packaged builds | |
YAML tests and | |
what is recorded, correlation, values policy | |
sources, custom loggers, network metadata | |
| |
windows, menus, dialog stubs, | |
electron-vite, Forge, webpack | |
threat model and capabilities; SECURITY.md for reports | |
packages, data flow, design decisions (ADRs) | |
every exported function and type (TypeDoc; |
Packages
Package | |
| in-app runtime (main process); |
|
|
| Node API: |
| Attach mode: drive a running app's pages over |
| protocol, engine and in-page agent (used by the others) |
Development
pnpm install
pnpm check # format, lint, typecheck, boundaries, unit tests with coverage
EAB_E2E_ELECTRON=35,45 pnpm test:e2e
EAB_E2E_BACKGROUND=1 EAB_E2E_ELECTRON=35,45 pnpm test:e2e # test windows stay off your screen
pnpm hooks # optional: git hooks (conventional commits, formatting)See CONTRIBUTING.md. MIT licensed.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceDrive Electron apps from AI agents via MCP - click, type, drag, screenshot, eval JS, and more.39265 npm3MIT
- AlicenseNot gradedqualityDmaintenanceMaps Electron app IPC handlers to MCP tools and provides 33 built-in CDP tools for DOM automation, screenshots, interaction, and debugging, enabling Claude Code to directly control your Electron app.1MIT
- 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
- AlicenseCqualityDmaintenanceEnables AI coding tools to interact with Electron applications for automated testing, including app lifecycle, element interaction, and visual testing.481MIT