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.
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 sweetrb/apple-notes-mcp MCP server so you can help me manage my Apple Notes
Claude will handle the installation and configuration automatically.
Or register it yourself with one deterministic command:
bashclaude mcp add apple-notes -s user -- npx -y apple-notes-mcp
Using the Plugin Marketplace
Install as a Claude Code plugin for automatic configuration and enhanced AI behavior:
bash/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.
On the first tool call, macOS shows an Automation permission prompt ("Claude" wants access to control "Notes") — click OK. Optionally, grant Full Disk Access to the app that launches the server to enable the database-backed tools (get-checklist-state, get-note-metadata, get-note-link, checklist annotations in get-note-markdown, and full get-sync-status detail); see the Full Disk Access Setup Guide. The rest of the server is pure AppleScript and works without it.
Native tag, checklist, table, pin, and rich append operations use two packaged
Apple Shortcuts. A third, Apple Notes MCP - Create Markdown Note, is optional:
only create-note's format: "markdown" needs it, and only on macOS 26 or
later. Run the explicit setup once:
bashnpx -y apple-notes-mcp setup
The command checks existing installations and opens only missing signed
workflows; it opens the optional Create Markdown Note bridge only on macOS 26 or
later. Confirm Add Shortcut in each macOS window, then verify with
npx -y apple-notes-mcp setup --check or the MCP doctor tool. setup --check
reports ready and doctor reports ok once the two required bridges are
installed; both list the optional bridge's status separately. macOS does not
support silent Shortcut import, so merely connecting an MCP client never opens
setup windows or bypasses these confirmations.
After install and after every upgrade, open Shortcuts.app and run each
installed bridge — Apple Notes MCP - Native Tags,
Apple Notes MCP - Background Operations v5 and, if you installed it, the
optional Apple Notes MCP - Create Markdown Note — once in the foreground, choosing
Always Allow when Shortcuts asks for permission. The Create Markdown Note
bridge stops before reaching Notes when run with no input, so start its run
with the request in shortcuts/README.md. The server runs these
Shortcuts in the background, where Shortcuts cannot display a first-run consent
prompt: an unanswered one stalls every native write on that bridge until it
times out, while doctor still reports the bridge installed. Quitting or
relaunching Shortcuts.app or Notes.app does not clear it; the foreground run
does, once per bridge.
Using the Codex Marketplace
The same plugin is available for Codex. Add the marketplace and install the plugin:
bashcodex plugin marketplace add sweetrb/apple-notes-mcp codex plugin add apple-notes@apple-notes-mcp
The Codex plugin runs the published apple-notes-mcp server through npx and ships the same Apple Notes skill, so behavior matches the Claude Code plugin.
Other Hosts (Hermes, Antigravity)
Two more hosts can run the same apple-notes MCP server (npx -y apple-notes-mcp):
-
Hermes Agent (NousResearch) — Hermes has no plugin/marketplace drop-in, so there is nothing in this repo to install from. Register the server with the CLI:
bashhermes mcp add apple-notes --command npx --args -y apple-notes-mcpOr add it to
~/.hermes/config.yamlby hand:yamlmcp_servers: apple-notes: command: npx args: ["-y", "apple-notes-mcp"]Restart your Hermes session afterward so the tools load.
-
Antigravity (Google) — add the server entry from
.antigravity-plugin/mcp_config.jsonto~/.gemini/config/mcp_config.json(or via Antigravity's MCP settings).
Using Claude Desktop
1. Install the server:
bashnpm install -g apple-notes-mcp
2. Add to Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
json{ "mcpServers": { "apple-notes": { "command": "npx", "args": ["-y", "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 folder/account targeting |
| 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 (supports nested paths) |
| Folder Management | Create, list, and delete folders with full hierarchical path support |
| Multi-Account | Work with iCloud, Gmail, Exchange, or any configured account, including account IDs and default folders |
| Batch Operations | Delete or move multiple notes at once |
| Checklist State | Read checklist done/undone state directly from the Notes database (requires Full Disk Access) |
| Export | Export all notes as JSON or get individual notes as Markdown |
| Attachments | List attachments, save them to disk, or fetch their bytes as base64 |
| Notes.app UI State | Reveal a note in Notes.app or read the current Notes.app selection |
| Sync Awareness | Detect iCloud sync in progress, warn about incomplete results |
| Collaboration | Detect shared notes, warn before modifying |
| Diagnostics | health-check plus a richer doctor (reachability, automation permission, accounts, Full Disk Access), sync status, and statistics |
Read/list/get tools also return structured JSON (structuredContent) alongside the text, so agents can consume results without parsing prose.
MCP resources & prompts
Resources expose read-only context the client can attach without a tool call:
notes://accounts, notes://folders, notes://stats, and the
notes://note/{id} template (returns the note as Markdown). Prompts package
common workflows: find-note, weekly-review, new-meeting-note.
AppleScript limitations
A few Notes UI features are not exposed to AppleScript. Some are recovered by reading Notes' own database instead; the rest genuinely cannot be supported. See docs/APPLESCRIPT-LIMITATIONS.md for the investigation and verification behind each:
- Pinned notes — Notes has no scriptable
pinnedproperty via AppleScript. Pin state can now be read with the BETAget-note-metadatatool (from the NoteStore database), but it still cannot be set programmatically. - Note-to-note links — AppleScript exposes no link property or link element, so link relationships between notes cannot be read, and a link cannot be inserted into a note body. A shareable
notes://showNote?identifier=<uuid>deep link is available viaget-note-link.
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. Automatically prepended as <h1> — do NOT include the title in content |
content | string | Yes | The body content of the note (do not repeat the title here) |
tags | string[] | No | Returned-only metadata — NOT written to Notes.app. Apple Notes tags can't be set via AppleScript, so values passed here are echoed back in the response but do not appear on the created note. Use inline #hashtags in content instead (Notes.app turns those into real tags). Refused with format: "markdown" |
folder | string | No | Folder to create the note in. Supports nested paths like "Work/Clients". The folder must already exist — create it first with create-folder. Defaults to account root |
account | string | No | Account name (defaults to Notes.app's default account; matched exactly or by a unique prefix — an ambiguous prefix is refused). Must be an account Notes.app already has configured — see list-accounts |
format | string | No | Content format: "plaintext" (default), "html", or "markdown". In all formats, the title is automatically prepended as the note's title line. In plaintext mode, newlines become <br>, tabs become <br>, and backslashes are preserved as HTML entities. "markdown" produces real Title/Heading/Subheading styles through a Shortcut; see Markdown notes |
Example (tagged with inline hashtags):
json{ "title": "Meeting Notes", "content": "Discussed Q4 roadmap and budget allocation\n\n#work #meetings" }
Example - Create in a specific folder:
json{ "title": "Client Meeting", "content": "Discussed project timeline", "folder": "Work/Clients" }
Example - HTML formatting:
json{ "title": "Status Report", "content": "<h2>Summary</h2><p>All tasks <b>on track</b>.</p><ul><li>Feature A: complete</li><li>Feature B: in progress</li></ul>", "format": "html" }
Note: The title is automatically prepended as
<h1>in both plaintext and HTML formats. Do not include a<h1>title tag in thecontentparameter, or the title will appear twice.
Known limitation: with
"plaintext"or"html",create-notesets the note body directly via AppleScript'sbodyproperty, which does not apply real Notes paragraph styles for interior content — an<h2>/<h3>tag or a<span style="font-size: …px">heading span incontentrenders as plain bold, styled text, not an actual Heading or Subheading (#172). Useformat: "markdown"for real headings in a new note, orappend-native'sformat: "markdown"on a note that already exists.
Markdown notes
format: "markdown" creates the note with Notes' own Markdown importer (the
Create Note action's "Interpret as Markdown" option, macOS 26+), run through the
packaged Apple Notes MCP - Create Markdown Note Shortcut. #, ## and ###
become real Title, Heading and Subheading styles, and the note starts with the
title line, with no seed line.
json{ "title": "Project Plan", "content": "## Goals\n\n- Ship the beta\n- Collect feedback\n\n### Links\n\n[Tracker](https://example.com/tracker)", "format": "markdown", "folder": "Work" }
- Notes interprets Markdown only in an iCloud account. The note is created in the
iCloud account's default folder, then moved to
folderin that account.foldermust already exist and is checked before anything is created. If it exists only in another account, the note is still created and verified in the iCloud default folder, and the error names that account and the note's id so you can create the folder there andmove-noteit instead of creating the note again.accountis refused with this format. tagsare refused with this format. Create the note without them, then add native tags to the returned id withadd-native-tags.contentaccepts the same bounded subset asappend-native's Markdown:#/##/###headings, flat lists,**bold**,*italic*and inline links. It also refuses Markdown that Notes would rewrite and the server could not verify:_emphasis (underscores inside a word, as insnake_case, and inside a link destination, as in[docs](https://example.com/_next/static), are fine), backslash escapes, character references such as&,---or===lines, indented headings or list items,1)lists, closing#s, and formatting inside link labels. Content that needs one of these literally, such as a/_nextpath or a literal\*, has no Markdown form here: useformat: "html"for that note (orappend-nativewithformat: "html"on an existing one), which keeps the characters but not the Heading and Subheading styles. Markdown punctuation intitleis escaped, so the title stays literal.- The server finds the new note among the notes added to the default folder during the run by verifying each one's visible text, heading levels and links by exact-ID readback, and moves it only after exactly one verifies. On any uncertain result it names the note (or says to search for the title) and never retries.
- It is gated like the other native operations;
get-capabilitiesreports it ascreate-note-markdown. The Create Markdown Note Shortcut is optional and needed only for this format (macOS 26+); install and approve it as described inshortcuts/README.md.
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 Notes.app's default account; exact or unique-prefix match) |
folder | string | No | Limit search to a specific folder (supports nested paths like "Work/Clients") |
modifiedSince | string | No | ISO 8601 date string to filter notes modified on or after this date (e.g., "2025-01-01") |
limit | number | No | Maximum number of results to return. Defaults to 50 — a broad query reads several properties per match via AppleScript (~200ms/note), so an unbounded search over hundreds of matches can exceed Notes' 30s timeout and return an error instead of results. Pass a higher value to see more; the applied limit (and whether it truncated the results) is disclosed in the response. |
Example - Search titles:
json{ "query": "meeting" }
Example - Search content:
json{ "query": "budget allocation", "searchContent": true }
Example - Search recent notes with limit:
json{ "query": "todo", "searchContent": true, "modifiedSince": "2025-01-01", "limit": 10 }
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 Notes.app's default account; exact or unique-prefix match, 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):
json{ "id": "x-coredata://ABC123/ICNote/p456" }
Example - Using title:
json{ "title": "Shopping List" }
Returns: The HTML content of the note, its exact id, and a
contentHash. Pass that hash back as expectedContentHash for a later update,
append, or delete; the write is rejected if the note's body or rich metadata
changed after this read. With Full Disk Access, embedded URLs omitted by
AppleScript are restored and returned in links. The response also reports
actual nativeTags, richContentComplete, and writable. Textual hashtags
remain a separate field and are not proof that Notes registered native tags.
⚠️ The returned body can be lossy — do not write it back verbatim. Inline
base64 images larger than APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES (default
256 KB) are replaced with [inline image omitted: …] text placeholders so an
image-heavy note cannot blow the MCP message limit. structuredContent reports
this as strippedImages (count) and truncated (boolean). When either is set,
passing this body to an unguarded full-body writer would replace the real images
with placeholder text. This server refuses update and append operations on
attachment-bearing notes; edit them in Notes.app.
get-native-objects
Reads native object identities and ranges, checklist item IDs and state, actual
native tags, and native table data from one exact note ID. Table output includes
stable row and column identifiers. tableCellsComplete is false when Notes
metadata cannot be decoded completely. This tool is read-only and requires Full
Disk Access.
list-native-tags
Lists actual native Notes tags used within one explicit account and folder,
mapping each tag to its matching note IDs. This differs from textual hashtag
search. The response reports complete: false and per-note errors when some
native metadata is unavailable. This tool is read-only and requires Full Disk
Access.
native-tags-status
Checks whether exactly one configured Native Tags Shortcut is installed. An installed workflow may still need macOS permission on its first execution, and installation does not show whether that consent was given: run it once in the foreground in Shortcuts.app and choose Always Allow after install or upgrade (see Troubleshooting).
add-native-tags
Adds actual native Notes tag objects to one exact note using id, a fresh
expectedContentHash, a distinctive existing scopeText, and tags. The
operation verifies the note's original text, links, and native objects after the
Shortcut runs. It refuses ambiguous title-and-scope matches and never retries an
uncertain write. Install the signed workflow as described in
shortcuts/README.md.
get-note-plaintext
Retrieves a note's body as plain text, with no HTML markup.
| 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 Notes.app's default account; exact or unique-prefix match, ignored if id is provided) |
Note: Either id or title must be provided. This reads the note's native plaintext property, so it skips the HTML-to-text conversion that get-note-content plus a Markdown pass would do. Use get-note-content when you need the HTML, or get-note-markdown when you want Markdown with checklist state.
Returns: The plain-text content of the note in structuredContent.plaintext, 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 Notes.app's default account; exact or unique-prefix match) |
Example:
json{ "title": "Project Plan" }
Returns: JSON with note metadata:
json{ "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.
show-note
Reveals a note in Notes.app using its unique CoreData identifier.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The CoreData URL identifier (e.g., x-coredata://...) |
separately | boolean | No | Open in a separate note window when supported by Notes.app |
Returns: Confirmation that Notes.app accepted the show command.
update-note
Updates an existing note's content and/or title.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Exact CoreData note ID returned by a read or search |
expectedContentHash | string | Yes | contentHash from the exact note version being replaced |
newTitle | string | No | New title (if changing the title; ignored when format is "html") |
newContent | string | Yes | New content for the note body |
format | string | No | Content format: "plaintext" (default) or "html". When "html", content replaces the entire note body as raw HTML and newTitle is ignored (the first HTML element serves as the title) |
allowLinkChanges | boolean | No | Set to true only when intentionally changing or removing existing links |
Title-only updates are rejected because Apple Notes titles are not unique.
Example - Using ID (recommended):
json{ "id": "x-coredata://ABC123/ICNote/p456", "expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "newContent": "Updated content here" }
Example - Update with HTML formatting:
json{ "id": "x-coredata://ABC123/ICNote/p456", "expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "newContent": "<p>New findings with <b>bold</b> emphasis.</p><pre><code>console.log('hello');</code></pre>", "format": "html" }
Returns: Confirmation with the exact ID, post-save contentHash, and
verifiedVisibleText: true, or an error if the note changed before saving.
Apple Notes normalizes HTML, so this proves the visible text after saving, not
byte-identical rich formatting.
Note: newContent replaces the entire note body — it is not appended. To add to a note, prefer append-to-note, which does the read-and-concatenate for you and always round-trips the body as HTML. If you do read-modify-write by hand, note that get-note-content replaces oversized inline images with text placeholders (see get-note-content) — writing that body back bakes the placeholders in.
Rich-content safety: update-note refuses to replace a note when its rich
metadata is unavailable or it contains attachments, native tags, inline
objects, or checklists that AppleScript cannot preserve. Existing link
destinations must remain present unless allowLinkChanges is explicitly set.
delete-note
Deletes a note (moves to Recently Deleted in Notes.app).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Exact CoreData note ID returned by a read or search |
expectedContentHash | string | Yes | contentHash from the exact note version being deleted |
Title-only deletion is rejected. If the note changed after the supplied hash was read, deletion is also rejected.
Example - Using ID (recommended):
json{ "id": "x-coredata://ABC123/ICNote/p456", "expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" }
Returns: Confirmation message, or error if note not found.
⚠️ Safety: Irreversible from the agent's side — requires explicit user confirmation before calling. Prefer search-notes / list-notes first to confirm the exact id(s) being deleted.
move-note
Moves a note to a different folder. The note is relocated in place via Notes.app's native move, so its id, creation date, and all embedded attachments (files, images, scans, PDFs, audio) are preserved. The destination folder must already exist — create it first with create-folder.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Exact CoreData note ID returned by a read or search |
folder | string | Yes | Destination folder name or nested path (e.g., "Work/Clients") |
Title-only moves are rejected.
Example - Using ID (recommended):
json{ "id": "x-coredata://ABC123/ICNote/p456", "folder": "Archive" }
Returns: Confirmation only after the same note ID is read back and its actual destination folder ID matches the requested folder.
append-to-note
Appends or prepends content to an existing note without replacing it. Always reads and writes as HTML, preserving all existing rich formatting.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Exact CoreData note ID returned by a read or search |
expectedContentHash | string | Yes | contentHash from the exact note version being extended |
content | string | Yes | Text to append to the note body |
position | string | No | "after" (default) appends to the end; "before" prepends to the start |
separator | string | No | String placed between existing content and new content (default: two newlines → <div><br></div> in HTML) |
format | string | No | Format of the content being appended: "plaintext" (default) or "html" |
Title-only appends are rejected.
Example - Append plaintext:
json{ "id": "x-coredata://ABC123/ICNote/p456", "expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "content": "New item added today" }
Example - Prepend HTML:
json{ "id": "x-coredata://ABC123/ICNote/p456", "expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "content": "<div><b>Status:</b> done</div>", "format": "html", "position": "before" }
Returns: Confirmation with the exact ID, post-save contentHash, and
verifiedVisibleText: true. Apple Notes normalizes HTML, so this proves the
visible text after saving, not byte-identical rich formatting. Warns when the
note is shared with collaborators.
Safety: The append is rejected if the note changed since it was read, rich metadata is unavailable, or the note contains attachments. Existing link destinations are verified after saving.
Notes containing native objects (a table, a checklist, native tags) cannot be
spliced, so they are routed to the native end-append bridge — see
append-native. That path additionally requires scopeText,
keeps the default blank-line separator and position: "after", and accepts a
fixed HTML subset rather than anything Notes.app can render:
| Native append | |
|---|---|
| Elements | <a> <b> <br> <code> <del> <div> <em> <h1> <h2> <h3> <i> <li> <ol> <p> <s> <span> <strong> <table> <tbody> <td> <th> <thead> <tr> <tt> <u> <ul> |
| Attributes | href on <a> (https:, http:, notes:, applenotes:, mailto: only) and a font-size style on <span>, e.g. <span style="font-size: 18px"> — the form Notes itself stores a heading as |
| Refused | every other element and attribute, by name, naming the accepted subset; <table> here (use create-table); comments, doctype and processing instructions |
Ordinary notes take the guarded HTML path and are not restricted to that subset.
get-note-link
Returns the notes://showNote?identifier=<uuid> deep-link URL for a note. The URL opens the note in Notes.app on iOS and macOS and can be stored in Reminders tasks or shared links.
| 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 Notes.app's default account; exact or unique-prefix match, ignored if id is provided) |
Note: Either id or title must be provided. Using id is recommended. Password-protected notes cannot be linked.
Example:
json{ "id": "x-coredata://ABC123/ICNote/p456" }
Returns: notes://showNote?identifier=<uuid> URL string, plus the note id and title.
Note: Requires Full Disk Access for the app that launches the server so the Notes SQLite database is readable. On macOS 12–15 the tool also falls back to the AppleScript note link property. Run the doctor tool to verify access.
list-notes
Lists all notes, optionally filtered by folder, date, and limit.
| Parameter | Type | Required | Description |
|---|---|---|---|
account | string | No | Account to list notes from (defaults to Notes.app's default account; exact or unique-prefix match) |
folder | string | No | Filter to notes in this folder only (supports nested paths like "Work/Clients") |
modifiedSince | string | No | ISO 8601 date string to filter notes modified on or after this date (e.g., "2025-01-01") |
limit | number | No | Maximum number of notes to return |
Example - All notes:
json{}
Example - Notes in a folder:
json{ "folder": "Work" }
Example - Recent notes with limit:
json{ "modifiedSince": "2025-06-01", "limit": 20 }
Returns: List of notes as {title, id} pairs — notes: Array<{title, id}>, plus count. The human-readable line is - <title> [id: <id>].
Use the returned id for any follow-up read/update/move/delete rather than re-resolving the title: titles are not unique, and a by-title lookup resolves a duplicated title to the same one note every time, silently skipping the others.
Changed in 2.7.0:
noteswas previouslystring[](titles only). Callers that treated the array as strings must now read.title.
get-selected-notes
Reads the currently selected note(s) from the Notes.app UI.
Parameters: None
Returns: Selected note metadata, including IDs for follow-up operations. Returns an empty list when Notes.app has no selected note.
Folder Operations
list-folders
Lists all folders in an account with full hierarchical paths.
| Parameter | Type | Required | Description |
|---|---|---|---|
account | string | No | Account to list folders from (defaults to Notes.app's default account; exact or unique-prefix match) |
Example:
json{}
Returns: List of folders with IDs, paths, account names, and shared state. Nested folders are shown as full paths (e.g., Work/Clients/Omnia). Duplicate folder names are disambiguated by their full path. Literal slashes in folder names are escaped as \/ (e.g., Spain\/Portugal 2023).
create-folder
Creates a new folder, including a whole nested hierarchy in one call.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Folder name, or a nested path separated by / (e.g. "Retro Tech/PC/CPUs"). Every intermediate folder is created; segments that already exist are skipped |
account | string | No | Account to create folder in (defaults to Notes.app's default account; exact or unique-prefix match) |
Example:
json{ "name": "Work Projects" }
Example - Create a nested hierarchy:
json{ "name": "Work/Clients/Omnia" }
Returns: Confirmation message. The call is idempotent — an already-existing folder (or path segment) is skipped rather than treated as an error, so it is safe to call before every create-note that targets a folder.
get-folder-by-id
Reads one exact folder's current name and parent ID. Use these values with
rename-folder; this avoids relying on ambiguous folder names or paths.
rename-folder
Renames an existing folder in place using its exact id, expectedName,
expectedParentId, and newName. The operation preserves the folder ID, notes,
and descendants. It refuses stale metadata and a conflicting sibling name.
delete-folder
Deletes a folder.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name or path of the folder to delete (supports nested paths like "Work/Old") |
account | string | No | Account containing the folder (defaults to Notes.app's default account; exact or unique-prefix match) |
Example:
json{ "name": "Old Projects" }
Returns: Confirmation message, or error if folder not found or not empty.
⚠️ Safety: Irreversible — requires explicit user confirmation before calling. Prefer list-folders first to confirm the exact folder path being deleted.
show-folder
Reveals a folder in Notes.app using its unique CoreData identifier.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The folder's CoreData identifier (from list-folders) |
separately | boolean | No | Open in a separate window when supported by Notes.app |
Returns: Confirmation that Notes.app accepted the show command.
Account Operations
list-accounts
Lists all configured Notes accounts.
Parameters: None
Example:
json{}
Returns: List of accounts with names, IDs, upgraded state, and default folder metadata.
get-default-location
Returns the default account and folder Notes.app uses for newly created notes.
Parameters: None
Returns: Default account and folder metadata, including IDs and shared state.
show-account
Reveals an account in Notes.app using its unique CoreData identifier.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The account's CoreData identifier (from list-accounts) |
separately | boolean | No | Open in a separate window when supported by Notes.app |
Returns: Confirmation that Notes.app accepted the show command.
Batch Operations
batch-delete-notes
Deletes multiple notes at once by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
notes | object[] | Yes | Array of {id, expectedContentHash} snapshots to delete (max 500 per request) |
Returns: Summary of successes and failures.
⚠️ Safety: Irreversible — requires explicit user confirmation before calling. Prefer search-notes / list-notes first to confirm the exact ids being deleted.
batch-move-notes
Moves multiple notes to a folder.
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | string[] | Yes | Array of note IDs to move (max 500 per request) |
folder | string | Yes | Destination folder name or nested path (e.g., "Work/Clients"). Must already exist — create it with create-folder |
account | string | No | Account containing the folder |
Returns: Summary of successes and failures. Each success is reported only after the note's actual container folder ID matches the destination folder ID.
Export Operations
export-notes-json
Exports notes as JSON — metadata, HTML content, and plaintext, grouped by account and folder — one page at a time. A whole library rarely fits in one MCP message (note bodies embed images as base64), so each call returns a page and says where the next one starts.
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | number | No | 0-based position to start from, counting notes in account → folder → note order (default 0). Pass the previous page's page.nextOffset |
limit | number | No | Maximum notes in this page (default 50, max 500). A page holds fewer when it reaches the response size limit |
modifiedSince | string | No | ISO 8601 date string; export only notes modified on or after this date (e.g., "2025-01-01"). Keep the same value while paging |
Example - First page:
json{}
Example - A later page of an incremental backup:
json{ "offset": 50, "modifiedSince": "2025-06-01" }
Returns: exportDate, version, accounts (every account and folder, holding the notes that fall in this page), summary (totalNotes in this page, totalFolders, totalAccounts), and page:
| Field | Description |
|---|---|
offset / limit | The window that was applied |
totalAvailable | Notes in the library, after modifiedSince |
returned | Notes in this page |
nextOffset | Where the next page starts; absent on the last page |
hasMore | true until the last page — call again with offset set to nextOffset |
stoppedAtSizeLimit | true when the page closed early to stay under the response size limit |
Size limit: each response stays under APPLE_NOTES_MCP_EXPORT_MAX_BYTES (default 8 MB), below the 10 MB per-message limit of MCP SDK stdio clients, which drop the connection on anything larger without passing on any error text. A note too large to fit on its own is still returned: its oversized inline images are replaced with placeholders (strippedImages), or failing that its HTML body, and if necessary its plaintext, is left empty with contentOmitted: true. Read such a note with get-note-content, and its files with list-attachments / save-attachment. Lower limit if your MCP client caps tool output below that size.
Paging: positions are worked out on every call, so notes created, deleted, or moved between calls can shift a page. Page through promptly, or use modifiedSince for incremental backups.
get-note-markdown
Gets a note's content as Markdown instead of HTML. If the note contains checklists and Full Disk Access is granted, checklist items are automatically annotated with [x] (done) or [ ] (undone).
| 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. Checklist items include [x]/[ ] prefixes when database access is available.
get-checklist-state
Reads checklist done/undone state for a note. This bypasses the AppleScript limitation where body of note strips checklist state, by reading directly from the NoteStore SQLite database.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Note ID (use search-notes to find it first) |
Example:
json{ "id": "x-coredata://ABC123/ICNote/p456" }
Returns: Checklist items with done/undone state and progress count:
Checklist for "Shopping List" (2/4 done): [x] Buy milk [x] Get bread [ ] Pick up laundry [ ] Call dentist
get-note-metadata (BETA)
Reads note metadata that AppleScript cannot expose, by querying the NoteStore SQLite database directly: pinned state, checklist flags, trash/recovery state, the preview snippet, and the password hint. The available fields vary by macOS version.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup).
BETA: the NoteStore schema changes between macOS releases, so some fields can be absent on older or newer systems. The database is only ever read, never written.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Note ID (use search-notes to find it first) |
Returns: A metadata object in structuredContent holding any of pinned, hasChecklist, hasChecklistInProgress, recoveringFromTrash, passwordProtected, passwordHint, snippet, widgetSnippet, and smartFolderQuery. Unlike most read tools, it also resolves trashed notes that AppleScript can no longer find.
add-attachment
Adds one nonempty local file of at most 64 MiB to an exact note using id, the
latest expectedContentHash, and an absolute path. The server never retries
the insertion. It verifies that existing rich content survived and compares the
fetched attachment bytes with the source before reporting success.
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 IDs, names, content identifiers, URLs when available, created/modified dates, and shared state.
⚠️ Safety: A lookup failure is reported as an error, never as an empty list — so an empty result reliably means the note has no attachments and is safe to replace wholesale. Treat an error as "unknown", not "none".
save-attachment
Saves a note attachment to disk.
| Parameter | Type | Required | Description |
|---|---|---|---|
noteId | string | Yes | CoreData note ID (from search-notes/list-notes) |
attachmentId | string | Yes | Attachment ID (from list-attachments) |
savePath | string | Yes | Absolute destination file path. Must be under your home directory, a temp directory, or /Volumes |
Returns: Confirmation with the saved path, name, and content type (also in structuredContent).
fetch-attachment
Returns a note attachment's bytes as base64, without writing to disk (the read counterpart to save-attachment).
| Parameter | Type | Required | Description |
|---|---|---|---|
noteId | string | Yes | CoreData note ID (from search-notes/list-notes) |
attachmentId | string | Yes | Attachment ID (from list-attachments) |
Returns: The attachment name, content type, byte count, and base64 payload in structuredContent.base64.
show-attachment
Reveals one note attachment in Notes.app. Attachments are elements of a note, so this takes both the note id and the attachment id (the same pair used by save-attachment / fetch-attachment).
| Parameter | Type | Required | Description |
|---|---|---|---|
noteId | string | Yes | CoreData note ID (from search-notes/list-notes) |
attachmentId | string | Yes | Attachment ID (from list-attachments) |
separately | boolean | No | Open in a separate window when supported by Notes.app |
Returns: Confirmation that Notes.app revealed the attachment.
Diagnostics
health-check
Verifies Notes.app connectivity and permissions.
Parameters: None
Returns: Status of all health checks (app installed, permissions, account access).
doctor
Run a full setup diagnostic: Notes.app reachability, the Automation permission, configured accounts, and Full Disk Access — each reported as ok / warn / fail with an actionable message. This is the richer counterpart to health-check; reach for it first when something isn't working.
Parameters: None
Returns: A per-check report (structuredContent carries the raw {healthy, checks[]}). The Full Disk Access check tells you whether checklist-state features will work — see Full Disk Access Setup.
get-notes-stats
Gets comprehensive statistics about your notes.
Parameters: None
Returns: Total counts, per-account breakdown, folder statistics, and recently modified counts.
The structuredContent also includes a coverage object — { complete, scanned, covered, warnings[] }. If complete is false, one or more accounts (or the recent-activity scan) could not be read and the counts reflect only the scopes that succeeded; the text output adds a "⚠️ Partial results" line. This lets you tell a genuinely empty library apart from a partial failure.
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.
Native background operations
Install the signed workflows once as described in
shortcuts/README.md, then run each once in the
foreground in Shortcuts.app and choose Always Allow — again after every
upgrade — so no first-run consent prompt is left for a background run that
cannot display it. Native writes never use UI
automation or write directly to the Notes database. Every operation on an
existing note requires an exact note ID, a fresh expectedContentHash, and a
distinctive existing scopeText so the Shortcut and server can independently
resolve the same note. Creating a note from Markdown is
create-note with format: "markdown".
get-capabilities
Reports which background operations are implemented, live-verified, installed, and currently available, with a specific reason for each unavailable operation.
append-native
Appends bounded plaintext, semantic HTML, or Markdown while preserving existing
native objects. The regular append-to-note tool routes protected notes here
when scopeText is supplied. Use a distinctive phrase of plain words without
punctuation, hashtags, or paths because Notes search may not resolve them
literally. format: "html" accepts the fixed subset tabulated under
append-to-note; content outside it is refused by name, with
the accepted subset in the error. format: "markdown" accepts the same bounded
subset as format: "html"'s Markdown-shaped content (#/##/### headings,
flat lists, emphasis, and inline links) but is sent through Notes' own native
Markdown importer rather than converted to HTML first, so #/##/###
produce real Title/Heading/Subheading — Notes' HTML importer only
distinguishes two heading levels and renders ### the same as ##. Markdown
that the importer would rewrite, so the appended text could not be verified, is
refused before anything is written; the list is under
Markdown notes. A
transport failure names the Shortcut it was waiting on, so a missing or
unapproved bridge is identified rather than guessed at; a timeout also says it
may be an unanswered fir




