mcp-apple-notes is a Model Context Protocol (MCP) server designed to enable AI assistants (such as Claude) to search and reference the user's Apple Notes. Through semantic search and RAG (Retrieval-Augmented Generation) technology, it provides relevant information from note content during conversations.
Key capabilities:
- Semantic search: semantic search over Apple Notes using the all-MiniLM-L6-v2 on-device embedding model.
- Full-text search: supports full-text retrieval of note content.
- Vector storage: uses LanceDB to store vector data.
- MCP compatible: as an MCP server, it can be integrated with AI assistants.
- Native integration: native integration with Apple Notes via JXA.
- Fully local execution: no API keys required; all processing is done locally.
Usage:
- Clone the repository and install dependencies.
- Open the Claude desktop app and go to Settings -> Developer -> Edit Config.
- Open claude_desktop_config.json and add the corresponding entry (replace <YOUR_USER_NAME> with your actual username).
- Restart the Claude desktop app.
- Get started by asking Claude to index your notes, for example by saying "Index my notes" or "Index my Apple Notes".
Use cases:
- Quickly retrieving and referencing information from Apple Notes while conversing with an AI assistant.
- Privacy-preserving note search using a local embedding model.
Limitations:
- Apple Notes currently returns HTML format, which needs to be converted to Markdown and embedded.
- Source content is chunked using a recursive text splitter or Markdown text splitter.
- No option for a custom embedding model is currently provided.
- Limited control over the database (e.g., clearing, custom queries, etc.).
- No feature for storing notes to Notes via Claude is currently provided.