# Electron Viewer

> Electron Viewer is an open-source MCP server for developer tools. Drives Electron apps over CDP with screenshots, input, touch gestures and main-process JS. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, Linux, CLI
- **Repository:** https://github.com/acertijosapps/electron-viewer
- **MCP Registry name:** io.github.acertijosapps/electron-viewer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-23

## About

Electron Viewer pairs a browser-based live view of an Electron app with an MCP server, so you and an agent can watch and control the same window. It streams video through the Chrome DevTools Protocol screencast, which keeps going while the window is covered or minimized, and it needs no preload script or code changes in your app.

The twenty tools go beyond clicking. They include touch actions (tap, swipe, long press, pinch) for kiosk and touch-first apps, an accessibility tree whose interactive elements carry normalized centre coordinates, console logs from the renderer and main process, and `evaluate_main`, which runs JavaScript in the main process with `require('electron')` available. Main-process features need the app started with an inspector port.

It can launch your project with `electron .`, use a custom `--launch-cmd` for electron-vite or Forge, or find apps already running on CDP ports 9222 to 9231. Requires Node.js 18 or later, works on macOS, Linux and Windows, and binds to 127.0.0.1 only. The README warns it can run code in your app and recommends pinning the version you reviewed.

## Features

- **Live app video:** Streams the window through CDP screencast, even when covered or minimized.
- **Real input:** Mouse, drag, wheel and full keyboard passthrough including IME on macOS.
- **Touch gestures:** Tap, swipe, long press and pinch for touch-first and kiosk apps.
- **Main-process access:** Runs JavaScript in the Electron main process and can resize the real window.
- **Accessibility tree:** Returns roles, names and click-ready normalized coordinates.
- **No app changes:** Needs no preload script or dependency in the target app.

## Good for

- Let a coding agent click through an Electron app it just changed
- Test touch gestures in a kiosk-style Electron UI
- Read renderer and main-process console errors during a debugging session
- Resize a real app window to check responsive layouts
- Inspect an app's accessibility tree to find interactive elements

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add electron-viewer -- npx -y @acertijosapps/electron-viewer
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add electron-viewer -- npx -y @acertijosapps/electron-viewer
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.electron-viewer]
command = "npx"
args = ["-y", "@acertijosapps/electron-viewer"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user electron-viewer npx -- -y @acertijosapps/electron-viewer

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 20 tools read data; 17 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_windows` (name suggests: reads): Lists running apps and their windows.
- `launch_app`: Runs electron . in the project on free debugging ports and waits for the first window.
- `attach`: Attaches to an app on a CDP port, optionally with its inspector port.
- `screenshot`: Takes a PNG of the window content, longest side up to 1024 px.
- `click`: Left, right or middle click, with double click and modifiers.
- `drag`: Presses, moves in steps and releases.
- `hover`: Moves the mouse without clicking.
- `tap`: One-finger tap using touch events.
- `swipe`: One-finger swipe for touch lists and gestures.
- `long_press`: Holds one finger down, 800 ms by default.
- `pinch`: Two-finger pinch around a point.
- `scroll`: Mouse wheel at a point.
- `type_text`: Inserts text into the focused element.
- `press_key`: Presses a key or character with modifiers.
- `resize_window`: Resizes the content area, real or emulated.
- `reload`: Reloads the window's page.
- `evaluate`: Runs JavaScript in the window's page.
- `evaluate_main`: Runs JavaScript in the main process.
- `get_accessibility_tree` (name suggests: reads): Returns roles, names, values and states with element centres.
- `get_console_logs` (name suggests: reads): Returns console messages and exceptions from renderer and main process.

## FAQ

### Do I have to modify my Electron app?

No. The README says no preload, dependency or code changes are needed.

### How does Electron Viewer find my app?

It launches it with electron . or a custom command, or attaches to apps on CDP ports 9222 to 9231.

### What is lost without an inspector port?

Everything except the main-process features: evaluate_main, real window resizing and in-app DevTools.

### Is Electron Viewer safe to run?

It listens on 127.0.0.1 only, but it can run code in your app, so the README advises pinning a reviewed version.

### Is Electron Viewer free?

Yes. Electron Viewer is open source, so you can use and self-host it for free.

### How do I add Electron Viewer to Claude Code?

Run this command in your terminal: claude mcp add electron-viewer -- npx -y @acertijosapps/electron-viewer

### What are the best alternatives to Electron Viewer?

The closest alternatives to Electron Viewer are REA, Browser Use, Scrapling MCP Server, Context7 and Chrome DevTools MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser Use is a freemium MCP server for browser automation.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/electron-viewer
