keyboard-maestro
An MCP server for Keyboard Maestro. Manage your macros with natural language commands.
claude mcp add --transport stdio saihgupr-keyboard-maestro-mcp node /path/to/keyboard-maestro-mcp/build/index.js
How to use
Keyboard Maestro MCP exposes a set of tools to manage and automate Keyboard Maestro macros through natural language commands. With this server, you can search for macros, inspect their details, create new macros, clone or delete existing ones, run macros on demand, and reorganize macro groups. You also have tools to view and edit the steps that comprise a macro (actions), modify triggers, and manage KM variables and logs. The included testing commands help verify your setup and interactively inspect the MCP runtime.
To use the tools, run the MCP server as configured (for example via node /path/to/keyboard-maestro-mcp/build/index.js). The available tools are organized into categories such as Macro Management, Action Editing, Trigger Editing, and Variables & Logs. You can perform high-level operations like creating a new macro, duplicating an existing one, or running a macro right away. You can also inspect a macro’s full XML definition or export individual actions or triggers for editing elsewhere. Always review suggested changes before applying them, as the MCP server has full access to Keyboard Maestro and can modify or delete macros.
How to install
Prerequisites
- macOS with Keyboard Maestro installed and running
- Node.js v18+ installed
- Internet access to install dependencies
Installation steps
- Clone the repository
git clone https://github.com/saihgupr/keyboard-maestro-mcp.git
cd keyboard-maestro-mcp
- Install dependencies
npm install
- Run the setup (if you want the AI client to auto-configure)
npm run setup
- Start the MCP server (example)
npm run start
- If you prefer manual configuration, ensure your MCP config points to the built entry (see Manual Configuration in README)
{
"mcpServers": {
"keyboard-maestro": {
"command": "node",
"args": ["/path/to/keyboard-maestro-mcp/build/index.js"]
}
}
}
Testing
- Quick check:
npm run verify
- Interactive testing (from README):
npx @modelcontextprotocol/inspector node build/index.js
Additional notes
Tips and considerations:
- This MCP provides full access to Keyboard Maestro; review AI-generated changes before applying.
- Ensure Keyboard Maestro is running and accessible to the MCP process on macOS.
- If you move the project, update the path in the mcp_config entry to point to build/index.js.
- You can customize environment variables in the mcp_config under env if your setup requires specific KM paths or logging settings.
- For troubleshooting, use km_get_errors and km_get_log to inspect recent macro failures and engine logs.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.