
MCP Apple Notes
Talk with your notes in Claude. RAG over your Apple Notes using Model Context Protocol.
MCP Apple Notes
MCP Apple Notes is a tool that allows users to interact with their Apple Notes using an AI assistant named Claude through a Model Context Protocol (MCP) server, enabling enhanced search and retrieval functionalities.
How to Use MCP Apple Notes?
To use MCP Apple Notes, clone the repository from GitHub, install the necessary dependencies, and configure the Claude desktop application to integrate with the MCP server for your local notes.
Key Features of MCP Apple Notes?
- 🔍 Semantic search capabilities using
all-MiniLM-L6-v2
on-device embeddings. - 📝 Full-text search for quick access to notes.
- 📊 Vector storage for efficient data retrieval using LanceDB.
- 🤖 MCP server compatibility for AI interactions.
- 🍎 Seamless integration with native Apple Notes via JXA.
- 🏃♂️ Fully local operation, requiring no external API keys.
Use Cases of MCP Apple Notes?
- Searching through large volumes of notes on command.
- Engaging with AI to generate contextually relevant replies from stored notes.
- Indexing notes for better organization and retrieval.
FAQ from MCP Apple Notes?
-
Can I use this integration without being online?
Yes! The entire setup is designed for local execution, ensuring your notes remain private. -
What prerequisites are needed?
You need Bun installed for dependency management and the Claude desktop application to facilitate AI interaction. -
Is it possible to customize how my notes are indexed?
Yes, future updates will include options for custom embeddings and control over the database functionalities.
MCP Apple Notes
A Model Context Protocol (MCP) server that enables semantic search and RAG (Retrieval Augmented Generation) over your Apple Notes. This allows AI assistants like Claude to search and reference your Apple Notes during conversations.
Features
- 🔍 Semantic search over Apple Notes using
all-MiniLM-L6-v2
on-device embeddings model - 📝 Full-text search capabilities
- 📊 Vector storage using LanceDB
- 🤖 MCP-compatible server for AI assistant integration
- 🍎 Native Apple Notes integration via JXA
- 🏃♂️ Fully local execution - no API keys needed
Prerequisites
Installation
- Clone the repository:
git clone https://github.com/RafalWilinski/mcp-apple-notes
cd mcp-apple-notes
- Install dependencies:
bun install
Usage
- Open Claude desktop app and go to Settings -> Developer -> Edit Config
- Open the
claude_desktop_config.json
and add the following entry:
{
"mcpServers": {
"local-machine": {
"command": "/Users/<YOUR_USER_NAME>/.bun/bin/bun",
"args": ["/Users/<YOUR_USER_NAME>/apple-notes-mcp/index.ts"]
}
}
}
Important: Replace <YOUR_USER_NAME>
with your actual username.
- Restart Claude desktop app. You should see this:
- Start by indexing your notes. Ask Claude to index your notes by saying something like: "Index my notes" or "Index my Apple Notes".
Troubleshooting
To see logs:
tail -n 50 -f ~/Library/Logs/Claude/mcp-server-local-machine.log
# or
tail -n 50 -f ~/Library/Logs/Claude/mcp.log
Todos
- Apple notes are returned in the HTML format. We should turn them to Markdown and embed that
- Chunk source content using recursive text splitter or markdown text splitter
- Add an option to use custom embeddings model
- More control over DB - purge, custom queries, etc.
- Storing notes in Notes via Claude