npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

apple-notes-mcp

v1.2.18

Published

MCP server for Apple Notes - create, search, update, and manage notes via Claude

Readme

Apple Notes MCP Server

A Model Context Protocol (MCP) server that enables AI assistants like Claude to read, create, search, and manage notes in Apple Notes on macOS.

npm version CI License: MIT

What is This?

This server acts as a bridge between AI assistants and Apple Notes. Once configured, you can ask Claude (or any MCP-compatible AI) to:

  • "Save this conversation as a note called 'Meeting Summary'"
  • "Find all my notes about the project deadline"
  • "Read my shopping list note"
  • "Move my draft notes to the Archive folder"
  • "What notes do I have in my Work folder?"

The AI assistant communicates with this server, which then uses AppleScript to interact with the Notes app on your Mac. All data stays local on your machine.

Quick Start

Using Claude Code (Easiest)

If you're using Claude Code (in Terminal or VS Code), just ask Claude to install it:

Install the apple-notes-mcp MCP server so you can help me manage my Apple Notes

Claude will handle the installation and configuration automatically.

Using the Plugin Marketplace

Install as a Claude Code plugin for automatic configuration and enhanced AI behavior:

/plugin marketplace add sweetrb/apple-notes-mcp
/plugin install apple-notes

This method also installs a skill that teaches Claude when and how to use Apple Notes effectively.

Manual Installation

1. Install the server:

npm install -g apple-notes-mcp

2. Add to Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "apple-notes": {
      "command": "npx",
      "args": ["apple-notes-mcp"]
    }
  }
}

3. Restart Claude Desktop and start using natural language:

"Create a note called 'Ideas' with my brainstorming thoughts"

On first use, macOS will ask for permission to automate Notes.app. Click "OK" to allow.

Requirements

  • macOS - Apple Notes and AppleScript are macOS-only
  • Node.js 20+ - Required for the MCP server
  • Apple Notes - Must have at least one account configured (iCloud, Gmail, etc.)

Features

| Feature | Description | |---------|-------------| | Create Notes | Create notes with titles, content, and optional organization | | Search Notes | Find notes by title or search within note content | | Read Notes | Retrieve note content and metadata | | Update Notes | Modify existing notes (title and/or content) | | Delete Notes | Remove notes (moves to Recently Deleted) | | Move Notes | Organize notes into folders | | Folder Management | Create, list, and delete folders | | Multi-Account | Work with iCloud, Gmail, Exchange, or any configured account | | Batch Operations | Delete or move multiple notes at once | | Export | Export all notes as JSON or get individual notes as Markdown | | Attachments | List attachments in notes | | Sync Awareness | Detect iCloud sync in progress, warn about incomplete results | | Collaboration | Detect shared notes, warn before modifying | | Diagnostics | Health check, sync status, and statistics tools |


Tool Reference

This section documents all available tools. AI agents should use these tool names and parameters exactly as specified.

Note Operations

create-note

Creates a new note in Apple Notes.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | title | string | Yes | The title of the note (becomes first line) | | content | string | Yes | The body content of the note | | tags | string[] | No | Tags for organization (stored in metadata) |

Example:

{
  "title": "Meeting Notes",
  "content": "Discussed Q4 roadmap and budget allocation",
  "tags": ["work", "meetings"]
}

Returns: Confirmation message with note title and ID. Save the ID for subsequent operations like update-note, delete-note, etc.


search-notes

Searches for notes by title or content.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | query | string | Yes | Text to search for | | searchContent | boolean | No | If true, searches note body; if false (default), searches titles only | | account | string | No | Account to search in (defaults to iCloud) |

Example - Search titles:

{
  "query": "meeting"
}

Example - Search content:

{
  "query": "budget allocation",
  "searchContent": true
}

Returns: List of matching notes with titles, folder names, and IDs. Use the returned ID for subsequent operations like get-note-content, update-note, etc.


get-note-content

Retrieves the full content of a specific note.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | No | Note ID (preferred - more reliable than title) | | title | string | No | Note title (use id instead when available) | | account | string | No | Account containing the note (defaults to iCloud, ignored if id is provided) |

Note: Either id or title must be provided. Using id is recommended as it's unique and avoids issues with duplicate titles.

Example - Using ID (recommended):

{
  "id": "x-coredata://ABC123/ICNote/p456"
}

Example - Using title:

{
  "title": "Shopping List"
}

Returns: The HTML content of the note, or error if not found.


get-note-details

Retrieves metadata about a note (without full content).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | title | string | Yes | Exact title of the note | | account | string | No | Account containing the note (defaults to iCloud) |

Example:

{
  "title": "Project Plan"
}

Returns: JSON with note metadata:

