# Core

> Core is an MCP server for developer tools. MCP server that lets agents launch, inspect and assert on real Electron apps. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/electron-stagewright/electron-stagewright
- **MCP Registry name:** io.github.electron-stagewright/core
- **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

Browser automation tools stop at the renderer, but an Electron app also has a main process, native menus and dialogs, several windows and signed packaging. Electron Stagewright is built for that wider surface and returns compact, budget-aware evidence to an agent instead of long chains of calls.

It launches an app or attaches to one already running through a loopback debugging endpoint, then reads the accessibility tree with stable element references. State comes back in one call, composite waits are evaluated by the server, and expect-style assertions retry on their own. Snapshots can return only changes since the last view or a one-line-per-element text form, and every response reports its token cost. The README says errors carry hints and similar-reference alternatives.

Three workflows are called out: attaching to a dev server without restarting it, session traces that can be replayed against a fresh instance with per-tool token budgets, and checks on signed, notarized packaged .app bundles including codesign and Gatekeeper. It needs Node.js 26.13.1 or newer and, on Linux, a display. Setup uses pinned npm packages for Playwright and Electron, with a doctor command to verify them.

## Features

- **Launch or attach:** Starts an Electron app or attaches to a running dev server over a loopback debug endpoint.
- **Accessibility snapshots:** Returns the accessibility tree with refs, optional text format and deltas since the last view.
- **Single-call state:** Returns visible, enabled, checked, focused and other flags in one response.
- **Retrying expectations:** Assertions such as expected text retry until a timeout instead of needing manual loops.
- **Session traces:** Records tool calls, timings and token estimates for replay against a fresh instance.
- **Packaged app checks:** Validates signed, notarized .app bundles including codesign and Gatekeeper.

## Good for

- Test an Electron app's UI with an agent
- Debug a running dev build without restarting it
- Check a notarized macOS bundle
- Replay a recorded agent session
- Cap runaway agent loops with token budgets

## Install

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

```sh
claude mcp add core -- npx -y @electron-stagewright/core
```

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": {
    "core": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-stagewright/core"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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 core -- npx -y @electron-stagewright/core
```

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

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

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

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

Or run: gemini mcp add -s user core npx -- -y @electron-stagewright/core

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

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

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

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

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

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": {
    "core": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-stagewright/core"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

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

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": {
    "core": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-stagewright/core"
      ]
    }
  }
}
```

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

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

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

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

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

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": {
    "core": {
      "command": "npx",
      "args": [
        "-y",
        "@electron-stagewright/core"
      ]
    }
  }
}
```

## Tools

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

- `electron_launch`: Launches an Electron app from its main file with optional environment variables.
- `electron_snapshot`: Returns the accessibility tree with element refs, optionally as text or as a diff since the last snapshot.
- `electron_attach`: Connects to an app exposing a loopback CDP endpoint.
- `electron_inject`: Attaches to a running main process via the Node Inspector handshake.
- `electron_find` (name suggests: reads): Queries the accessibility tree by role, name and visibility.
- `electron_expect_text`: Asserts a ref's text with retry until a timeout.
- `get_state` (name suggests: reads): Returns the full state envelope for an element in one call.
- `wait_for_state`: Waits on a composite predicate such as visible and enabled.

## FAQ

### What does Core need to run?

Node.js 26.13.1 or newer, and a display on Linux; the default launch uses Playwright and an Electron runtime.

### Which agents can use Core?

The README names Claude Code, Codex, Cursor, Cline, Aider and any MCP-compatible agent.

### How do I verify my setup?

Run the doctor command, which reports ok and exits 0 when the required checks pass.

### Which renderer frameworks are covered?

Current fixtures cover vanilla, React, Vue and Angular; the matrix is still expanding.

### How do I add Core to Claude Code?

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

### What are the best alternatives to Core?

The closest alternatives to Core 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/core
