Skip to main content

Read local Apple Notes sqlite database and provide it as a context protocol server for Claude Desktop.

Project description

Apple Notes Model Context Protocol Server for Claude Desktop.

Read your local Apple Notes database and provide it to Claude Desktop.

Now Claude can search your most forgotten notes and know even more about you.

Noting could go wrong.

Components

Resources

The server implements the ability to read and write to your Apple Notes.

Tools

The server provides multiple prompts:

  • get-all-notes: Get all notes.
  • read-note: Get full content of a specific note.
  • search-notes: Search through notes.

Missing Features:

  • No handling of encrypted notes (ZISPASSWORDPROTECTED)
  • No support for pinned notes filtering
  • No handling of cloud sync status
  • Missing attachment content retrieval
  • No support for checklist status (ZHASCHECKLIST)
  • No ability to create or edit notes

Quickstart

Install the server

Recommend using uv to install the server locally for Claude.

uvx install github:yourusername/apple-notes-mcp@v0.1.1

OR

uv pip install git+https://github.com/yourusername/apple-notes-mcp.git@v0.1.1

Add your config as described below.

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Note: You might need to use the direct path to uv. Use which uv to find the path.

Development/Unpublished Servers Configuration
"mcpServers": {
  "apple-notes-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "{project_dir}",
      "run",
      "apple-notes-mcp"
    ]
  }
}
Published Servers Configuration
"mcpServers": {
  "apple-notes-mcp": {
    "command": "uvx",
    "args": [
      "apple-notes-mcp"
    ]
  }
}

Mac OS Disk Permissions

You'll need to grant Full Disk Access to the server. This is because the Apple Notes sqlite database is nested deep in the MacOS file system.

I may look at an AppleScript solution in the future if this annoys me further or if I want to start adding/appending to Apple Notes.

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory {project_dir} run apple-notes-mcp

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apple_notes_mcp-0.1.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apple_notes_mcp-0.1.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file apple_notes_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: apple_notes_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for apple_notes_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b241209990e26a8b38b9888b2e03b9cd07dd45561421b09363b9d1311fc69152
MD5 6b988e143c519b857d62c208094b7cd6
BLAKE2b-256 26a6d343a5048ed3c34c4a07d2d07627ed085baded3aa66f9e0094cfd8d0800a

See more details on using hashes here.

File details

Details for the file apple_notes_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for apple_notes_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 922700286b59a91f71a9f3f2872d598f57fcc1c643ad04e3a3e426d50b3d9eec
MD5 9f63033cbc1d39411453869976fdda34
BLAKE2b-256 7ef067211e0ad723ba0623a2596cf5974d44e9f23bdd0eefe930da2e17cda19f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page