# 在 Claude 中使用 Apple 備忘錄

向 Claude 詢問你的 Apple 備忘錄，內容由你自己的 Mac 提供。

## 步驟

1. 將 Apple 備忘錄匯出為 Markdown：連接它，選擇像 `~/Documents/notes` 這樣的匯出資料夾，然後按「立即同步」。
2. 在「MCP 伺服器」卡片上按「啟動」。卡片會顯示 `localhost:8744`。
3. 連接 Claude Code（加上 `--scope user` 就能在每個專案中使用）：

```sh
claude mcp add --transport http exporter http://localhost:8744/mcp
```

4. 向 Claude 詢問你的備忘錄：「找出我關於廚房翻修的備忘錄，並總結我們最後的結論」，或「根據我週二的會議備忘錄，草擬一封後續追蹤信。」

Claude Desktop、Cursor 和 VS Code 可從同一張卡片上的按鈕連接。

## 你會得到什麼

- `search` 是對你的備忘錄進行依相關性排序的全文搜尋，找到的每則備忘錄都帶有一個可在 Apple 備忘錄中打開它的連結
- `read` 會傳回一則備忘錄的 Markdown 和 front matter，`get_recent` 傳回最新的變更，`list` 和 `get_stats` 則涵蓋整個匯出內容
- 伺服器在 App 內執行：只要 Exporter 在執行，無論視窗是否打開，它都會回應，結束 App 時它就會停止。它只監聽 127.0.0.1，所以 Mac 以外的任何東西都無法連到它

## 注意事項

- 伺服器只讀取 Markdown，所以匯出為 HTML 的備忘錄它看不到。它提供與 Apple 備忘錄匯出資料夾並排的匯出資料夾；有任何變更後，請按「停止」再按「啟動」。
- Claude 看到的是你匯出的內容：在免費額度下，就是前 100 則備忘錄。工具傳回的內容會傳送到模型，就像你貼上的任何內容一樣。

端點、六個工具和每種用戶端，都在 [MCP 伺服器說明文件](https://exporter.dev/docs/mcp)中。

## Related

- [MCP server](https://exporter.dev/docs/mcp): Connect Claude and other agents
- [Apple Notes](https://exporter.dev/docs/notes): Folders, fields, HTML and fixes
- [Messages in Claude](https://exporter.dev/guides/messages/messages-in-claude): Ask Claude about your conversations

---

human version: https://exporter.dev/zh-hant/guides/notes/apple-notes-in-claude
every page: https://exporter.dev/llms.txt
