Skip to main content
Glama

Electron MCP Server

by halilural

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_electron_window_info

Get information about running Electron applications and their windows. Automatically detects any Electron app with remote debugging enabled (port 9222).

take_screenshot

Take a screenshot of any running Electron application window. Returns base64 image data for AI analysis. No files created unless outputPath is specified.

send_command_to_electron

Send JavaScript commands to any running Electron application via Chrome DevTools Protocol.

Enhanced UI interaction commands:

  • 'find_elements': Analyze all interactive elements (buttons, inputs, selects) with their properties

  • 'click_by_text': Click elements by their visible text, aria-label, or title

  • 'click_by_selector': Securely click elements by CSS selector

  • 'fill_input': Fill input fields by selector, placeholder text, or associated label

  • 'select_option': Select dropdown options by value or text

  • 'send_keyboard_shortcut': Send keyboard shortcuts like 'Ctrl+N', 'Meta+N', 'Enter', 'Escape'

  • 'navigate_to_hash': Safely navigate to hash routes (e.g., '#create', '#settings')

  • 'get_page_structure': Get organized overview of page elements (buttons, inputs, selects, links)

  • 'debug_elements': Get debugging info about buttons and form elements on the page

  • 'verify_form_state': Check current form state and validation status

  • 'get_title', 'get_url', 'get_body_text': Basic page information

  • 'eval': Execute custom JavaScript code with enhanced error reporting

IMPORTANT: Arguments must be passed as an object with the correct properties:

Examples:

  • click_by_selector: {"selector": "button.submit-btn"}

  • click_by_text: {"text": "Submit"}

  • fill_input: {"placeholder": "Enter name", "value": "John Doe"}

  • fill_input: {"selector": "#email", "value": "user@example.com"}

  • send_keyboard_shortcut: {"text": "Enter"}

  • eval: {"code": "document.title"}

Use 'get_page_structure' or 'debug_elements' first to understand available elements, then use specific interaction commands.

read_electron_logs

Read console logs and output from running Electron applications. Useful for debugging and monitoring app behavior.

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/halilural/electron-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server