SK

saihgupr/keyboard-maestro-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 5 forks 质量 83 趋势 14MIT

Keyboard Maestro的MCP服务器。用自然语言命令管理宏。

概览

Keyboard Maestro的MCP服务器。用自然语言命令管理宏。 与其翻菜单点按钮,不如直接问: 你的 AI 助手会成为你 Mac 的高级用户。它可以通过对话读取、创建、修改、运行和调试你的 Keyboard Maestro 宏。 这个MCP为你的AI提供了对Keyboard Maestro的完全访问权限。它可以运行、修改和删除宏。在批准建议更改前,务必先审查。 - (Keyboard Maestro仅支持macOS)- 已安装并运行 - v18+ 设置向导会自动配置你的 AI 客户端。它支持:- Claude Desktop - 光标 - VS Code(Copilot) - Windsurf - Antigravity - 任何兼容 MCP 的客户端 如果你更喜欢手动配置,可以把这个添加到你的AI客户端的MCP配置里: 如果你喜欢这个项目,请考虑给仓库一个⭐星!

概述(AI 翻译)

Keyboard Maestro的MCP服务器。用自然语言命令管理宏。

你能做什么?

与其翻菜单点按钮,不如直接问:

只要说…
“运行我的晨间例行宏”
“创建一个宏,当我按下Cmd+Shift+S时输入我的邮件签名”
“最近哪些宏失效了?修复它们。”
“复制我的’Open Project’宏并修改以适应新客户端”
“关闭我所有的工作宏,我正在度假”

你的 AI 助手会成为你 Mac 的高级用户。它可以通过对话读取、创建、修改、运行和调试你的 Keyboard Maestro 宏。

现实世界的例子

使用场景 示例
调试 “我的剪贴板管理器宏昨天停止工作。检查日志,告诉我哪里出了问题。”
批量编辑 “我有20个宏可以打开Chrome。全部改成打开Arc。”
快速自动化 “做一个宏,当我连接到家里的WiFi时,能挂载我的NAS硬盘。”
组织 “创建一个名为’Client Work’的新宏组,并将所有名称中带有’ACME’的宏迁移到该组中。”

[!重要]

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Keyboard Maestro MCP

An MCP server for Keyboard Maestro. Manage your macros with natural language commands.

A client driving the server: one macro cloned six times into a group. No clicks, no import.

What Can You Do?

Instead of digging through menus and clicking buttons, just ask:

Just say…
“Run my morning routine macro”
“Create a macro that types my email signature when I press Cmd+Shift+S”
“What macros have been failing lately? Fix them.”
“Duplicate my ‘Open Project’ macro and modify it for the new client”
“Disable all my work macros, I’m on vacation”

Your AI assistant becomes a power user of your Mac. It can read, create, modify, run, and debug your Keyboard Maestro macros through conversation.

Real-World Examples

Use Case Example
Debugging “My clipboard manager macro stopped working yesterday. Check the logs and tell me what went wrong.”
Bulk Editing “I have 20 macros that open Chrome. Change them all to open Arc instead.”
Quick Automation “Make a macro that mounts my NAS drives when I connect to my home WiFi.”
Organization “Create a new macro group called ‘Client Work’ and move all macros with ‘ACME’ in the name into it.”

[!IMPORTANT] This MCP gives your AI full access to Keyboard Maestro. It can run, modify, and delete macros. Always review suggested changes before approving them.

Requirements

  • macOS (Keyboard Maestro is macOS-only)
  • Keyboard Maestro installed and running
  • Node.js v18+

Quick Start

git clone https://github.com/saihgupr/keyboard-maestro-mcp.git
cd keyboard-maestro-mcp
npm install
npm run setup

The setup wizard will configure your AI client automatically. It supports:

  • Claude Desktop
  • Cursor
  • VS Code (Copilot)
  • Windsurf
  • Antigravity
  • Any MCP-compatible client

Available Tools

Macro Management

Tool What it does
km_search_macros Find macros by name
km_list_macros List all macros
km_get_macro Get macro details
km_get_macro_xml Export a macro’s full definition
km_create_macro Build a new macro
km_clone_macro Duplicate an existing macro
km_delete_macro Remove a macro
km_enable_macro Turn macros on/off
km_run_macro Execute a macro right now
km_manage_group Organize macro groups

Action Editing

Tool What it does
km_list_actions See all steps in a macro
km_add_action Add a new step
km_move_action Reorder steps
km_delete_action Remove a step
km_get_action_xml Export a step’s definition
在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector node build/index.js
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "keyboard-maestro": { "command": "node", "args": ["/path/to/keyboard-maestro-mcp/build/index.js"] } } }