Electron Driver MCP Server

MCP server that lets AI agents drive Electron apps — click, type, drag, screenshot, eval JS in the renderer or main process, capture console logs

Local serverstdioGo

What is the Electron Driver MCP server?

Electron Driver MCP server exists for a simple reason — assistants are far more useful when they can act on Electron Driver directly instead of describing what you should do. MCP server that lets AI agents drive Electron apps — click, type, drag, screenshot, eval JS in the renderer or main process, capture console logs, handle multi-window apps, and more.

What you get

Built on Playwright's experimental _electron API. Works with any Electron app — React, Vue, Svelte, vanilla — as long as you can point it at a compiled main-process entry.

  • An agent verifies a feature it just implemented by actually running the
  • Visual regression testing during a refactor
  • Accessibility audits via ARIA tree snapshots
  • Reproducing bugs from a natural-language description
  • Teaching a subagent to iterate on UI until a spec passes

Setting it up

The server ships on npm as electron-driver, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Electron Driver is connected, these are the calls the assistant has available:

  • Lifecycle — The Lifecycle tool exposed by this server
  • Capturing — The Capturing tool exposed by this server
  • Interaction — If the primary strategy does not move the detect target, the driver automatically falls back to invoking the React handler directly via fiber-prop
  • Waiting — The Waiting tool exposed by this server
  • Dialogs — The Dialogs tool exposed by this server

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the electron driver mcp server does with a few real requests.

Choosing this one

This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Electron Driver's toolset — Lifecycle, Capturing, Interaction and 2 more — is a fair guide to whether it matches your workflow. It is maintained by mesomya; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Electron Driver's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
LifecycleThe Lifecycle tool exposed by this server.
CapturingThe Capturing tool exposed by this server.
InteractionIf the primary strategy does not move the detect target, the driver automatically falls back to invoking the React handler directly via fiber-prop access and dispatching move/up events on both document and window — cover
WaitingThe Waiting tool exposed by this server.
DialogsThe Dialogs tool exposed by this server.

How to install the Electron Driver MCP server

{
  "mcpServers": {
    "electron-driver": {
      "command": "npx",
      "args": ["-y", "electron-driver"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Electron Driver to Lifecycle.
  • Use Electron Driver to Capturing.
  • Use Electron Driver to Interaction.

Frequently asked questions

It connects Electron Driver to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Lifecycle, Capturing, Interaction, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Electron Driver directly.