Electron Debug MCP Server
Provides debugging capabilities for Electron applications, including process management, Chrome DevTools Protocol integration for inspecting targets, executing JavaScript, and controlling application execution.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Electron Debug MCP Serverlist running Electron processes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 Electron Debug MCP Server
A powerful Model Context Protocol (MCP) server for debugging Electron applications with deep Chrome DevTools Protocol integration.
📋 Table of Contents
Related MCP server: Electron Native MCP Server
🔍 Overview
Electron Debug MCP Server provides a bridge between the Model Context Protocol (MCP) and Electron applications, enabling advanced debugging capabilities through a standardized API. It allows you to start, monitor, debug, and control Electron applications programmatically, with deep integration with Chrome DevTools Protocol for advanced debugging features.
✨ Features
🔄 Core Functionality
Process Management
🚀 Start Electron applications with debugging enabled
🛑 Stop running Electron processes
📋 List all active Electron processes
📊 Monitor process status and logs
🔍 Debugging Capabilities
Chrome DevTools Protocol Integration
🎯 Discover and connect to debugging targets
🧩 Execute CDP commands across domains
📝 Evaluate JavaScript in the context of pages
🔄 Reload pages or entire applications
⏯️ Pause and resume JavaScript execution
📡 Resource Access
Structured Resource Endpoints
📊 Overview of all running Electron processes
📝 Detailed debug information for specific processes
📜 Access to process logs
🎯 List of available debugging targets
🔍 Direct CDP access for specific targets
📥 Installation
# Clone the repository
git clone https://github.com/yourusername/electron-mcp-server.git
# Navigate to the project directory
cd electron-mcp-server
# Install dependencies
npm install
# Build the project
npm run build🚀 Usage
Starting the Server
npm run startThis will start the MCP server using stdio for communication.
Connecting to the Server
The MCP server uses stdio for communication, so clients need to connect using the Model Context Protocol. You can:
Use an MCP client library
Connect directly via stdin/stdout
Use a tool that supports MCP
📡 Resource Endpoints
The server exposes the following resource endpoints:
Resource | Description |
| Overview of all running Electron processes |
| Detailed debug info for a specific process |
| Access to logs for a specific process |
| List of all available debug targets |
| CDP access for a specific target |
| Operations to control Electron apps |
Available Operations
Operation | Description |
| Start an Electron application |
| Stop a running Electron process |
| List all running Electron processes |
| Reload a specific page or application |
| Execute JavaScript in a page context |
| Pause JavaScript execution |
| Resume JavaScript execution |
🔍 Chrome DevTools Protocol Integration
The server integrates with Chrome DevTools Protocol to provide deep debugging capabilities:
Listing Available Targets
GET electron://targetsReturns all available debugging targets across all running Electron processes.
Inspecting a Specific Target
GET electron://cdp/{processId}/{targetId}Provides information about the target and available CDP domains.
Executing CDP Commands
GET electron://cdp/{processId}/{targetId}/{domain}/{command}Examples:
electron://cdp/electron-123456/page-1/Page/reload- Reload the pageelectron://cdp/electron-123456/page-1/Runtime/evaluate- Evaluate JavaScriptelectron://cdp/electron-123456/page-1/Debugger/pause- Pause execution
📝 Examples
Starting an Electron App
// Example request (using an MCP client)
const response = await mcpClient.readResource({
uri: "electron://operation/start",
content: JSON.stringify({
appPath: "C:\\path\\to\\your\\electron\\app",
debugPort: 9222 // Optional debugging port
})
});Getting Debug Information
// Get detailed info about a specific app
const processId = "electron-1234567890";
const infoResponse = await mcpClient.readResource({
uri: `electron://process/${processId}`
});Executing JavaScript in a Page
// Execute JavaScript in a page
const evalResponse = await mcpClient.readResource({
uri: `electron://cdp/electron-123456/page-1/Runtime/evaluate`,
content: JSON.stringify({
expression: "document.title",
returnByValue: true
})
});🛠️ Development
Project Structure
electron-mcp-server/
├── src/
│ ├── index.ts # Main server implementation
│ └── types/ # TypeScript type definitions
├── build/ # Compiled JavaScript output
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configurationBuilding the Project
npm run buildRunning in Development Mode
npm run dev🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
This project is licensed under the ISC License - see the LICENSE file for details.
Built with ❤️ using TypeScript, Electron, and Chrome DevTools Protocol.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/amafjarkasi/electron-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server