# Electron MCP Server

> Electron MCP Server is an open-source MCP server for developer tools. Electron IPC scaffolding, security audits, CSP and build-error diagnosis for assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Website:** https://yaw.sh/mcp-servers/electron-mcp/
- **Repository:** https://github.com/yawlabs/electron-mcp
- **MCP Registry name:** io.github.YawLabs/electron-mcp
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-14

## About

Models often get Electron wrong in the parts that matter for safety: context isolation, preload bridges, fuses and CSP. This server gives an assistant structured answers about Electron itself rather than a shell, so generated code follows the official recommendations. The page states it is not a runtime debugger.

It can scaffold a full IPC round trip (main handler, typed preload bridge, contextBridge and renderer usage), grade a BrowserWindow config, parse electron-builder or forge failures, generate a CSP that accounts for Vite and React dev mode, check deprecated APIs and guide migration between major versions.

MIT licensed, from Yaw Labs, installed from npm with no API key.

## Features

- **IPC scaffolding:** Generates handler, preload, types and renderer code.
- **Security audit:** Grades main process, preload and CSP.
- **Build diagnosis:** Finds root causes in builder or forge output.
- **CSP generator:** Accounts for bundler dev mode.
- **Version migration:** Covers breaking changes between majors.
- **Fuse configuration:** Helps set Electron fuses.

## Good for

- Add a file picker safely
- Audit window settings before release
- Fix a signing error
- Upgrade Electron majors
- Build a CSP for Vite and React

## Install

### Claude Code (Terminal)

```sh
claude mcp add electron-mcp -- npx -y @yawlabs/electron-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "electron-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/electron-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## Tools

- `electron_scaffold_ipc_channel`: Generates an IPC channel with handler, preload bridge, types and renderer usage.
- `electron_audit_security`: Audits main process, preload and CSP.
- `electron_migrate_version`: Guides migration between Electron versions.
- `electron_check_deprecated_apis`: Checks for deprecated APIs.
- `electron_diagnose_build_error`: Diagnoses build errors.
- `electron_configure_fuses`: Configures Electron fuses.
- `electron_configure_csp`: Generates a Content Security Policy.
- `electron_knowledge_version`: Reports the version of its knowledge.

## FAQ

### Does it run my app?

No, it is not a runtime debugger.

### Is a key needed?

No.

### Licence?

MIT.

### Is Electron MCP Server free?

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

### How do I add Electron MCP Server to Claude Code?

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

### What are the best alternatives to Electron MCP Server?

The closest alternatives to Electron MCP Server are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [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-2): 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.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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