MCP.so
登录

Electron Driver MCP Server

@mesomya

基本信息

分类

浏览器自动化

许可证

MIT

传输方式

stdio

作者

mesomya

提交者

Somya Sharma

关于 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. 38 tools, Playwright-powered, works with any Electron app.

Electron Driver MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "electron-driver": {
      "command": "node",
      "args": [
        "index.mjs",
        "#",
        "stdio",
        "MCP",
        "server"
      ]
    }
  }
}

Electron Driver MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Electron Driver?

Electron Driver is an MCP (Model Context Protocol) server that lets AI agents automate Electron desktop apps. It provides tools for clicking, typing, dragging, taking screenshots, evaluating JavaScript in both renderer and main processes, reading console logs, managing multi-window apps, and capturing accessibility snapshots. Built on Playwright’s experimental _electron API, it works with any Electron app—React, Vue, Svelte, or vanilla—as long as you can point it at a compiled main-process entry. It is designed for agent hosts like Claude Code, Claude Desktop, and Cursor.

How to use Electron Driver?

Install the package via npm (npm install electron-driver), then register the MCP server with your agent host. For Claude Code, create a .mcp.json file or use claude mcp add. For other hosts, add the server configuration pointing at npx electron-driver or the absolute path to the module. Once configured, launch your Electron app with the start_app tool, interact using any of the 38 tools, and close the session with stop_app. All tool calls are logged to <project>/.electron-driver/driver.log during a session.

Key features of Electron Driver

  • 38 tools covering lifecycle, interaction, capturing, and evaluation.
  • Full Playwright selector engine (CSS, text=, role=, and more).
  • Evaluate JavaScript in renderer or main process.
  • Multi-window support: list and switch between windows.
  • Accessibility snapshot capture (ARIA tree).
  • Drag with real Chromium input events and React fallback.

Use cases of Electron Driver

  • An agent verifies a feature by running the app and checking the visible result.
  • 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.

常见问题

1

What dependencies are required to run Electron Driver?

Node 18+ and an already-built Electron app. You do not need to install Playwright browsers separately—the `_electron` API drives the Electron binary directly.

2

How does the server handle multiple sessions?

The server owns exactly one Electron session at a time. `start_app` launches it, `stop_app` closes it. Calling `start_app` while a session exists returns an `ALREADY_RUNNING` error.

评论

浏览器自动化 分类下的更多 MCP 服务器