Skip to content
MCP server

Electron Viewer

Drives Electron apps over CDP with screenshots, input, touch gestures and main-process JS

Runs locally

Electron Viewer is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
macOS, Windows, Linux
Runs
Locally
Version
1.1.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "electron-viewer": {
      "command": "npx",
      "args": [
        "-y",
        "@acertijosapps/electron-viewer"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • ELECTRON_VIEWER_URLViewer to show actions live (default http://localhost:8094); without it, CDP is used directly
  • ELECTRON_VIEWER_PROJECTElectron project folder that launch_app starts with `electron .` (default: the current folder)

About Electron Viewer

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.

Tools this server provides (20)

Taken from the project documentation; the running server may differ.

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_windowsName 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_treeName suggests: reads
Returns roles, names, values and states with element centres.
get_console_logsName suggests: reads
Returns console messages and exceptions from renderer and main process.

What it does

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

Pricing

Open source

Free to run; installed from npm

Electron Viewer 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.

How AIPoweredBot checks servers