Apple Notes

io.github.mgcrea由 GitHub 账号 mgcrea 发布v1.37.0更新于 Nov 7, 2026

Search, read and act on Apple Notes — folders, attachments, writes off by default

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

概览

AI 生成的概览

本地 MCP 服务器,让助手在 Mac 上搜索、读取并按需修改 Apple 备忘录,写入工具默认关闭。

可以做什么
  • 查看资料库:运行诊断,列出账户、文件夹和备忘录,读取备忘录正文
  • 全文搜索备忘录并获取元数据,可选通过只读 SQLite 索引查询
  • 列出备忘录附件,并将其保存到允许的本地目录
  • 仅在显式开启写入时,创建、更新、移动、删除备忘录以及添加附件
适用场景
适合在已使用备忘录的 Mac 上,让助手查阅自己的 Apple 备忘录资料库、总结或整理备忘录,或新建备忘录。
运行要求
以 npm 包形式通过 npx 在 macOS 本地运行,需已安装备忘录应用,仅限桌面端。所有功能都需要授予备忘录的 macOS 自动化权限;大规模索引搜索和保存附件还需要完全磁盘访问权限。可选环境变量包括 APPLE_NOTES_ACCOUNTS、APPLE_NOTES_ALLOW_WRITES、APPLE_NOTES_INDEX_MODE、APPLE_NOTES_STORE、APPLE_NOTES_ATTACHMENT_DIR 等。
安装前请注意
只有在设置 APPLE_NOTES_ALLOW_WRITES 后才会注册写入工具(创建、更新、移动、删除备忘录、添加附件);一旦开启,助手可修改或删除备忘录。APPLE_NOTES_ACCOUNTS 可限制涉及的账户。完全磁盘访问权限会带来对备忘录数据库的广泛读取能力。受密码保护的备忘录无法读取。搜索结果在缓存有效期内可能过期。附件只能保存到指定的一个目录。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Apple Notes,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@mgcrea/mcp-apple-notes

Model Context Protocol server for the macOS Apple Notes app.

Unofficial. Not affiliated with Apple. It drives the Notes app that is already on your Mac.

Two lanes

  • Apple Events lane — accounts, folders, bodies, and every mutation. Always the authority: after a write, the result is what Notes re-read.
  • Index lane — read-only SQLite over NoteStore.sqlite, for search and metadata at a scale Apple Events cannot reach. Needs Full Disk Access.

Unlike Mail, the Apple Events lane alone is a working server. Measured on a 921-note library, a full-text search takes 97 ms — against the 74 s that forced Mail onto its index. So you can install this, use it, and only then decide whether to grant Full Disk Access.

It does not scale for ever: there is no index behind it, so every query pays the full cost again. The wall is around 5–10k notes. apple_notes_diagnostics tells you which lane is answering.

PermissionNeeded forWithout it
Automation → Noteseverythingnothing works; you get a -1743 error
Full Disk Accesssearch at scale, save_attachmentthe server still runs, on the Apple Events lane

Neither is granted to Notes.app — it is the reader that needs permission.

Tools

Read: diagnostics, list_accounts, list_folders, list_notes, search_notes, get_note, list_attachments, save_attachment.

Write, registered only when APPLE_NOTES_ALLOW_WRITES=1 — with the flag off they are invisible to the model, not merely refused: create_note, update_note, move_note, delete_notes, add_attachment.

add_attachment is the only way to put an image in a note. An <img> tag in a note's body creates an attachment whose bytes Notes never loads — see docs/notes.md.

Configuration

VariableDefault
APPLE_NOTES_ALLOW_WRITESoffRegister the mutating tools.
APPLE_NOTES_ACCOUNTSallRead-side allowlist, comma-separated.
APPLE_NOTES_INDEX_MODEautoauto | ro | immutable | off.
APPLE_NOTES_STOREautoExplicit NoteStore.sqlite path.
APPLE_NOTES_SEARCH_CACHE_TTL_MS60000How long the body corpus stays warm.
APPLE_NOTES_ATTACHMENT_DIR~/DownloadsThe only directory attachments may be saved into.
APPLE_NOTES_BODY_MAX_BYTES262144Body truncation, to protect the context window.
APPLE_NOTES_OSASCRIPT_TIMEOUT_MS30000Sized for the first-run permission prompt.

Notes that will bite you

  • Notes takes a note's title from the first line of its body. Setting name is silently ignored, so create_note prepends the title as a heading instead.
  • Password-protected notes cannot be read at all. Their text is AES ciphertext at rest, which is why ZICNOTEDATA carries crypto columns; no permission makes it readable.
  • Folders nest. A folder map has to recurse even if your own library happens to be flat.
  • Search caches on a TTL, not on invalidation. Checking whether the cache is stale costs more over Apple Events (128 ms) than redoing the scan (97 ms), so bounded staleness is the honest trade. See docs/notes.md.

Licence

MIT.

来源:packages/notes/README.md,提交 5aea2ad

工具

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

版本历史

18
  1. v1.37.0最新Nov 7, 2026
  2. v1.36.2Nov 4, 2026
  3. v1.36.1Nov 3, 2026
  4. v1.36.0Oct 30, 2026
  5. v1.35.0Oct 30, 2026
  6. v1.34.0Oct 29, 2026
  7. v1.31.0Oct 26, 2026
  8. v1.30.0Oct 22, 2026
  9. v1.29.1Oct 21, 2026
  10. v1.28.0Oct 13, 2026
  11. v1.27.0Oct 13, 2026
  12. v1.26.0Oct 6, 2026
  13. v1.25.0Oct 3, 2026
  14. v1.24.1Sep 29, 2026
  15. v1.24.0Sep 27, 2026
  16. v1.23.0Sep 19, 2026
  17. v1.22.1Sep 16, 2026
  18. v1.21.1Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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