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 分