Mac Shortcuts — read your Mac from any agent

io.github.Dominic-DK由 GitHub 账号 Dominic-DK 发布v0.1.2更新于 Oct 24, 2026

Read your Mac's Calendar, Reminders, Notes, Contacts and more via Shortcuts. Read-only, local.

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

一个本地 macOS MCP 服务器,让助手通过 Apple 快捷指令读取日历、提醒事项、备忘录、通讯录、剪贴板、位置、天气等信息。

可以做什么
读取 Apple 应用中的个人数据:日历事件、提醒事项、带正文的备忘录、通讯录、剪贴板、位置、天气、设备名称与电量,以及当前播放的曲目,均通过内置的只读快捷指令配方完成。列出本机所有已安装的快捷指令,并按名称运行其中一个。检索内置的 539 个快捷指令动作目录,查看参数键、类型和所需权限。通过 setup 和 status 工具安装并检查内置读取配方。
适用场景
适合希望 Mac 上的 AI 助手回答关于自己的日历、提醒事项、备忘录、通讯录或剪贴板的问题,且不想使用账号或云服务时。也适合在制作或调试 Apple 快捷指令、需要正确动作参数键时使用。
运行要求
仅限 macOS,以本地进程运行,通过 npx 从 npm 包 mac-shortcuts-mcp 启动。需执行一次 setup 命令安装内置快捷指令配方,并在快捷指令应用中为每个配方点击一次“添加快捷指令”。首次使用时 macOS 会弹出通讯录和日历权限提示。Mac 必须处于唤醒状态,锁屏无妨。
安装前请注意
内置配方为只读,但运行快捷指令的工具可执行任何已安装的快捷指令,包括写入数据或发送消息的指令,且并非强制隔离环境。从 Mac 读取的数据会传给所连接的助手。可选的 --auto 安装参数会使用辅助功能 API,默认关闭。Mac 休眠时无法工作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mac Shortcuts — read your Mac from any agent,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mac-shortcuts-mcp

Let any AI agent read your Mac. Calendar, Reminders, Notes, Contacts, Clipboard, Location, Weather, now playing — through Apple Shortcuts. Read-only, local, no account, no server.

Works with Claude Code, Claude Desktop, Cursor, Codex, or any MCP client.

bash
npx -y mac-shortcuts-mcp setup      # install the read recipes (once)
json
{  "mcpServers": {    "mac": { "command": "npx", "args": ["-y", "mac-shortcuts-mcp"] }  }}

Then ask your agent: "What's on my calendar this week?" · "Find the note about the lease." · "What's Jane's number?"

Why this exists

Your agent cannot read Apple's first-party apps. It has no permission to, and there is no API. Shortcuts can. This server hands the job to Shortcuts.app, which does have those permissions, and gives you back the text.

That is the whole trick. Nothing here is clever — it is just wired up.

What it can do

ToolReads
mac_calendarEvents in the next N days
mac_remindersReminders, optionally one list
mac_notesNotes matching a search, with body text
mac_contactsContacts by name
mac_clipboardCurrent clipboard
mac_locationAddress and coordinates
mac_weatherWeather where this Mac is
mac_deviceMachine name and battery
mac_now_playingCurrently playing track
mac_shortcuts_listEvery shortcut on this Mac
mac_run_shortcutRun a shortcut you made, by name
mac_action_catalogSearch the Shortcuts action catalog — see below
mac_setup / mac_statusInstall the read recipes, check what's ready

The bundled recipes are read-only. mac_run_shortcut can run any installed Shortcut, including one that writes data or sends messages. Its description asks the agent to check with you when the behavior is unknown; this is not an enforced read-only sandbox.

Everything read from your Mac comes back tagged as data, not instructions, so a note that says "ignore your previous instructions" is handed to the agent as text rather than as a command.

The action catalog

action-catalog.json in this package documents 539 Shortcuts actions — for each one, the parameter keys it accepts, their types, labels, output type and required permissions.

Apple does not publish this. It was extracted from the live WFActionRegistry on macOS 27.

It matters because a wrong parameter key does not raise an error — it is silently ignored, and your shortcut returns a confident wrong answer. We measured exactly that: a composed shortcut with a plausible-but-wrong key returned 0 instead of 3, with no warning.