{
  "id": "x-coredata://...",
  "title": "Project Plan",
  "created": "2025-01-15T10:30:00.000Z",
  "modified": "2025-01-20T14:22:00.000Z",
  "shared": false,
  "passwordProtected": false,
  "account": "iCloud"
}

get-note-by-id

Retrieves a note using its unique CoreData identifier.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | Yes | The CoreData URL identifier (e.g., x-coredata://...) |

Returns: JSON with note metadata, or error if not found.


update-note

Updates an existing note's content and/or title.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | No | Note ID (preferred - more reliable than title) | | title | string | No | Current title of the note to update (use id instead when available) | | newTitle | string | No | New title (if changing the title) | | newContent | string | Yes | New content for the note body | | account | string | No | Account containing the note (defaults to iCloud, ignored if id is provided) |

Note: Either id or title must be provided. Using id is recommended.

Example - Using ID (recommended):

{
  "id": "x-coredata://ABC123/ICNote/p456",
  "newContent": "Updated content here"
}

Example - Update content only:

{
  "title": "Shopping List",
  "newContent": "- Milk\n- Eggs\n- Bread\n- Butter"
}

Example - Update title and content:

{
  "title": "Draft",
  "newTitle": "Final Version",
  "newContent": "This is the completed document."
}

Returns: Confirmation message, or error if note not found.


delete-note

Deletes a note (moves to Recently Deleted in Notes.app).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | No | Note ID (preferred - more reliable than title) | | title | string | No | Exact title of the note to delete (use id instead when available) | | account | string | No | Account containing the note (defaults to iCloud, ignored if id is provided) |

Note: Either id or title must be provided. Using id is recommended.

Example - Using ID (recommended):

{
  "id": "x-coredata://ABC123/ICNote/p456"
}

Example - Using title:

{
  "title": "Old Draft"
}

Returns: Confirmation message, or error if note not found.


move-note

Moves a note to a different folder.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | No | Note ID (preferred - more reliable than title) | | title | string | No | Title of the note to move (use id instead when available) | | folder | string | Yes | Name of the destination folder | | account | string | No | Account containing the note (defaults to iCloud, ignored if id is provided) |

Note: Either id or title must be provided. Using id is recommended.

Example - Using ID (recommended):

{
  "id": "x-coredata://ABC123/ICNote/p456",
  "folder": "Archive"
}

Example - Using title:

{
  "title": "Completed Task",
  "folder": "Archive"
}

Returns: Confirmation message, or error if note or folder not found.

Note: This operation copies the note to the new folder then deletes the original. If the delete fails, the note will exist in both locations.


list-notes

Lists all notes, optionally filtered by folder.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | account | string | No | Account to list notes from (defaults to iCloud) | | folder | string | No | Filter to notes in this folder only |

Example - All notes:

{}

Example - Notes in a folder:

{
  "folder": "Work"
}

Returns: List of note titles.


Folder Operations

list-folders

Lists all folders in an account.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | account | string | No | Account to list folders from (defaults to iCloud) |

Example:

{}

Returns: List of folder names.


create-folder

Creates a new folder.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | name | string | Yes | Name for the new folder | | account | string | No | Account to create folder in (defaults to iCloud) |

Example:

{
  "name": "Work Projects"
}

Returns: Confirmation message, or error if folder already exists.


delete-folder

Deletes a folder.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | name | string | Yes | Name of the folder to delete | | account | string | No | Account containing the folder (defaults to iCloud) |

Example:

{
  "name": "Old Projects"
}

Returns: Confirmation message, or error if folder not found or not empty.


Account Operations

list-accounts

Lists all configured Notes accounts.

Parameters: None

Example:

{}

Returns: List of account names (e.g., "iCloud", "Gmail", "Exchange").


Batch Operations

batch-delete-notes

Deletes multiple notes at once by ID.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | ids | string[] | Yes | Array of note IDs to delete |

Returns: Summary of successes and failures.


batch-move-notes

Moves multiple notes to a folder.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | ids | string[] | Yes | Array of note IDs to move | | folder | string | Yes | Destination folder name | | account | string | No | Account containing the folder |

Returns: Summary of successes and failures.


Export Operations

export-notes-json

Exports all notes as a JSON structure.

Parameters: None

Returns: Complete JSON export with all accounts, folders, and notes including metadata.


get-note-markdown

Gets a note's content as Markdown instead of HTML.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | No | Note ID (preferred) | | title | string | No | Note title | | account | string | No | Account containing the note |

Returns: Note content converted to Markdown format.


list-attachments

Lists attachments in a note.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | id | string | No | Note ID (preferred) | | title | string | No | Note title | | account | string | No | Account containing the note |

Returns: List of attachments with names and content types.


Diagnostics

health-check

Verifies Notes.app connectivity and permissions.

Parameters: None

Returns: Status of all health checks (app installed, permissions, account access).


get-notes-stats

Gets comprehensive statistics about your notes.

Parameters: None

Returns: Total counts, per-account breakdown, folder statistics, and recently modified counts.


get-sync-status

Checks iCloud sync status.

Parameters: None

Returns: Whether sync is active, pending uploads, and last activity time.


list-shared-notes

Lists all notes shared with collaborators.

Parameters: None

Returns: List of shared notes with warnings about collaboration.


Usage Patterns

Basic Workflow

User: "Create a note called 'Todo' with my tasks for today"
AI: [calls create-note with title="Todo", content="Tasks for today..."]
    "I've created a note called 'Todo' with your tasks."

User: "What notes do I have?"
AI: [calls list-notes]
    "You have 15 notes: Todo, Shopping List, Meeting Notes..."

User: "Show me the Shopping List"
AI: [calls get-note-content with title="Shopping List"]
    "Here's your shopping list: - Milk - Eggs - Bread..."

Working with Accounts

By default, all operations use iCloud. To work with other accounts:

User: "What accounts do I have?"
AI: [calls list-accounts]
    "You have 3 accounts: iCloud, Gmail, Exchange"

User: "List notes in my Gmail account"
AI: [calls list-notes with account="Gmail"]
    "Your Gmail account has 5 notes..."

Organizing with Folders

User: "Create a folder called 'Archive'"
AI: [calls create-folder with name="Archive"]
    "Created folder 'Archive'"

User: "Move my old meeting notes to Archive"
AI: [calls move-note with title="Old Meeting Notes", folder="Archive"]
    "Moved 'Old Meeting Notes' to 'Archive'"

Installation Options

npm (Recommended)

npm install -g apple-notes-mcp

From Source

git clone https://github.com/sweetrb/apple-notes-mcp.git
cd apple-notes-mcp
npm install
npm run build

If installed from source, use this configuration:

{
  "mcpServers": {
    "apple-notes": {
      "command": "node",
      "args": ["/path/to/apple-notes-mcp/build/index.js"]
    }
  }
}

Security and Privacy

  • Local only - All operations happen locally via AppleScript. No data is sent to external servers.
  • Permission required - macOS will prompt for automation permission on first use.
  • Password-protected notes - Notes with passwords cannot be read or modified via this server.
  • No credential storage - The server doesn't store any passwords or authentication tokens.

Known Limitations

| Limitation | Reason | |------------|--------| | macOS only | Apple Notes and AppleScript are macOS-specific | | No attachment content | Attachments can be listed but not downloaded via AppleScript | | No pinned notes | Pin status is not exposed via AppleScript | | No rich formatting | Content is HTML; complex formatting may not render | | Title matching | Most operations require exact title matches |

Backslash Escaping (Important for AI Agents)

When sending content containing backslashes (\) to this MCP server, you must escape them as \\ in the JSON parameters.

Why: The MCP protocol uses JSON for parameter passing. In JSON, a single backslash is an escape character. To include a literal backslash in content, it must be escaped as \\.

Example - Shell command with escaped path:

{
  "title": "Install Script",
  "content": "cp ~/Library/Mobile\\\\ Documents/file.txt ~/.config/"
}

The \\\\ in JSON becomes \\ in the actual string, which represents a single \ in the note.

Common patterns requiring escaping:

  • Shell escaped spaces: Mobile\ DocumentsMobile\\\\ Documents in JSON
  • Windows paths: C:\Users\C:\\\\Users\\\\ in JSON
  • Regex patterns: \d+\\\\d+ in JSON

If you see errors when creating/updating notes with backslashes, double-check that backslashes are properly escaped in the JSON payload.


Troubleshooting

"Notes.app not responding"

  • Ensure Notes.app is not frozen
  • Try opening Notes.app manually
  • Restart the MCP server

"Permission denied"

  • macOS needs automation permission
  • Go to System Preferences > Privacy & Security > Automation
  • Ensure your terminal/Claude has permission to control Notes

"Note not found"

  • Note titles must match exactly (case-sensitive)
  • Check if the note is in a different account
  • Use list-notes to see available notes

Note creation/update fails silently with backslashes

  • Content containing \ characters requires JSON escaping
  • Use \\ to represent each literal backslash
  • See "Backslash Escaping" section under Known Limitations

Development

npm install      # Install dependencies
npm run build    # Compile TypeScript
npm test         # Run test suite (217 tests)
npm run lint     # Check code style
npm run format   # Format code

Author

Rob Sweet - President, Superior Technologies Research

A software consulting, contracting, and development company.

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.