Requires Node 18+ on your system so npx can fetch the package on first run. Claude Desktop only speaks stdio locally; HTTP servers are wrapped via npx mcp-remote automatically. Paste the config below, then follow the reload step to register @laststance/electron-mcp-server.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"electron": {
"command": "npx",
"args": [
"-y",
"@laststance/electron-mcp-server@latest"
],
"env": {
"SECURITY_LEVEL": "balanced",
"SCREENSHOT_ENCRYPTION_KEY": "your-32-byte-hex-string"
}
}
}
}