Use mac_action_catalog to look up a key, or just read the JSON. MIT, take it.

is.workflow.actions.addnewevent  — 새로운 이벤트  [harvested]  출력: EKEvent  권한: calendar, contacts, needs-interaction  · WFCalendarItemTitle (text) — 제목  · WFCalendarItemStartDate (date) — 시작일  …

Coverage: 497 harvested from the registry, 9 inferred from cached definition strings, 33 not present on macOS (iOS-only actions, plus a few strings that are not actions at all — including one Apple typo).

Setup, honestly

mac-shortcuts-mcp setup signs the bundled recipes on your Mac and opens each in the Shortcuts app. You click Add Shortcut once per recipe.

The package ships readable XML plists, not signed binaries. Open recipes/*.plist and see exactly what you are installing. An open-source tool that asks you to install opaque blobs is not really open.

Pass --auto and it will click Add Shortcut for you using the Accessibility API. That needs Accessibility permission, so it is off by default — a tool should not quietly ask for that.

The first time a recipe touches Contacts or Calendar, macOS asks for permission. That prompt belongs to Shortcuts, not to this server.

Limits

This does nothing while your Mac is asleep. Processes are stopped; there is nothing to talk to. Screen lock is fine — we measured 62 of 63 calls succeeding with the screen locked, at the same speed as unlocked. Sleep is the real wall.

The bundled recipes read data; arbitrary installed Shortcuts may have side effects. macOS only. Results go to the agent you connected.

When you need a device that is never asleep

A Mac in a bag cannot answer. A phone in your pocket can.

Askew does the same thing for a locked iPhone — your agent runs a Shortcut on the phone and gets the result back in about three seconds, screen off, phone in your pocket. That one is not free, and it is a different problem: it needs a push relay, end-to-end encryption and an app. This tool is the part that does not.

License

MIT. Issues and pull requests welcome.


한국어

에이전트가 내 맥을 읽게 해 줍니다. 일정·미리 알림·메모·연락처·클립보드·위치·날씨를 애플 단축어로 읽습니다. 읽기 전용, 로컬, 계정 없음, 서버 없음.

bash
npx -y mac-shortcuts-mcp setup      # 읽기 레시피 설치 (처음 한 번)

에이전트가 퍼스트파티 앱을 못 읽는 건 권한이 없어서고 API도 없기 때문입니다. 단축어는 읽을 수 있습니다. 이 서버는 일을 Shortcuts.app에 넘기고 결과 텍스트만 받아 옵니다.

기본 레시피는 읽기 전용입니다. 다만 mac_run_shortcut은 쓰기·메시지 발송을 포함한 설치된 단축어도 실행할 수 있습니다. 동작을 모르면 사용자에게 먼저 묻도록 안내하지만, 읽기 전용을 강제하는 격리 환경은 아닙니다. 맥에서 읽어 온 내용은 전부 지시가 아니라 자료라는 꼬리표를 달고 갑니다.

동작 카탈로그 539종을 같이 공개합니다. 동작마다 어떤 매개변수 키를 받는지, 애플이 문서로 내지 않는 값입니다. 키가 틀리면 오류 없이 조용히 무시되고 틀린 답이 옵니다 — 실제로 그렇게 재 봤습니다. 실행은 누구나 할 수 있지만 만드는 건 이 표가 있어야 합니다.

한계: 맥이 자면 아무것도 못 합니다. 화면 잠금은 괜찮습니다(잠근 채로 63회 중 62회 성공, 속도도 같음). 자는 게 벽입니다.

자지 않는 기기가 필요하면 그건 폰입니다. Askew가 잠긴 아이폰에 같은 일을 합니다. 화면을 켜지 않고 3초쯤에 결과가 돌아옵니다. 그건 무료가 아니고 다른 문제입니다 — 푸시 릴레이와 종단 암호화와 앱이 필요합니다. 이 도구는 그게 필요 없는 부분입니다.

来源:README.md,提交 fd25623

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.1.2最新Sep 21, 2026
  2. v0.1.1Sep 19, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分