Electron Driver
@mesomya
关于 Electron Driver
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.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"electron-driver": {
"command": "node",
"args": [
"index.mjs",
"#",
"stdio",
"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.
FAQ from Electron Driver
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.
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.
Where are screenshots stored and how are they
浏览器自动化 分类下的更多 MCP 服务器
browser-mcp
djydeA browser extension and MCP server that allows you to interact with the browser you are using.
BrowserTools MCP
AgentDeskAIMonitor browser logs directly from Cursor and other MCP compatible IDEs.
browser-use-mcp-server
co-browserBrowse the web, directly from Cursor etc.
Apify Model Context Protocol (MCP) Server
apifyThe Apify MCP server enables your AI agents to extract data from social media, search engines, maps, e-commerce sites, or any other website using thousands of ready-made scrapers, crawlers, and automation tools available on the Apify Store.
Fetch MCP
jae-jaeMCP server for fetch web page content using Playwright headless browser.
评论