MCP 苹果笔记是一个基于模型上下文协议(MCP)的服务器,它支持在你的 Apple Notes 上进行语义搜索和 RAG(检索增强生成)。借助该服务器,像 Claude 这样的 AI 助手能够在对话时搜索并参考你的 Apple Notes,为你提供更智能、更个性化的服务。
all-MiniLM-L6-v2在本地设备上实现语义搜索。git clone https://github.com/RafalWilinski/mcp-apple-notes
cd mcp-apple-notes
bun install
claude_desktop_config.json文件,并添加以下内容:{
"mcpServers": {
"local-machine": {
"command": "/Users//.bun/bin/bun" ,
"args": ["/Users//apple-notes-mcp/index.ts" ]
}
}
}
注意:将替换为你的实际用户名。
3. 重启 Claude 桌面应用程序。你应该看到如下界面:
4. 开始通过让 Claude 索引你的笔记。你可以对它说:“索引我的笔记”或“索引我的 Apple Notes”。
查看日志:
tail -n 50 -f ~/Library/Logs/Claude/mcp-server-local-machine.log
# 或者
tail -n 50 -f ~/Library/Logs/Claude/mcp.log