Feedback

electron-driver MCP Server

@mesomya Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
mesomya
Submitted by
Community
Quality
20
Stars
3

About electron-driver MCP Server

Drive Electron apps from AI agents. Click, type, drag, screenshot, eval JS. 38 tools, Playwright-powered automation for desktop apps.

electron-driver is a MCP server in the Productivity category listed in the AddMCP.net directory, published by mesomya. It exposes 20 tools, including start_app, stop_app, screenshot, click and more. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: community, productivity.

Setup

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

electron-driver MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

electron-driver MCP Server tools

  • start_app — Launch an Electron application
  • stop_app — Close the running Electron app
  • screenshot — Take a full-page PNG screenshot
  • click — Click on an element
  • type — Fill text input by replacing existing content
  • keyboard_type — Type text as real keydown events
  • press — Press keys or key combinations
  • hover — Hover over an element
  • drag — Drag from one point to another
  • wait_for_selector — Wait until selector reaches specified state
  • exists — Check if element exists without waiting
  • get_text — Get text content of first matching element
  • get_attribute — Read HTML attribute value
  • console_logs — Get recent console messages from renderer and main process
  • eval_renderer — Execute JavaScript in renderer process
  • eval_main — Execute JavaScript in main process
  • accessibility_snapshot — Capture ARIA tree for accessibility audits
  • windows_list — List all open browser windows
  • switch_window — Switch focus to different window
  • drop_file — Simulate file drop onto target element

Overview

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.

Frequently asked questions

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.

Where are screenshots stored and how are they

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