Apple Notes MCP Server
Controls Apple Notes on macOS through AppleScript, Apple Shortcuts, and read-only database access, enabling creation, search, reading, editing, organization, folder and account management, native tags, checklists, tables, pinned notes, links, attachments, exports, transcripts, drawings, and queries.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Apple Notes MCP Server Find all my notes about the project deadline"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Apple Notes MCP Server
A Model Context Protocol (MCP) server that lets Claude (Claude Code and Claude Desktop), Codex, and other MCP clients read, search, create, edit, organize, and export notes in Apple Notes on macOS. It runs locally on your Mac and talks to Notes through AppleScript, Apple Shortcuts, and read-only access to the Notes database.
Beyond creating and editing notes, it manages folders and accounts, native tags, checklists, tables, pinned notes, links, and attachments. It can also export notes as Markdown (through templates you can edit in a local web editor), HTML (with classic drawings as SVG), or JSON, read audio transcripts and drawings, link to single paragraphs with anchors that survive edits, and run a query language across your whole library.
Contents
What is This? · Setup on your Mac · Requirements · macOS compatibility · Features
Tool Reference: notes, folders, accounts, batch, export, attachments, and media, diagnostics, native background operations, private helper
Usage Patterns · Installation choices and upgrades · Server settings · Full Disk Access · Public native helper · Permission broker
Security and Privacy · Known Limitations · Troubleshooting · Recurring macOS permission prompts · Development
Related MCP server: apple-mcp
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. Some features also use packaged Apple Shortcuts (native tags, checklists, tables, pinning) or read the Notes database read-only (queries, checklist state, transcripts). Notes operations and speech recognition run locally. If you explicitly enable downloadAssets: true, the public helper may download speech models; what your MCP client does with tool results is up to that client.
Setup on your Mac
Apple Notes MCP runs on the Mac that holds your Notes library. Your assistant starts a local MCP server over stdio, and the server uses AppleScript, signed Apple Shortcuts, and read-only database access. Choose one client setup below, then complete the macOS permissions and optional feature setup you need.
Version boundary: these instructions describe v2.15.1, including the optional permission broker. Normal client registration starts an in-process server unless a matching broker is already installed and answering. Broker installation is a separate opt-in step.
Manual client entries, setup commands, and the source checkout below select v2.15.1. Run setup from the same release as the server your client actually launches. The Claude Code plugin bundles its server; the Codex plugin manifest launches an unpinned npm package even when its marketplace is pinned. For reproducible Codex setup, use the manual registration below instead of the plugin. When upgrading, update the selected version consistently in the client and setup commands.
Run each setup target separately and use the exact options shown. Version 2.15.1 does not reject all unknown or mixed setup flags; a misspelled target can fall through to Shortcut setup and open import windows.
Requirements
macOS with Notes.app and at least one configured Notes account. Features depend on the installed macOS version and account type; inspect
get-capabilitiesbefore relying on optional features.Node.js 20 or newer. The
npxexamples also need npm, normally included with Node.js.A client that can launch a local stdio MCP server on this Mac. The configurations below cover Claude Code, Claude Desktop, Codex, Hermes, and Antigravity.
Automation permission to control Notes.app for AppleScript operations. Database-backed operations also need Full Disk Access for the process macOS holds responsible for the server.
Apple Shortcuts for native writes such as native tags, checklists, tables, pinning, and rich append. The optional native Markdown creation route needs macOS 26 or newer and an iCloud account.
An Apple developer toolchain only if you choose to build an optional native helper or permissions window. The public helper builds with older SDKs too; only a macOS 26 or newer SDK compiles in its
SpeechAnalyzerroute (see macOS compatibility).
macOS compatibility
What works depends on the macOS release. get-capabilities reports this for the Mac it runs on (features.<name>.minimumMacOSVersion, osSupported, and a reason such as requires_macos_13), so check it there rather than relying on this table alone. The server is developed and tested on current macOS; rows for older releases come from each feature's declared minimum and Apple's API availability, not from testing on those releases.
Feature | macOS 12 | macOS 13–15 | macOS 26 and later |
AppleScript core: create, read, search, update, move and delete notes and folders ( | Yes | Yes | Yes |
Notes database reads with Full Disk Access: queries, structure, checklist state, exports, attachments ( | Yes | Yes | Yes |
| Yes, AppleScript fallback | Yes, AppleScript fallback | No, needs Full Disk Access |
Listing bridge Shortcuts ( | Yes, by name (12's | Yes | Yes |
Native Tags and Background Operations bridges: native tags, checklists, tables, pinning, note links, | No: they call Notes App Intents actions, which macOS 12 does not have | Minimum declared; untested | Yes |
Markdown note creation through the Markdown bridge ( | No | No | Yes, iCloud account only |
Public native helper build ( | Builds with the SDK that release's Xcode or Command Line Tools provide; not tested on macOS 12 itself | Builds | Builds |
Classic drawing decode ( | Yes | Yes | Yes |
On-device transcription ( |
| Same as macOS 12 |
|
Stored audio transcripts ( | With Full Disk Access | With Full Disk Access | With Full Disk Access |
Before macOS 13, setup does not open the Tags or Background bridge for import, and setup and setup --check report both as skipped with requires_macos_13.
The public helper compiles its SpeechAnalyzer route only when the SDK provides it. With an older SDK the same helper builds without it and transcribes through SFSpeechRecognizer on every release, even on macOS 26 and later. Node.js 20 or newer is required everywhere.
On macOS 12 the privacy panes are under System Preferences → Security & Privacy → Privacy, not System Settings. macOS never prompts for Full Disk Access on any release: nothing will ask, and you add the app or executable yourself (see which process needs it).
Python is not an Apple Notes MCP runtime dependency. The package includes its compiled JavaScript server and signed Shortcut files. Python is used by developer scripts that regenerate those workflows, not by normal installation or MCP tool calls.
You do not need an Apple ID password, API key, or NotesCTL installation to configure this server. A client's own login and tool-approval policy are separate from macOS privacy permissions.
1. Choose one client registration
Use either a plugin or a manual MCP entry for the same client. Registering both can load duplicate servers or leave you using a different package version than expected. Adding a client entry does not grant macOS permissions or import Shortcuts.
Claude Code
For the plugin, run these commands inside a Claude Code session:
/plugin marketplace add sweetrb/apple-notes-mcp#v2.15.1
/plugin install apple-notes@apple-notes-mcpThe plugin bundles the server and the Apple Notes skill. For a manual MCP registration instead, run this in your terminal:
claude mcp add apple-notes -s user -- npx -y apple-notes-mcp@latestCheck the connection with /mcp in Claude Code. claude mcp get apple-notes inspects the manually registered server. Project-scoped .mcp.json entries require workspace/server approval and can override a user-scoped entry.
Claude Desktop
Open Settings → Developer → Edit Config. Merge the following server entry into ~/Library/Application Support/Claude/claude_desktop_config.json, preserving any existing servers:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["-y", "apple-notes-mcp@latest"]
}
}
}Fully quit and reopen Claude Desktop. This npx route does not require a preceding global npm installation. If the desktop app cannot find npx, use an absolute executable path or the fixed Node configuration below. The desktop app may have a different PATH from your interactive shell.
Codex
For the plugin and its Apple Notes skill:
codex plugin marketplace add sweetrb/apple-notes-mcp --ref v2.15.1
codex plugin add apple-notes@apple-notes-mcpFor a manual MCP registration instead:
codex mcp add apple-notes -- npx -y apple-notes-mcp@latestThe equivalent entry in ~/.codex/config.toml is:
[mcp_servers.apple-notes]
command = "npx"
args = ["-y", "apple-notes-mcp@latest"]If codex is not on your terminal's PATH, use the desktop client's Settings → MCP servers → Add server: choose STDIO, enter npx with arguments -y and apple-notes-mcp@latest, save, and restart the server.
Restart the relevant local Codex session or client. Use /mcp in the CLI or the client's MCP settings to inspect the connection. codex mcp list lists manually configured servers. The desktop client, CLI, and IDE extension share the Codex configuration; select local execution on the Mac containing your Notes library.
The plugin's server entry runs the published npm package through unpinned npx, despite the marketplace ref above. Its server may therefore differ from v2.15.1. Use the manual entry to pin the runtime for these instructions, or run setup from the release matching the plugin's actual server. This is a different distribution path from the Claude Code plugin's bundled server.
Hermes
Register a local stdio server:
hermes mcp add apple-notes --command npx --args -y apple-notes-mcp@latestOr merge this entry into ~/.hermes/config.yaml:
mcp_servers:
apple-notes:
command: npx
args: ["-y", "apple-notes-mcp@latest"]Restart the Hermes session. This repository supplies an MCP configuration route for Hermes; see its CLI commands and MCP configuration reference.
Antigravity
In the IDE, open MCP Servers → Manage MCP Servers → View raw config. Merge the same mcpServers JSON entry shown for Claude Desktop into the global ~/.gemini/config/mcp_config.json, or use the workspace configuration at .agents/mcp_config.json. Refresh or restart the client so it loads the server. Google's MCP guide describes the current menu and configuration paths.
The repository's .antigravity-plugin/mcp_config.json supplies an unpinned stdio server entry; the JSON above pins the audited release. Use command and args; this package does not provide a remote serverUrl.
Gemini Spark (macOS Local MCP)
In Gemini macOS builds that offer Local MCP, open Connected Apps, click + Custom, and select Local MCP in "Set up a custom connected app". Fill in the form with:
Field | Value |
Server Name | Apple Notes |
Description | Read, search, create, edit, organize, and export Apple Notes on this Mac. |
Command |
|
You can print these instructions from the installed server:
npx -y apple-notes-mcp setup --gemini-sparkThe command only prints the guide. It exits before loading server configuration, checking Notes, or running the other setup commands, and it doesn't register the app or change permissions. Exit 0 means the guide was printed, not that Gemini connected. Run it by itself; combining it with other setup options exits 2.
Keep Sandbox settings at Default initially, then click Next and review the discovered tools and permission requests before connecting. If Gemini can't launch the server, inspect Show Logs and check whether npx is available to the app. For a stable local installation, npm install -g apple-notes-mcp provides the apple-notes-mcp command; you can also use absolute paths to your Node executable and the installed build/index.js if the app can't find them. Keep that installation available, and update the command if you move it or replace Node.
Gemini's sandbox and macOS permissions are separate. Review any additional filesystem access the launcher needs; Full Access isn't a required setup step. Automation of Notes.app enables the AppleScript tools, while database tools need the runtime's Full Disk Access. Shortcut operations need the packaged bridge setup above. After connecting, ask Gemini to run get-capabilities for tool availability, then doctor for Notes access diagnostics before attempting a write. A successful terminal check doesn't verify the permissions of Gemini's process.
This integration uses the Mac app's Local MCP command interface and the server's existing stdio transport. Availability depends on your Gemini build. Google's custom apps documentation currently describes URL-based setup in the web app; it doesn't document this local form. Cloud MCP, Gemini web/mobile, and a hosted HTTP endpoint aren't supported by this server. These instructions apply to Gemini Spark, separately from Gemini CLI and Antigravity.
Other MCP clients and remote execution
A local MCP client can use the command npx with arguments -y and apple-notes-mcp@latest. Follow that client's stdio configuration format: JSON mcpServers, TOML, and YAML are not interchangeable.
Apple Notes MCP has no built-in HTTP, SSE, WebSocket, or OAuth MCP endpoint. A cloud-only client cannot access your Mac's Notes library merely by installing the npm package in a Linux container or entering a URL. A separately managed transport bridge or client feature that delegates tool execution to your Mac needs its own configuration and security review; it is not part of this package's supported setup. GUI reveal and clipboard tools also need your logged-in desktop session.
The optional anchors serve command is a paragraph-link resolver, and templates edit is a template editor. Neither is a remote MCP server.
2. Verify the server and macOS access
In the configured client, ask it to run get-capabilities and then doctor. get-capabilities inspects feature availability without opening Notes or running the bridges. doctor also sends a read-only Apple event to Notes and may trigger the macOS Automation prompt. Run these from the actual client because a successful terminal check does not establish that a different desktop app has the same permissions.
Access or component | What it enables | How to complete it |
Automation of Notes.app | AppleScript reads and writes | Allow the macOS prompt for the responsible app to control Notes. Inspect Privacy & Security → Automation if access was denied. |
Full Disk Access | Database reads, rich-content inspection and safety checks, query tools, native object reads, and database-backed exports | macOS never prompts for it. Add the responsible executable/app under Privacy & Security → Full Disk Access (macOS 12: System Preferences → Security & Privacy → Privacy), fully quit and relaunch the host, then rerun |
Shortcut installation and consent | Native tag, checklist, table, pin, link, and append routes | Import the bridges and complete their foreground consent steps below. |
Public helper and, where required, Speech Recognition | Classic drawing decoding and on-device audio transcription | Build the optional helper; follow the permission result from |
Which process needs Full Disk Access? macOS never shows a Full Disk Access prompt, so nothing will ask; you add the entry yourself. For a brokered session, grant the signed Apple Notes MCP Broker.app access; doctor reports whether that session uses it. Without the broker, Claude Desktop needs the exact Node executable printed by doctor; granting Claude.app alone does not reach the server in that launch path. Add that exact path: a Node found some other way (which node in a shell, another install, or a Homebrew symlink) can be a different binary. For a terminal-launched client, the terminal app is normally the responsible app; for an editor-launched server, check that editor. Most other desktop clients stay responsible for the servers they launch, so grant the client app itself (and the Node path from doctor if that alone does not work). Use the actual running client's diagnostics instead of assuming that all clients share grants.
Client sandbox access is a separate boundary. A sandboxed client must be able to launch the executable and reach its files; a brokered client also needs access to the broker's local Unix socket. Full Disk Access and Automation grants do not expand the client's sandbox. Diagnose a launch or socket-access refusal in the client before changing macOS privacy permissions.
To inspect setup from a terminal without opening permission panes or requesting Automation access:
npx -y apple-notes-mcp@latest setup --permissions --check --jsonThe Automation result is intentionally unknown in this mode. When you are at the Mac and want to check it, this command sends a read-only Apple event and may show the macOS consent prompt:
npx -y apple-notes-mcp@latest setup --permissions --once --probe-automationFor an interactive checklist that also opens the relevant settings panes:
npx -y apple-notes-mcp@latest setup --permissions --open --probe-automationThe command checks permissions; it does not grant them. --check and SSH sessions suppress the Automation probe even when --probe-automation is supplied. Without the probe, exit status 0 does not establish Automation access.
Full Disk Access is optional if you only need operations that can safely run through AppleScript, but many capabilities and safety checks depend on it. It can also be required by guards on existing-note writes, including rich-content and revision verification; it is not merely an enhancement for read tools. Do not interpret an unavailable database-backed feature as an empty result. In particular, sync results without database visibility do not prove that iCloud sync is idle. Use the tool reference and get-capabilities for individual requirements, and see the Full Disk Access guide.
3. Enable the native Shortcut features you need
Run explicit setup on your Mac:
npx -y apple-notes-mcp@latest setupApprove Add Shortcut for the missing signed workflows that macOS opens:
Notes MCP TagsNotes MCP Background v6Notes MCP Markdown, offered only on macOS 26 or newer and optional for native Markdown creation
Releases before 2.16.1 installed these as Apple Notes MCP - Native Tags,
Apple Notes MCP - Background Operations v6 and Apple Notes MCP - Create Markdown Note.
Those still work. To switch to the short names, run setup after deleting the old ones
in Shortcuts.app. Delete Apple Notes MCP - Background Operations v5 in any case; the
server no longer uses it.
Then check installation:
npx -y apple-notes-mcp@latest setup --checkThe first two bridges determine this check's readiness; the optional Markdown bridge is reported separately. Keep only one installed copy of each named bridge. The server refuses duplicate bridge names.
After installation or upgrade, run each installed bridge once in the foreground in Shortcuts.app and answer its access prompts. Choose Always Allow if you want that bridge to run unattended. For the Markdown bridge, use the first-run request in shortcuts/README.md; running it without input stops before it asks Notes for access. That request creates a disposable check note.
An installed bridge is not proof of consent: shortcuts list, setup --check, and doctor cannot observe the first-run consent state. A background native write can stall on an unanswered prompt. After a timeout or an indeterminate write result, read the exact note before retrying because the write may already have happened.
4. Build optional helpers
These commands are separate from registering the MCP client. If xcrun swiftc or clang is unavailable, install Apple's Command Line Tools with xcode-select --install before building a helper. The public helper compiles its macOS 26 SpeechAnalyzer/SpeechTranscriber route only when the SDK declares those APIs; with an older SDK it builds with the SFSpeechRecognizer route only. A build against the macOS 15.4 SDK targeting macOS 12 compiles; running it on macOS 12 itself is untested.
Public native helper
Needed for get-note-drawings and transcribe-note-audio. Brokered sessions do not load external helpers; set APPLE_NOTES_MCP_BROKER=off for this client and restart it before using these tools:
npx -y apple-notes-mcp@latest setup --public-helper
npx -y apple-notes-mcp@latest setup --public-helper --checkIt compiles locally, signs ad hoc, verifies its handshake, and records source and binary checksums. The server refuses stale or modified helpers; rerun setup after a relevant package upgrade. This helper uses public Apple frameworks and does not open or write the Notes database. The server still needs Full Disk Access to read the drawing/audio assets it passes to the helper.
On older macOS versions, speech transcription needs Speech Recognition access for the responsible host. The helper never requests this silently. On macOS 26 and newer, the SpeechAnalyzer route has been observed to work without a prior grant; explicit denial or restriction still blocks it. Inspect the returned capability/permission status on your Mac.
Private helper setup
Optional read-only NotesShared state inspection, disabled by default. Brokered sessions do not load this helper; set APPLE_NOTES_MCP_BROKER=off for this client and restart it first:
npx -y apple-notes-mcp@latest setup --native-helper
npx -y apple-notes-mcp@latest setup --native-helper --checkTo enable it, set the string environment value APPLE_NOTES_MCP_ENABLE_PRIVATE=1 for the server and restart the client. Inspect native-helper-status before using native-note-state. This released helper opens the store read-only and cannot provide deep native writes. Apple's private API may change with macOS updates; the remaining server features do not require this helper.
Optional checklist window
Optional graphical presentation of the checklist:
npx -y apple-notes-mcp@latest setup --permissions-window
npx -y apple-notes-mcp@latest setup --permissions --windowIt displays the command's checks and opens settings on request. It does not become the permission owner or replace the client process.
5. Confirm the capabilities you intend to use
After restarting the client, run doctor and get-capabilities again. Confirm that the specific routes you need are available, not just that the server connected. Private helper status, public helper readiness, Markdown creation, and the native-write bridges are separate checks.
Use read-only operations first, such as listing accounts/folders and reading a note you select. If you want to exercise a write route, use a dedicated disposable note and verify the result by its exact ID. A successful plain note creation does not validate native tables, checklists, or Markdown creation; test the feature you plan to use.
Keep the server's revision and scope checks enabled. Updates, appends, and deletes use exact IDs and content hashes; native routes may also require a distinctive existing scopeText. Full-body updates refuse rich notes they cannot preserve. Follow the returned error and capability information instead of falling back to a lower-level write.
Features
Feature | Description |
Create Notes | Create notes from plaintext, HTML, or Markdown, with optional folder/account targeting (Markdown creation uses an optional Shortcut on macOS 26 or later) |
Search Notes | Find notes by title or search within note content |
Query Language |
|
Read Notes | Retrieve note content as HTML, plain text, or Markdown, plus metadata that AppleScript does not expose (pinned, Quick Note, locked, Recently Deleted) |
Note Structure | Decode a note into typed paragraph blocks, list its paragraphs and links, and get a direct link to one paragraph (requires Full Disk Access) |
Update Notes | Replace, append to, or prepend to an existing note, guarded by a content hash so a note that changed since it was read is never overwritten |
Delete Notes | Remove notes (moves to Recently Deleted) |
Move Notes | Organize notes into folders (supports nested paths) |
Folder Management | Create, list, rename, and delete folders with full hierarchical path support; read the folder tree with note counts and Smart Folder rules |
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 |
Native Tags | List, add, remove, and replace real Notes tags (not just |
Checklists | Read checklist done/undone state from the Notes database, and append real checklist items through a Shortcut |
Tables | Read native tables as Markdown and JSON, and append new native tables |
Pinning | Read pinned state and pin or unpin a note |
Links | Get a note's |
Export | Export notes as paginated JSON, or render a note or folder as Markdown (with reusable templates) or standalone HTML |
Attachments | Add files to notes (from a path or the pasteboard), list attachments with their on-disk paths, find a note's lead image, save or batch-export them, or fetch their bytes as base64 |
Audio and Drawings | Read the transcripts Notes stored for recordings, transcribe audio on-device, and decode drawings to strokes and SVG |
Incremental Sync |
|
Notes.app UI State | Reveal a note, folder, account, or attachment 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 |
|
Read/list/get tools also return structured JSON (structuredContent) alongside the text, so agents can consume results without parsing prose.
Some clients (Claude Desktop among them) pass the model only a result's text
and drop structuredContent. So every result that has structuredContent also
ends with one more text block holding the same data as a single JSON line:
structuredContent: {"id":"x-coredata://…/ICNote/p123","contentHash":"sha256:…","writable":true,…}That line carries every token a follow-up call needs: the contentHash
revision token for expectedContentHash, new ids, nativeTags, writable,
page.nextOffset, and an error's code, committed and indeterminate. A
long value the text above already shows in full, such as the body from
get-note-content, appears as "[shown in full above]" instead of twice. If
the line would still exceed 16 KB, fields larger than 1 KB (usually a list
already printed above) are left out and named in _omitted. Tools whose text
already is that JSON get no extra block. structuredContent itself is
unchanged.
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 is read from the NoteStore database by the BETAget-note-metadatatool andlist-special-notes, and set through the Background Operations Shortcut byset-note-pinned.Note-to-note links — AppleScript exposes no link property or link element. Links are instead read from the NoteStore database by
list-note-links, and inserted byinsert-note-link(through a Shortcut) orinsert-link. A shareablenotes://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.
Identifier forms
Every tool that takes a note id (id, noteId, ids, linkedNoteId, or the id inside a batch entry) accepts any of three forms of the same note:
Form | Example shape | Needs Full Disk Access |
AppleScript id (canonical) |
| No |
Notes UUID ( |
| Yes |
Numeric Core Data key |
| Yes |
The server turns a UUID or numeric key into the canonical id before the tool runs, reading the Notes database read-only. A numeric key or UUID resolves only to a note, never to a folder or attachment. Without Full Disk Access those two forms fail with an error that says so, while x-coredata ids keep working as before. Folder-id inputs (show-folder, get-folder-by-id, rename-folder) accept a folder's UUID or numeric key the same way, resolving only to folders.
When Full Disk Access is granted, list and read tools also return stable identifiers next to each id: notes carry identifier, folderIdentifier, and accountIdentifier; folders carry identifier, parentIdentifier (nested folders only), and accountIdentifier; accounts carry identifier. These fields come from one batched read-only query per call and are omitted when the database cannot be read. Tools that return them: search-notes, list-notes, get-selected-notes, list-shared-notes, get-note-content, get-note-by-id, get-note-details, list-folders, get-folder-by-id, list-accounts, and get-default-location.
Error results
A failed call returns isError: true with the same human-readable text as
before, plus structuredContent carrying a stable machine-readable code
(also repeated in the trailing structuredContent: text line, for clients
that drop structuredContent).
Branch on code, not on the prose, which may be reworded.
| Meaning |
| The note, folder, account, attachment, or checklist does not exist |
| More than one item matched; use an exact id |
| macOS refused Automation access to Notes.app |
| The Notes database is not readable; grant Full Disk Access |
| A native-write bridge Shortcut is not installed exactly once |
| The operation timed out; for a write, the outcome is unknown |
| The write ran, but exact-ID readback did not confirm it |
| The note changed since it was read |
| The request was rejected before anything ran |
| Not supported for this note or in this mode, such as a locked note |
| Notes.app is not running, busy, or not responding |
| The server could not classify the failure; read the text |
Two optional booleans describe a write's outcome when it is known.
indeterminate: true means the outcome is uncertain: read the target by exact
id before any retry, and never retry blindly. committed: true means the write
took effect even though its verification failed; committed: false means
nothing was written (for example a revision_conflict). An absent flag means
unknown. An argument that fails the input schema is rejected before the tool
runs, with code: "validation_error" and committed: false. The exception is
a Notes UUID or numeric key that could not be resolved to an id: it carries
not_found, or full_disk_access_missing when the database is unreadable.
Note Operations
create-note
Creates a new note in Apple Notes.
Parameter | Type | Required | Description |
| string | Yes | The title of the note. Automatically prepended as |
| string | One of | The body content of the note (do not repeat the title here) |
| string | One of | Absolute path of a local UTF-8 file to use as the body instead of |
| 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. Inline |
| string | No | Folder to create the note in. Supports nested paths like |
| 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 |
| string | No | Content format: |
| string | No | With |
| number | No | Whole seconds, 1–120, for each Notes.app automation step this call runs; overrides |
Example (with inline textual hashtags):
{
"title": "Meeting Notes",
"content": "Discussed Q4 roadmap and budget allocation\n\n#work #meetings"
}Example - Create in a specific folder:
{
"title": "Client Meeting",
"content": "Discussed project timeline",
"folder": "Work/Clients"
}Example - HTML formatting:
{
"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 Notes MCP Markdown Shortcut. #, ## and ###
become real Title, Heading and Subheading styles, and the note starts with the
title line, with no seed line.
{
"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&,===lines and rule lines other than the---divider described below, 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.Notes' importer also maps these block constructs to native styles. They are gated separately, and
get-capabilitiesreports them ascreate-note-markdown-blocks. Each mapping below was live-verified on macOS 27.2 by reading the created note's stored styles.Markdown
Native result
- [ ] item/- [x] itemChecklist item, unchecked / checked
> text(consecutive lines form one quote)Body paragraph with a block quote
A fence of bare
```lines (no language)Monospaced paragraphs; the code text is kept literally
---on its own line, after a blank lineDivider line
`inline code`Highlighted text, not monospace
Constructs Notes would not render faithfully, or that this server cannot yet verify, are refused before anything is created:
~~~fences, a language after the opening fence, nested (>>) or indented quotes, lists or headings inside a quote, a quote followed directly by text (Markdown would join that text to the quote),---directly under text (Markdown would make that text a heading),***/___/----rules,[X],* [ ]or+ [ ]items, checklist items directly next to ordinary list items, inline code padded with spaces or inside a link label, tables, and~~strikethrough~~. The readback checks the block-quote text, the Monospaced text, each checklist item's text and done state, the divider count, and the highlighted text. These mappings apply to the default Shortcut route only; see Markdown through HTML formarkdownRoute: "html".append-native'sformat: "markdown"refuses all of the constructs above: its Shortcuts converter is a different one, which renders a quote and a fenced block as plain body text,- [ ]as a bullet with literal brackets, and inline code as plain text, and drops---.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.A first line that is exactly
# <title>(same case and spacing astitle) is removed together with one blank line after it, because the title is supplied separately; the response then carriesstrippedDuplicateTitle: true. A different first heading stays in the body. This applies to both Markdown routes, and Markdown that holds only that heading is refused.
Markdown through HTML
markdownRoute: "html" imports the same bounded Markdown subset without the
Shortcut. It is also the default on a Notes build whose Create Note action has
no "Interpret as Markdown" option, such as macOS 26.6.2 (Notes 4.13), where the
Shortcut would save the Markdown as literal text; the server detects that from
Notes' App Intents metadata, doctor and setup --check warn about it, and
shortcuts/README.md
has the detail (#337). The server converts it to HTML and creates the note through AppleScript,
like format: "html". It works in any account, accepts tags, and needs no
Shortcut, but headings get the plain bold styling described in the known
limitation above rather than real Heading and Subheading styles.
On this route, bullet task items (- [ ] item, - [x] item) become ordinary
list rows that start with a visible ☐ or ☑ character, and the response
reports how many as taskItemsRendered. They are text, not native checkable
checklist items. Use this route as the glyph fallback when the Shortcut is not
installed or the note is outside iCloud. Block quotes, fenced code and inline code, which
the Shortcut route maps natively, are refused on this route, and a --- line
stays literal text rather than becoming a divider.
{
"title": "Weekly Review",
"contentPath": "/Users/me/Documents/weekly-review.md",
"format": "markdown",
"markdownRoute": "html",
"folder": "Work"
}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 |
| string | Yes | Text to search for |
| boolean | No | If |
| string | No | Account to search in (defaults to Notes.app's default account; exact or unique-prefix match) |
| string | No | Limit search to a specific folder (supports nested paths like |
| string | No | ISO 8601 date string to filter notes modified on or after this date (e.g., |
| 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. |
| boolean | No | Add |
Example - Search titles:
{
"query": "meeting"
}Example - Search content:
{
"query": "budget allocation",
"searchContent": true
}Example - Search recent notes with limit:
{
"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. A content search also returns source ("database" or "applescript"), and scanTruncated when the database path left older notes unsearched.
When the note text came from the database (a database content search, or any search with includeWordCount), each result also carries matchedIn: ["title"], ["body"], or ["title", "body"], saying where the query text occurs. The body is the text after the first line. matchedIn is absent for locked notes and for AppleScript searches without includeWordCount. The text output appends the same details to each line, for example · matched in title, body · 245 words.
Example - Content search with word counts:
{
"query": "budget",
"searchContent": true,
"includeWordCount": true
}query-notes
Finds notes with a boolean query expression evaluated against the NoteStore database, read-only. Because it does not go through AppleScript, a query over several hundred notes typically returns in well under a second, and one call can match titles and bodies together.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup). Without it, use search-notes.
Parameter | Type | Required | Description |
| string | Yes | Query expression (syntax below), at most 2000 characters |
| number | No | Maximum notes to return. Defaults to 50, maximum 500. The response reports the total match count. |
| number | No | How many of the most recently modified notes to examine. Defaults to 500, maximum 10000. The response says when older notes were left unscanned. A large scan decodes more bodies, so it takes longer. |
| boolean | No | Also scan notes in Recently Deleted, notes pending deletion, and folderless notes. Defaults to |
| boolean | No | Add |
Syntax:
Form | Matches |
| Title or body contains the word or phrase (case-insensitive substring) |
| Title only, body only (text after the first line), or either |
| The note's own folder, by name or full path, case-insensitive (notes in subfolders are not included); a literal |
| Account name, case-insensitive |
| Native Notes tag (with or without |
| The note body contains that kind of object. |
| At least one unchecked item; or items present and all checked |
| Note flags; |
| Word count, with |
| Dates as |
| AND is implicit and binds tighter than OR |
Operators are case-insensitive. Quote an operator or flag word to search it
literally, for example "and" or "pinned". Queries are capped at 256 tokens
and 64 levels of nesting. An unknown field such as titel:x is an error rather
than a silent text search; quote it to search the literal text.
Password-protected notes match on title and metadata only. Their bodies are
encrypted, so a body predicate is unknown for them rather than false: neither
body:x nor -body:x matches them, though -body:x OR pinned matches a
pinned one. Notes whose body cannot be decoded are treated the same way. Their
snippets are always empty.
Example - Open to-dos in a folder:
{
"query": "folder:\"Work Projects\" has:checklist -checklist:done"
}Example - Invoices or finance-tagged notes since July, scanning more history:
{
"query": "(title:invoice OR tag:finance) modified:>=2026-07-01",
"scanLimit": 2000,
"limit": 20
}Returns: Matching notes, most recently modified first, each with id,
title, folder, account, modified, created, and a snippet centred on
the first matched phrase. Each note also has matchedIn when the query has a
positive text term: ["title"], ["body"], or both, saying where those terms
occur (a title: term is only looked for in the title, a body: term only in
the body). It is absent for locked or undecodable notes, and an empty list
means the note matched through a non-text branch such as pinned OR x. The ids are the same x-coredata://…/ICNote/p… form
every other tool accepts. structuredContent also reports matched (total
matches), scanned, eligible, scanTruncated, truncated, and unreadable
(bodies that could not be decoded). A malformed query returns an error naming
the problem and its position.
get-note-content
Retrieves the full content of a specific note.
Parameter | Type | Required | Description |
| string | No | Note ID (preferred - more reliable than title) |
| string | No | Note title (use |
| string | No | Account containing the note (defaults to Notes.app's default account; exact or unique-prefix match, ignored if |
| number | No | Whole seconds, 1–120, for the body read; overrides |
Note: Either id or title must be provided. Using id is recommended as it's unique and avoids issues with duplicate titles.
Busy Notes.app: with an id and Full Disk Access, the note's existence and password flag are read from the NoteStore database (as get-note-structure does), so only the body read goes through Notes.app. A timeout is always reported as timeout_indeterminate, never as not_found, even when an automatic retry then fails differently; and when Notes.app cannot resolve an id the database still holds, the error is notes_unavailable. Retry in a moment, or use get-note-structure for a read that does not need Notes.app.
Large images: Notes.app returns images inside the body as base64, so a note holding a very large image (tens of MB) can take longer to read than the timeout allows. When the read times out or overflows the output buffer, the error says so and, with Full Disk Access, names the attachments of 5 MB or more. Retry with a larger timeoutSeconds; delete-note accepts the same argument, and it needs a successful read to verify the note before deleting it.
Example - Using ID (recommended):
{
"id": "x-coredata://ABC123/ICNote/p456"
}Example - Using title:
{
"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.
writable is also false when the note uses formatting that AppleScript's HTML
does not carry (superscript, subscript, non-left paragraph alignment, or
highlight): a full-body update-note would silently drop it, so it is refused
and the warning names the formatting. append-to-note with scopeText still
works through the native path, which verifies existing formatting.
⚠️ 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's update-note refuses attachment-bearing
notes, and append-to-note routes them to native end-append with scopeText,
which never rewrites the existing body; make any other edit 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.
Parameter | Type | Required | Description |
| string | Yes | Exact note ID, in any identifier form |
get-note-tables
Reads a page of native tables in one exact note, in body order, from the NoteStore
database. Each table is returned as GitHub-flavored Markdown and as JSON rows
with stable rowIds and columnIds. Notes tables have no header row, so the
Markdown uses the first row as the header. Pipes are escaped as \|,
backslashes are doubled, and line breaks inside a cell become <br>.
Parameter | Type | Required | Description |
| string | Yes | Exact note ID ( |
| integer | No | Zero-based position of the first table (default 0); use |
| integer | No | Maximum tables per page (default and maximum 500) |
| integer | No | Full serialized response budget in UTF-8 bytes (default 4 MiB, minimum 1024 bytes, maximum 8 MiB) |
The byte budget includes both the text response and structured data, including
repeated Markdown and JSON escaping. Tables are returned whole. tableCount
and page.totalAvailable count all tables in the note; page.returned counts
the entries in this response. While page.hasMore is true, call again with
offset: page.nextOffset and the same limit and maxBytes. Each call reads
the note again, so finish paging before editing it.
If one table exceeds an otherwise empty page, its entry contains identifying
metadata, complete: false, contentOmitted: true, and a reason, without
partial rows or row/column IDs. The next offset advances past that entry. To
retrieve its content, retry that offset with a larger maxBytes, or export the
note to a file. If even the metadata exceeds the budget, the tool returns a
validation error. page.stoppedAtSizeLimit reports a byte-budget stop.
tableCellsComplete is false when any table or cell could not be decoded, or
when the current page omits a table's content for its byte budget. A
cell holding an embedded object is null in rows, listed in
incompleteCells, and shown as [undecoded cell] in Markdown. A table whose
data cannot be decoded at all has complete: false, a reason, and no rows.
Cell text is never guessed. Links and styling inside cells are not rendered.
A note without tables returns an empty tables list. This tool is read-only,
requires Full Disk Access, and refuses password-protected notes.
get-note-blocks
Decodes one note's body into typed blocks, read-only, from the NoteStore
database. Each block is one paragraph with its style (title, heading,
subheading, body, monospaced, bulleted, dashed, numbered,
checklist, or unknown with the raw styleType), indent, alignment,
blockQuote, checklist id/done, and paragraphUuid when stored. Each
block lists its inline runs with bold, italic, underline,
strikethrough, superscript, subscript, color, highlight, link
(plus linkSafe), font, and attachment, and its attachment markers in body
order. Offsets and lengths count UTF-16 code units. summary counts styles and
inline attributes for the whole note. undecodedFields lists stored field
numbers the decoder deliberately does not interpret.
Requires: Full Disk Access. Password-protected notes are refused.
Parameter | Type | Required | Description |
| string | Yes | Exact note ID |
| number | No | First block to return (default 0). Use |
| number | No | Maximum blocks per page (default 500, max 5000) |
A page also stops early to stay under APPLE_NOTES_MCP_BLOCKS_MAX_BYTES
(default 4 MB). paragraphUuid is not unique: Notes copies it when a paragraph
is split. Link URLs are returned as stored, and linkSafe is false for schemes
other than http(s), notes:, applenotes: and mailto:. Errors carry a
stable code in brackets, such as [encrypted] or [no-full-disk-access].
list-note-paragraphs
Lists one note's non-empty paragraphs in body order, read from the NoteStore
database. It never changes Notes. With recordAnchors it also writes the
local anchor registry, so the tool is not marked read-only in its MCP
annotations. Each paragraph has blockIndex (its index in
get-note-blocks, where empty paragraphs also count), text, style,
styleType, paragraphId (the UUID Notes stores on the paragraph's first
text run), and paragraphIdStatus:
unique: no other paragraph in the note carries this ID. The paragraph also getsurl, a directapplenotes://showNote?identifier=<note>¶graphID=<paragraph>link that opens Notes at that paragraph.shared: other paragraphs carry the same ID (sharedWithcounts them). Notes copies the ID when a paragraph is split, so this is common for body text. Nourlis given, because it could open the wrong paragraph.missing: no ID is stored.
mixedParagraphIds: true marks a paragraph whose text runs carry more than
one ID; only the first-run ID is used. Titles and headings usually have unique
IDs.
Requires: Full Disk Access. Password-protected notes are refused.
Parameter | Type | Required | Description |
| string | One of | Exact note ID, or the note's Notes UUID |
| string | One of | Exact note title; must match one note. Notes in Recently Deleted are ignored, as in |
| string | No | With |
| boolean | No | Return only paragraphs with a |
| number | No | First paragraph to return (default 0). Use |
| number | No | Maximum paragraphs per page (default 500, max 5000) |
| boolean | No | Also record a paragraph anchor for each returned paragraph (at most 500 per call); each row gains |
get-paragraph-link
Returns a direct link to one paragraph of a note:
applenotes://showNote?identifier=<note>¶graphID=<paragraph>. It selects
the note like list-note-paragraphs and the paragraph by exactly one of:
contains: a snippet of the paragraph. Case, runs of spaces, and Unicode width are ignored.match: the whole paragraph, compared the same way.blockIndex: fromlist-note-paragraphs.
When contains or match hits several paragraphs, pass occurrence (1-based)
or a longer snippet.
The link is returned only when the paragraph's ID is unique in the note.
Otherwise the result is an error whose structuredContent carries the usual
code plus a reason: paragraph-id-shared, paragraph-id-missing,
no-match, ambiguous-paragraph, occurrence-out-of-range, ambiguous-note
(several notes have that title; the message lists their folders), not-found,
encrypted, or no-body. The tool never creates or changes a paragraph ID,
and an edit in Notes can later replace the ID and break the link. With
recordAnchor it also writes the local anchor registry, so the tool is not
marked read-only in its MCP annotations.
Requires: Full Disk Access.
Parameter | Type | Required | Description |
| string | One of | Note selector, as in |
| string | One of | Snippet of the paragraph |
| string | One of | The whole paragraph |
| number | One of | The paragraph's |
| number | No | Which match to use when several paragraphs match |
| boolean | No | Also record a paragraph anchor for the linked paragraph and return its |
Paragraph anchors
A paragraph link breaks when Notes replaces or copies the paragraph's ID. A
paragraph anchor records enough about the paragraph to find it again: the
note's Notes UUID, the paragraph ID and its status, the paragraph's normalized
text and a fingerprint of it, the fingerprints of the paragraphs before and
after it, its blockIndex, and when it was recorded. Anchors are kept in one
local file, ~/Library/Application Support/apple-notes-mcp/paragraph-anchors.json
(or the absolute path in APPLE_NOTES_MCP_ANCHOR_FILE). It is created with
mode 0600 in a 0700 directory, replaced atomically under a lock file, and
holds the text of every anchored paragraph. A symlinked, unreadable or
corrupt registry is refused and left as it is. The anchor tools never change
Notes.
Resolving an anchor tries three steps in order, and every step fails closed:
Paragraph ID. A paragraph whose ID is still unique in the note is the anchored paragraph, even if its text was edited or it moved. A link to that ID opens exactly that paragraph.
Exact text. The same normalized text. When several paragraphs have it, only the one whose neighbours still match is chosen; a tie is
ambiguous.Text and neighbours. Similar text between both recorded neighbours, or nearly identical text beside one of them. Two close candidates are
ambiguous; one belowminConfidenceislow-confidence.
A match whose ID is now shared or missing is needs-reminting: the paragraph
is found (the result names its block), but no safe link exists until it gets a
new ID. Public automation cannot set a paragraph ID, so this server only
reports it and returns no url.
To share anchored links outside Notes, see the paragraph anchor resolver.
create-paragraph-anchor
Records an anchor for one paragraph, selected exactly as in
get-paragraph-link (note by id or title/folder; paragraph by one of
contains, match, blockIndex, plus occurrence). Unlike
get-paragraph-link, a paragraph whose ID is shared or missing can be
anchored. Recording the same paragraph again (same note, ID, text and block)
returns the existing anchor with created: false.
Returns anchor, created, and url when the paragraph currently has a
unique ID.
Requires: Full Disk Access. Writes only the anchor registry.
Parameter | Type | Required | Description |
| string | One of | Note selector, as in |
| One of | Paragraph selector, as in |
resolve-paragraph-anchor
Finds an anchored paragraph in the note as it is now. The result has status
(resolved, needs-reminting, ambiguous, low-confidence, not-found,
note-not-found, note-deleted for a note in Recently Deleted, or
note-unreadable for a locked note), method (paragraph-id, exact-text,
text-and-neighbours), confidence (0 to 1), match (blockIndex, text,
paragraphId, paragraphIdStatus), changes (textChanged,
blockIndexChanged, paragraphIdChanged), and message. url, the current
applenotes:// link, is present only when status is resolved.
Requires: Full Disk Access.
Parameter | Type | Required | Description |
| string | Yes | The anchor ( |
| number | No | Lowest confidence accepted as a match (default 0.6) |
| boolean | No | After a match with confidence 0.8 or more, store the paragraph as it is now (text, neighbours, block, ID), so later edits are tracked from here. Reports |
list-paragraph-anchors
Lists recorded anchors in the order recorded, with total, the registry
path and page info. Reads only the registry.
Parameter | Type | Required | Description |
| string | No | Only anchors in the note with this Notes UUID |
| number | No | First anchor to return (default 0) |
| number | No | Maximum anchors (default 100, max 1000) |
get-paragraph-anchor
Returns one stored anchor as recorded. Reads only the registry.
Parameter | Type | Required | Description |
| string | Yes | The anchor |
prune-paragraph-anchors
Removes anchors that no longer resolve, or the anchors you list. It is a dry
run unless dryRun is false. Without anchorIds it resolves every anchor
in scope and treats not-found and note-not-found as stale. A note in
Recently Deleted (note-deleted) is kept by default because it can be
restored. Returns stale (anchorId, status, message), examined, and
removed.
Requires: Full Disk Access unless anchorIds is given.
Parameter | Type | Required | Description |
| string[] | No | Remove exactly these anchors instead of resolving |
| string | No | Only anchors in the note with this Notes UUID |
| string[] | No | Statuses treated as stale (default |
| boolean | No | Report without removing (default |
get-note-structure
Returns a read-only overview of one note from the NoteStore database, in one call:
text(decoded body),textLength,wordCount,charCount(Unicode characters, attachment placeholders excluded), andblockSummary(theget-note-blockssummary counts).links, each with akind:inline(a hyperlink on text),card(a rich link preview attachment, withattachmentIdandpreviewPath),note(a native link chip to another note), orsection(a native link chip to a heading or paragraph, withsection). Notes deep links also carrytargetNoteandparagraphId.linkCountstotals them.tags(native tags in body order) andattachments, listed the waylist-attachmentswithincludePathslists them: the samekind(image,scan,drawing,pdf,audio,video,url,table,other), the same body order, and the samepreviewPath, plus the cardtitle/url,fileSize, and body position. Gallery items and recording parts are nested underchildren;attachmentCountcounts top-level attachments only.deepLink,isShared(the note or any enclosing folder is shared),isLocked,isPinned,inRecentlyDeleted,lastViewed,checklistTotal,checklistDone,hasDrawing(classic sketches and Paper drawings), andfirstImage(the same lead visuallist-attachmentsreturns withfirstImage, plus its attachmentid).
lastViewed is an ISO date, or null with lastViewedStatus set to
never-viewed, not-recorded, malformed, or unsupported (the column
does not exist on this macOS version). A password-protected note returns its
metadata and attachment rows with bodyDecoded: false and the body-derived
fields null.
Requires: Full Disk Access.
Parameter | Type | Required | Description |
| string | Yes | Exact note ID: the |
| boolean | No | Include the decoded text (default true). Text larger than |
Link URLs are returned as stored; check linkSafe before emitting one into
HTML.
list-note-links
Lists links, read-only from the NoteStore database, in one note (id) or
across a folder, an account, or the whole library (no selector). Each link
has a kind:
Kind | What it is | Where Notes stores it |
| A hyperlink on text | Inside the note body |
| A rich link preview | An attachment row with the URL and title |
| A native link chip to another note | An inline-attachment row with a Notes deep link |
| A native link chip to a heading or paragraph | Same, with |
Each row has url, text (label), linkSafe, targetNote and paragraphId
for Notes deep links, section for section chips, and for cards
attachmentId and previewPath (Notes' largest cached preview image, found
the same way list-attachments finds it, or null when
Notes has none). Each row also names its source: noteId, noteIdentifier,
noteTitle, noteModified, folder, folderPath (as list-folders prints
it), account, and accountIdentifier. When bodies were decoded, start and
blockIndex give the link's position, and inBody: false marks a card or chip
row with no marker left in the body.
Inline links need every body in scope decompressed and decoded, so a folder,
account, or library scan includes them only with includeInline: true
(slower). A single note always includes them. A folder scope includes its
subfolders unless includeSubfolders is false. Scans skip Recently Deleted
and folderless notes; a note requested by id is read wherever it is. Links
come newest-modified note first, in body order within a note.
Requires: Full Disk Access.
Parameter | Type | Required | Description |
| string | No | One exact note ID (x-coredata id, Notes UUID, or numeric key). Do not combine with |
| string | No | Account name (exact or unique-prefix match, as in the other tools) |
| string | No | Folder name (any depth, must be unique) or path from the top level as |
| boolean | No | With |
| boolean | No | Decode bodies for inline links (default true for |
| string[] | No | Only these kinds: |
| number | No | First link to return (default 0). Use |
| number | No | Maximum links per page (default 200, max 2000) |
The response also reports scope, counts per kind, notesInScope,
notesWithoutBody (locked, empty or undecodable bodies when inline links were
requested), and page. A page stops early to stay under
APPLE_NOTES_MCP_BLOCKS_MAX_BYTES. An ambiguous folder name is refused with a
message that lists the matching paths.
list-native-tags
Lists actual native Notes tags. This differs from textual hashtag search. It is read-only and requires Full Disk Access.
Folder mode (pass
folder, optionallyaccount): maps each tag used in that folder to its matching note IDs. The response reportscomplete: falseand per-note errors when some native metadata is unavailable.Inventory mode (omit
folder): an account-wide inventory with counts, read-only from the database.accountnarrows it to one account; omit it to count every account. Eachinventoryentry hastag,noteCount(distinct notes, Recently Deleted excluded), per-account counts inaccounts, and any otherspellingsNotes treats as the same tag. Tags with no remaining notes are listed withnoteCount: 0. A tag counts for a note only while the note body still references it. Locked or unreadable bodies are counted from the tag objects alone and reported throughunverifiedNotesandcomplete: false.
Parameter | Type | Required | Description |
| string | No | Folder to list (nested paths supported). Omit for the inventory |
| string | No | Account name, exact or unique prefix |
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.
Parameter | Type | Required | Description |
| string | Yes | Exact note ID, in any identifier form |
| string | Yes |
|
| string | Yes | Distinctive phrase already in the note, 12–500 characters |
| string[] | Yes | 1–100 tag names to add |
get-note-plaintext
Retrieves a note's body as plain text, with no HTML markup.
Parameter | Type | Required | Description |
| string | No | Note ID (preferred - more reliable than title) |
| string | No | Note title (use |
| string | No | Account containing the note (defaults to Notes.app's default account; exact or unique-prefix match, ignored if |
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 |
| string | Yes | Exact title of the note |
| string | No | Account containing the note (defaults to Notes.app's default account; exact or unique-prefix match) |
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 |
| string | Yes | The CoreData URL identifier (e.g., |
Returns: JSON with note metadata, plus identifier, folderIdentifier, and accountIdentifier when Full Disk Access is granted, or error if not found.
show-note
Reveals a note in Notes.app using its unique CoreData identifier.
Parameter | Type | Required | Description |
| string | Yes | The CoreData URL identifier (e.g., |
| 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 |
| string | Yes | Exact CoreData note ID returned by a read or search |
| string | Yes |
|
| string | No | New title (if changing the title; ignored when |
| string | Yes | New content for the note body |
| string | No | Content format: |
| boolean | No | Set to |
| string, string, string[] | No | Folder preconditions; see Folder scope guards |
| number | No | Per-call timeout, 1–120 seconds, as for |
Title-only updates are rejected because Apple Notes titles are not unique.
Example - Using ID (recommended):
{
"id": "x-coredata://ABC123/ICNote/p456",
"expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"newContent": "Updated content here"
}Example - Update with HTML formatting:
{
"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 |
| string | Yes | Exact CoreData note ID returned by a read or search |
| string | Yes |
|
| string, string, string[] | No | Folder preconditions; see Folder scope guards |
| number | No | Per-call timeout, 1–120 seconds, as for |
| string | No | A second note (usually a verified copy) that must still be intact; needs Full Disk Access |
| string | With |
|
| string | No | A second note that must still exist, be unlocked, stay outside Recently Deleted, and not be a Quick Note; its content is not fingerprinted. Needs Full Disk Access |
Title-only deletion is rejected. If the note changed after the supplied hash was read, deletion is also rejected.
Notes with large images. Notes.app returns a note's body with each inline
image embedded as base64, so a note holding one 40 MB image has a body of about
110 MB. Body reads accept up to 512 MB of output, and delete-note compares a
body longer than 5 MB against a private temporary file rather than embedding it
in the AppleScript. The comparison still covers the whole body, and the file
is removed when the delete finishes.
Copy-then-retire. To delete an original only while its copy is still good,
read both notes, verify the copy, and pass the copy as guardNoteId with its
contentHash as expectedGuardContentHash. The copy's revision is re-read just
before the delete, and its body, lock state, and folder are checked again
inside the delete AppleScript, with the same fail-closed Recently Deleted test
as the note being deleted. The guard note must not be a Quick Note, a flag only
the database holds, so the guard needs Full Disk Access. A copy the database
has not saved yet passes on the live checks alone. The pair is still not one
transaction: the rich revision (which also covers checklists and attachments)
is a pre-check, and the in-script check covers the body and state Notes.app
exposes. requireActiveNoteId is the narrower form for a destination you
wrote yourself rather than copied.
Example - Using ID (recommended):
{
"id": "x-coredata://ABC123/ICNote/p456",
"expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
}Returns: Confirmation message, or error if note not found. The delete and a check of the note's original folder run in one AppleScript: if Notes.app accepts the delete but the note is still listed in that folder, the call reports that nothing was deleted instead of claiming success.
A note that is already in Recently Deleted is refused, because deleting it there removes it permanently. The folder is read live from Notes.app in the same AppleScript; the Recently Deleted folder is recognised by its database id (with Full Disk Access) or by its English name. The check fails closed: a note whose folder Notes.app reports as something other than a folder (as it does for a note trashed earlier in the same Notes session) is refused the same way, and a note whose folder cannot be read at all is refused with a message to retry. To remove such a note for good, do it in Notes.app.
⚠️ 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.
A smart folder is never a destination: it only gathers notes by its rules, and Notes.app would move the note to Recently Deleted or store a created note where no folder shows it. create-note, create-note-with-attachment, move-note, batch-move-notes, and create-folder refuse one before writing anything, with code: "unsupported", committed: false, and reason: "smart_folder_destination". An ordinary folder that shares a smart folder's name is still found. Detection reads the NoteStore database, so it needs Full Disk Access; without it, destinations resolve as before.
Parameter | Type | Required | Description |
| string | Yes | Exact CoreData note ID returned by a read or search |
| string | Yes | Destination folder name or nested path (e.g., |
| string | No | Account whose |
| string, string, string[] | No | Folder preconditions; see Folder scope guards |
| number | No | Per-call timeout, 1–120 seconds, as for |
Title-only moves are rejected.
Example - Using ID (recommended):
{
"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.
Folder scope guards
update-note, append-to-note, delete-note, move-note, and
batch-move-notes accept three optional folder preconditions. Use exact
folder ids from list-folders.
ifFolderId: the note must currently be in exactly this folder.ifAncestorFolderId: the note must be inside this folder or any of its subfolders.forbiddenAncestorFolderIds(up to 50): the note must not be inside any of these folders or their subfolders. Formove-noteandbatch-move-notes, the destination must not be either.
The checks read Notes.app's live folders inside the same AppleScript as the
write, immediately before it. If the folder observed by the check fails a
precondition, the write is refused with Scope guard failed: …. The check and
write are separate Notes operations; another actor can move the note between
them. A native append to a protected note runs through Shortcuts, so its
precheck runs in a separate AppleScript before the append.
For batch-move-notes, the same preconditions apply to every supplied note ID.
Each note is checked independently immediately before its move. A scope mismatch
leaves that note unchanged and appears in its failure result; the remaining
items continue. A batch can therefore move some notes and refuse others.
Example - retire a note only while it is still in the inbox:
{
"id": "x-coredata://ABC123/ICNote/p456",
"expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"ifFolderId": "x-coredata://ABC123/ICFolder/p12"
}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 |
| string | Yes | Exact CoreData note ID returned by a read or search |
| string | Yes |
|
| string | Yes | Text to append to the note body |
| string | No |
|
| string | No | String placed between existing content and new content (default: two newlines → |
| string | No | Format of the content being appended: |
| string | Native-object notes only | Unique existing phrase, as for |
| string, string, string[] | No | Folder preconditions; see Folder scope guards |
| number | No | Per-call timeout, 1–120 seconds, as for |
Title-only appends are rejected.
Example - Append plaintext:
{
"id": "x-coredata://ABC123/ICNote/p456",
"expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"content": "New item added today"
}Example - Prepend HTML:
{
"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 |
|
Attributes |
|
Refused | every other element and attribute, by name, naming the accepted subset; a table, in whole or in part ( |
Ordinary notes take the guarded HTML path and are not restricted to that subset.
insert-link
Adds one web, mail or Notes link to an exact note as its own paragraph, then
proves it from the link runs Notes actually stored. Use mode: "raw" to show
the URL itself, or mode: "hyperlink" with a label to show text that links to
the URL. For a link to another note by id, use
insert-note-link, which looks up that note's real deep
link.
Parameter | Type | Required | Description |
| string | Yes | Exact CoreData note ID |
| string | Yes |
|
| string | Yes | Absolute |
| string | No |
|
| string | Hyperlink only | Visible text for |
| boolean | No | Raw mode only. |
| string | No |
|
| boolean | No | Leave a blank line between existing text and the link paragraph (default |
| string | Native-object notes only | Unique existing phrase, as for |
Example - Hyperlink under the title:
{
"id": "x-coredata://ABC123/ICNote/p456",
"expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"url": "https://example.com/report",
"mode": "hyperlink",
"label": "Quarterly report",
"position": "after-title"
}Returns: route ("applescript" for ordinary notes, "native" for notes
with native objects), linkStored, storedUrl (the destination read back from
the note, for example https://example.com/ for a bare origin), and the new
contentHash.
Safety: The same guards as append-to-note: a fresh
expectedContentHash, the attachment block, and every existing link must
survive. A linked insert must add exactly one stored link with the requested
label and destination; if the text lands but that proof fails, the error says
the write happened so it is not repeated.
Limits:
Plain URL text is not linked by Notes when written this way. With
linked: false, the note stores no link and readers of the body see ordinary text; Notes.app may still underline the URL on screen through its own data detection. The result reportslinkStored: false.Notes with native objects (a table, a checklist, native tags) take the native end-append path, so only
position: "end"withblankLine: trueworks there.The link always gets its own paragraph. Placing it at the end of one existing paragraph, or inside the text, is not available.
Rich URL preview cards (the link tile Notes makes when you paste a URL) are not produced. No public automation route creates one: the Shortcuts Notes actions write text, and AppleScript's
bodyhas no card markup.To start a new note with a link, use
create-notewithformat: "html"and an<a href>incontent; the link is stored the same way.
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 |
| string | No | Note ID (preferred - more reliable than title) |
| string | No | Note title (use |
| string | No | Account containing the note (defaults to Notes.app's default account; exact or unique-prefix match, ignored if |
Note: Either id or title must be provided. Using id is recommended. Password-protected notes cannot be linked.
Example:
{
"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 process that runs 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 |
| string | No | Account to list notes from (defaults to Notes.app's default account; exact or unique-prefix match) |
| string | No | Filter to notes in this folder only (supports nested paths like |
| string | No | ISO 8601 date string to filter notes modified on or after this date (e.g., |
| number | No | Maximum number of notes to return |
| boolean | No | Also list notes in Recently Deleted, each flagged |
Example - All notes:
{}Example - Notes in a folder:
{
"folder": "Work"
}Example - Recent notes with limit:
{
"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>]. Notes in Recently Deleted are left out by default and counted in excludedRecentlyDeleted (present only when nonzero); with includeRecentlyDeleted: true they are listed with inRecentlyDeleted: true and a [RECENTLY DELETED] marker. Notes.app's own listing includes them, so the Recently Deleted folder is recognised by its database id (with Full Disk Access) or by its English name. With Full Disk Access each entry also carries identifier, folderIdentifier, and accountIdentifier (see Identifier forms).
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.
For date order, incremental sync cursors, Recently Deleted, or word counts, use list-recent-notes.
list-recent-notes
Lists notes from the NoteStore database (read-only) by stored modification time, with an exact cursor for incremental sync. With since, it pages through changes oldest first; without it, it shows the newest notes first. Unlike list-notes, it can include Recently Deleted and can count words.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup).
Parameter | Type | Required | Description |
| string | No | Only this account (exact or unique-prefix name). Omit for every account |
| string | No | Only notes directly in this folder: a full path in |
| string | No | Return notes after this point, oldest first. A |
| number | No | Maximum rows, 1–1000 (default 50) |
| boolean | No | Also return notes in Recently Deleted, notes awaiting deletion, and folderless notes (default |
| boolean | No | Decode each body and add |
| boolean | No | Add |
Returns: notes, each with id, identifier, title, folder, account, created, modified, modifiedCheckpoint, pinned, locked, inRecentlyDeleted, and markedForDeletion. Also count, limit, order (oldest-first or newest-first), saturated, and nextSince.
Cursors.
modifiedCheckpointis an opaque token (cdts1:, 16 hex digits,:, the note's database key). It carries the exact stored timestamp bits, so it never loses precision the way an ISO string can, and the key orders notes that share one timestamp. Pass it back assince.Syncing. Call with
since, storenextSince, and pass it as the nextsince.nextSinceis the last returned row's cursor, or the incoming boundary when nothing matched, so every call advances.saturatedistruewhencountequalslimit: more changes may follow, so call again right away. When it isfalse, you are caught up. Notes that share a timestamp are split across pages by key, so none is skipped or repeated.First sync. Start with
since: "1970-01-01"and page the same way. A library larger than the 1000-row maximum is reached in full.Browsing. Without
since, rows come newest first.nextSinceis then the newest row's cursor, set only when the call returned every matching note (saturatedisfalse); otherwise it isnull.Late edits. A modification-date cursor can miss an edit that iCloud delivers later from another device with an older timestamp, for example after that device was offline. The row then sorts before the cursor. Run a full pass from the start now and then to catch these.
Deletions. Deleted notes are invisible unless
includeDeletedistrue. With it, notes in Recently Deleted and notes awaiting deletion appear, flagged, when their modification date is after the cursor. A note purged from the database leaves no row, so compare ids against a full pass to detect it.Word counts. A word is a whitespace-separated token containing a letter or digit, except that Chinese, Japanese, Thai, Lao, Khmer and Myanmar text, which has no spaces between words, is split at word boundaries (the same count
query-notesuses forwords:andwordCount);charCountcounts Unicode code points. Attachment markers are not counted. Both arenullfor locked notes and bodies that are not downloaded or cannot be decoded, and0for a body known to be empty.Previews. With
wordCounts,bodyPreviewcomes from the decoded body andtextDecodedistrue. Otherwise it is the stored snippet. Locked notes never get a preview.Folderless notes (abandoned Quick Note drafts Notes.app never shows) and Recently Deleted appear only with
includeDeleted. Notes without a stored modification date never match asincequery.
Example - incremental sync:
{
"since": "cdts1:41c7e0ef438fcd6f:4312",
"limit": 200
}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 |
| string | No | Account to list folders from (defaults to Notes.app's default account; exact or unique-prefix match) |
Example:
{}Returns: List of folders with IDs, paths, account names, and shared state, plus identifier, parentIdentifier, and accountIdentifier when Full Disk Access is granted. 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). Smart folders are listed too, because Notes' AppleScript lists them like ordinary folders; with Full Disk Access they carry smartFolder: true (and (smart folder) in the text list). A smart folder cannot hold notes or folders.
list-smart-folders
Lists every Smart Folder with the rules that define it, read from the NoteStore database. Requires Full Disk Access.
Parameter | Type | Required | Description |
| boolean | No | Also list the notes each smart folder currently shows (default |
| number | No | Maximum matching notes per folder, 1–500 (default 50). |
Example:
{
"includeMatchingNotes": true,
"limit": 20
}Returns: For each smart folder: name, id, identifier, account,
accountId, accountIdentifier, parent, parentId, and parentIdentifier
(the parent fields are null at the account root). Its rules are decoded as
match ("all", "any", or "none") and filters. Each filter has a type
(the stored rule key, such as folder, tag, checklist, or
creationDateRelativeRange), its stored value, excluded for an Exclude
rule, and a readable description. Folder filters add the folder's name and
folderId, and a nested rule group is a filter of type group with its own
match and filters. Notes stores each query inside an outer
{"deleted": false} wrapper that keeps Recently Deleted out. query is the
stored query with that wrapper removed, includesRecentlyDeleted reports the
wrapper's value, and rawQuery is the stored JSON verbatim. A rule this server
does not recognize is kept as a filter of type unknown, and fullyDecoded is
then false.
With includeMatchingNotes, each folder also carries matchingNoteCount and
matchingNotes (title and id). These come from Notes.app itself, which
evaluates the folder's rules, so they need Automation permission. The server
does not re-evaluate the rules on its own. A folder whose notes cannot be read
carries matchingNotesError instead.
list-folder-tree
Returns the folder hierarchy with note counts for each account, read from the NoteStore database in one pass.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup).
Parameter | Type | Required | Description |
| string | No | Only this account (exact or unique-prefix name). Omit for every account |
| boolean | No | Include folders marked for deletion (flagged |
Returns: accounts, each with account, identifier, noteCount, and folders. Each folder node has id, identifier, name, path (in list-folders syntax), kind (folder, smart, or trash), noteCount (notes directly inside), totalNoteCount (including subfolders), and children. Regular folders sort by name, then smart folders, then Recently Deleted. An account's noteCount sums its regular folders. Smart folders report 0 because their contents are a saved search. Also returns folderCount.
create-folder
Creates a new folder, including a whole nested hierarchy in one call.
Parameter | Type | Required | Description |
| string | Yes | Folder name, or a nested path separated by |
| string | No | Account to create folder in (defaults to Notes.app's default account; exact or unique-prefix match) |
Example:
{
"name": "Work Projects"
}Example - Create a nested hierarchy:
{
"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.
Existence is decided by folder id, not by name: a folder deleted earlier in the same Notes session no longer counts as existing, and the call succeeds only once the created folder is confirmed by its id. Otherwise it reports failure.
get-folder-by-id
Reads one exact folder's current name, parent ID, and account ID (accountId,
plus isRoot, true when the folder sits at the account root). Use these values
with rename-folder or delete-folder-by-id; this avoids relying on ambiguous
folder names or paths. The id may also be the folder's Notes UUID or numeric
key, and the result adds identifier, parentIdentifier, and
accountIdentifier when Full Disk Access is granted.
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-by-id
Deletes one exact, empty, ordinary folder through a plan-then-apply handshake.
Read the folder first with get-folder-by-id, call once with dryRun: true,
then repeat the same guards with dryRun: false and the returned revision.
Parameter | Type | Required | Description |
| string | Yes | Exact folder id ( |
| string | Yes | Current folder name (not a path), matched case-sensitively |
| string | Yes | Owning account id ( |
| string | One of these two | Current parent folder id (same forms as |
|
| One of these two | The folder sits at the account root |
| boolean | Yes |
|
| string | On apply | The |
Example (plan, then apply with the returned revision):
{
"id": "x-coredata://ABC/ICFolder/p42",
"expectedName": "Old Projects",
"expectedAccountId": "x-coredata://ABC/ICAccount/p3",
"expectedRoot": true,
"dryRun": true
}Returns: status: "planned" with wouldDelete, identifier, name,
accountId, parentId, folderType: 0, zero childFolderCount and
noteCount, and revision; on apply, status: "deleted", committed: true,
verified: true (Notes.app no longer resolves the id), and storeTombstoned.
Safety: it always refuses Recently Deleted, smart folders, the account's default and other system folders, shared folders (or folders inside a shared folder), and any folder that still holds notes or subfolders. There is no override. It is not atomic: the guard is a pre-check followed by an AppleScript delete. The name, parent, account, sharing, and emptiness checks repeat inside the delete script, but the folder type and stable identifier come from the local Notes database just before it. It needs Full Disk Access and fails closed without it.
Errors carry the standard code: revision_conflict (a Conflict: message;
read and plan again), unsupported (a Refused: message), verification_failed
with indeterminate: true (read the folder before any retry), and
full_disk_access_missing.
delete-folder
Deletes a folder.
Parameter | Type | Required | Description |
| string | Yes | Name or path of the folder to delete (supports nested paths like |
| string | No | Account containing the folder (defaults to Notes.app's default account; exact or unique-prefix match) |
Example:
{
"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 |
| string | Yes | The folder's CoreData identifier (from |
| 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:
{}Returns: List of accounts with names, IDs, upgraded state, and default folder metadata, plus each account's identifier (Notes UUID) when Full Disk Access is granted.
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 |
| string | Yes | The account's CoreData identifier (from |
| 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 |
| object[] | Yes | Array of |
Returns: Summary of successes and failures. A note already in Recently Deleted fails without being deleted, as in delete-note.
⚠️ 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 |
| string[] | Yes | Array of note IDs to move (max 500 per request) |
| string | Yes | Destination folder name or nested path (e.g., |
| string | No | Account containing the folder |
| string, string, string[] | No | Shared folder preconditions applied independently to each note; see Folder scope guards. Forbidden folders also apply to the destination |
Returns: Summary of successes and failures. Each success is reported only after the note's actual container folder ID matches the destination folder ID. If every note fails, the call returns its existing error response; the exact note IDs and reasons remain in the failure text.
Failure rows carry committed: false, indeterminate: false only when that
item was refused before its move. Move/readback failures and an unknown
whole-script outcome carry indeterminate: true, with committed omitted.
If every item fails, the batch reports committed: false only when every row
is a proven pre-move refusal. Otherwise its error result is indeterminate;
read each exact note ID before retrying, even if another row has a scope refusal.
Example - move only notes that are still in the reviewed inbox:
{
"ids": ["x-coredata://ABC123/ICNote/p456", "x-coredata://ABC123/ICNote/p457"],
"folder": "Archive",
"ifFolderId": "x-coredata://ABC123/ICFolder/p12"
}The source-folder check runs immediately before each move in the same
AppleScript. If the check finds that a note is no longer in that inbox, its
result reports Scope guard failed: … while a note still there can move.
The check does not lock the note against another actor moving it before the
move. The batch is not a transaction, and successful moves are not rolled
back after a refusal.
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 |
| number | No | 0-based position to start from, counting notes in account → folder → note order (default |
| number | No | Maximum notes in this page (default |
| string | No | ISO 8601 date string; export only notes modified on or after this date (e.g., |
Example - First page:
{}Example - A later page of an incremental backup:
{
"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 |
| The window that was applied |
| Notes in the library, after |
| Notes in this page |
| Where the next page starts; absent on the last page |
|
|
|
|
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 |
| string | No | Note ID (preferred) |
| string | No | Note title |
| string | No | Account containing the note |
Returns: Note content converted to Markdown format. Checklist items include [x]/[ ] prefixes when database access is available.
export-notes-markdown
Exports one note, or the notes of one folder, as a single Markdown document
rendered from the decoded note body (the same block model as
get-note-blocks). Titles render as #, headings as ##,
subheadings as ###. Bulleted, dashed and numbered lists keep their indent
(four spaces per level), checklists render as - [x]/- [ ], block quotes as
>, and monospaced paragraphs as fenced code. Inline runs keep bold, italic,
strikethrough, underline (<u>), highlight (==), superscript and subscript
(<sup>/<sub>), and links whose scheme is http(s), notes:, applenotes:
or mailto:. Tables render as GitHub tables. Attachments stay in body order:
with assetsDir they link to copies of their files (images inline, drawings
through Notes' fallback image, scans as their PDF), and without it they render
as labeled placeholders such as \[Image: name\]. An attachment whose file
cannot be found renders as \[Image unavailable: name\]. Body text that
Markdown would read as block syntax (a leading # to ######, >, -, +,
*, 1. or 1), a --- line, a code fence or a table row) is
backslash-escaped, so a plain paragraph such as ## Notes stays a paragraph,
and wrap never starts a continuation line with such a marker. This tool
leaves get-note-markdown unchanged.
A folder export is one presentation document with notes separated by ---.
It is not a backup or restore format; use export-notes-json for that.
Requires: Full Disk Access. Password-protected notes are skipped in a
folder export (listed in skipped with code encrypted) and refused for a
single note.
Parameter | Type | Required | Description |
| string | One of | Exact note ID |
| string | One of | Folder path, as for |
| string | No | Account holding |
| number | No | Maximum notes read from the folder (default 100, max 1000) |
| string | No | Absolute file to create. Create-only: an existing file (or symlink) is refused with |
| string | No | Absolute directory for attachment copies. Existing files are never replaced; a taken name gets |
| number | No | Hard-wrap prose at this many columns. Code, tables and headings are never wrapped |
| string | No | Render through a template: |
| string | No | Render through the JSON template in this |
Both paths follow the save-attachment rules (absolute, under the home
directory, a temp directory, or /Volumes, no symlink escapes) and may not
point inside the Notes library container. templateFile is a read, so it
also follows contentPath's private-location rule. With outputPath, asset links are
relative to the document's directory; without it they are absolute paths.
Returns: without outputPath, the Markdown itself (refused with
[too-large] above half of APPLE_NOTES_MCP_EXPORT_MAX_BYTES, because the
document travels in both the text and structured result). With outputPath, a
receipt: format, count, bytes, output, and assets (dir, files).
Both carry stats (attachments, placed, placeholders, unavailable, tables,
unreadableTables, unreferenced) and skipped. Nothing already written is
deleted if a later step fails.
Templates: template or templateFile renders through a portable JSON
template that sets how every block style, inline format, attachment,
per-note header and footer (for YAML front matter with title, dates,
folder, tags and id), and the note separator are written. The built-in
standard-markdown reproduces the default output; obsidian adds front
matter and copies attachments into <file>.assets beside outputPath.
Templated asset copies get stable content-hashed names and are reused on a
repeat export. An invalid template is refused with [invalid-template] and
one JSON path per problem, before any note is read. A templated receipt adds
template, warnings (such as missing_asset) and assetFiles. See
docs/markdown-templates.md for the schema,
every rule and placeholder, and examples.
export-notes-html
Exports one note, or the notes of one folder, as one standalone HTML file
rendered from the decoded note body. It uses the same block model and
attachment handling as export-notes-markdown.
Headings become h1-h3, lists nest by indent as ul/ol, checklists show
disabled checkboxes, block quotes and monospaced paragraphs become
blockquote and pre, and inline runs keep bold, italic, underline,
strikethrough, highlight, superscript, subscript, text color and safe links.
Tables are semantic <table> elements with a header row. Images, drawings
(Notes' fallback image by default, SVG with vectorDrawings: true; see below), scans (PDF with preview), audio,
video, files and link cards (title, domain and preview thumbnail) appear in
body order. Attachments with no body marker are appended in creation order.
An attachment with no usable source renders a visible
[Image unavailable: name] marker. The document contains no script, no
file: URL and no Notes library path.
A folder export is one presentation document with notes separated by
<hr class="note-separator">. It is not a backup or restore format.
By default every drawing keeps Notes' own fallback image, a fixed-size PNG.
With vectorDrawings: true, classic PencilKit drawings (com.apple.drawing.2
and com.apple.drawing) are rendered as SVG instead, decoded through the
public native helper exactly as get-note-drawings
does. The option is off by default because decoding runs the helper and costs
extra time per note. The SVG is embedded as a data
URL, or written to the sidecar directory with embedAssets: false, and it is
subject to the same size limits as any other asset. It stays sharp at any
zoom. Paper drawings
(com.apple.paper) have no public decoder and keep Notes' fallback image or
preview. If the helper is not built (apple-notes-mcp setup --public-helper),
a drawing does not decode, the helper stopped at its stroke limit, or the SVG
is too large, that drawing falls back to the PNG; the export never fails for
it. The SVG traces each stroke's points with its color and mean width, so
pencil grain and marker blending are approximated.
Requires: Full Disk Access. Password-protected notes are skipped in a folder export and refused for a single note.
Parameter | Type | Required | Description |
| string | One of | Exact note ID |
| string | One of | Folder path, as for |
| string | No | Account holding |
| number | No | Maximum notes read from the folder (default 100, max 1000) |
| string | Yes | Absolute HTML file to create. Create-only: an existing file is refused with |
| boolean | No | Embed assets as data URLs (default |
| string | No | With |
| boolean | No | Render classic drawings as SVG through the public native helper (default |
The HTML is always written to a file, because an embedded document is too
large for an MCP message. Paths follow the save-attachment rules and may not
point inside the Notes library container. Sidecar URLs are relative to the
HTML file, so the file and its .assets directory can be moved together.
Returns: format, count, bytes, output, either embedded (assets
embedded) or assets (dir, files), stats, and skipped. When the notes
contain classic drawings and vectorDrawings is true, vectorDrawings reports
rendered (drawings placed as SVG), fallback (drawings left as PNG), and
fallbackReasons, a count per code such as helper_not_installed,
undecodable, truncated, timeout, or too-large. After one helper
timeout, or when the helper is not usable, the remaining drawings in the
export are not decoded. Nothing already written is deleted if a later step
fails.
list-markdown-templates
Lists the Markdown export templates: the built-ins (standard-markdown,
obsidian) and every saved template in the library, with its display name,
description, size and modification date. Unreadable, invalid or unsafe files
in the library are skipped and counted in skipped. Takes no parameters.
Returns: builtins, templates, skipped, and dir (the library
directory).
show-markdown-template
Returns one template in its portable form: a built-in, or a saved template exactly as stored (overrides only). Use it as the starting point for a new template.
Parameter | Type | Required | Description |
| string | Yes | A built-in or saved template name |
| boolean | No | Also return |
Returns: name, source (builtin or saved), template, and
optionally expanded.
validate-markdown-template
Checks a template without saving it. Pass exactly one of name, template
or templateFile.
Parameter | Type | Required | Description |
| string | One of three | A saved or built-in template |
| object or string | One of three | The template as a JSON object or JSON text |
| string | One of three | Absolute path of a JSON template file (home, a temp directory, or |
Returns: valid, and errors as {path, message} pairs such as
$.rules["inline.bold"].after: is required when mode is "wrap". An invalid
template is a normal result, not a tool error.
save-markdown-template
Validates a template and stores it in the library so export-notes-markdown
can use it by template name.
Parameter | Type | Required | Description |
| string | Yes | Lowercase |
| object or string | One of | The template |
| string | One of | A JSON template file, under the same rules as |
| boolean | No | Replace an existing template of this name (default |
Saving is create-only: an existing name is refused with [template-exists]
unless force is true. An invalid template is refused with
[invalid-template] and one JSON path per problem. The file is written to a
temporary name and then moved into place, with mode 0600 in a 0700
directory. The library is ~/Library/Application Support/apple-notes-mcp/templates,
or APPLE_NOTES_MCP_TEMPLATE_DIR. A symlinked library or template file is
refused.
Returns: name, path, bytes, and replaced.
delete-markdown-template
Removes one saved template file from the library. Built-in templates cannot be deleted.
Parameter | Type | Required | Description |
| string | Yes | The saved template to delete |
Returns: name, path, and deleted: true.
Template editor (command line)
apple-notes-mcp templates edit [name] starts a local web editor for
templates: edit the JSON on one side and see it validated and rendered
against built-in sample notes on the other, then save it to the library
(create-only unless you tick "replace"). It prints one address with a
per-run token, listens on 127.0.0.1 only, refuses cross-origin requests,
and stops on Ctrl-C or after 30 idle minutes (--idle-minutes). It reads a
real note only when you pass --note <id>, and then read-only. --tailnet
listens on this Mac's Tailscale address instead, so another device on your
tailnet can open it; it never changes Tailscale or firewall settings. With
--tailnet, --note exposes the full note body to anyone who has the URL. See
docs/markdown-templates.md
for options and exactly what it exposes.
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 |
| string | Yes | Note ID (use |
Example:
{
"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 dentistget-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 |
| string | Yes | Note ID (use |
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.
list-special-notes
Lists a set of notes that AppleScript cannot enumerate: pinned notes, Quick Notes, notes in Recently Deleted, or password-protected notes. It reads the NoteStore database read-only and returns metadata only, never body text.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup).
Parameter | Type | Required | Description |
| string | Yes |
|
| string | No | Only this account (exact or unique-prefix name). Omit for every account |
| number | No | Maximum rows, 1–1000 (default 100) |
Returns: notes, newest first, each with id, identifier (Notes UUID), title, folder (path in list-folders syntax, or null), account, created, modified, and the flags pinned, locked, quickNote, inRecentlyDeleted, and markedForDeletion. Unlocked rows add the stored snippet. The locked listing adds passwordHint when one is set. Also returns count, total (matches before limit), limit, and supported.
pinnedandquick-notescover notes in folders outside Recently Deleted. Folderless Quick Note drafts, which Notes.app never shows, are left out.recently-deletedlists notes in each account's Recently Deleted folder and skips tombstones already waiting to sync away.lockedlists every password-protected note, including trashed and folderless ones, so a misplaced locked note can still be found. Their flags andfoldersay where each one is.supported: falsemeans this macOS version's database has no column for that kind (for example, Quick Notes before macOS 12).
get-audio-transcripts
Reads the transcript, and the summary when one exists, that Notes already computed for the audio recordings in a note. It does not transcribe anything itself. Notes keeps each recording's transcript as word-level mergeable data on the audio attachment's database row, and this tool decodes it read-only.
Requires: Full Disk Access for the MCP host process (see Full Disk Access Setup). Password-protected notes are refused.
Parameter | Type | Required | Description |
| string | Yes | Note ID (use |
| boolean | No | Also return word-level segments: |
| number | No | Cap on segments per attachment when |
Example:
{
"id": "x-coredata://ABC123/ICNote/p456",
"includeSegments": true,
"maxSegments": 500
}Returns: structuredContent.attachments holds one entry per top-level audio attachment, in the order the recordings appear in the note. Each entry has:
attachmentId(usable withsave-attachment),identifier,typeUti, anddurationSecondswhen knownstatus:ok(a transcript is stored),none(no transcript is stored, for example a recording Notes has not transcribed, or an audio file attached from elsewhere), orundecodablewith areasontext(the words joined into readable text),wordCount,fragmentCount,speakers,summaryandtopLineSummarywhen stored, andneedsTranscriptionwhen the database records itsegments, only whenincludeSegmentsis set, withsegmentsTruncatedwhen the cap cut them short
A recording extended with more takes has several fragments. Their transcripts are joined in stored order, separated by a blank line, and each segment carries a fragment index. Recordings with more than one fragment have been verified against synthetic fixtures only. A response that would exceed APPLE_NOTES_MCP_EXPORT_MAX_BYTES (default 8 MB) drops segments first and then shortens text, marking truncated, segmentsTruncated and textTruncated. When the note body cannot be parsed, attachments come back in database order with bodyOrder: false.
get-note-drawings
Decodes a note's classic PencilKit drawings (com.apple.drawing.2 and the older com.apple.drawing attachments) into strokes and SVG. The PencilKit bytes are read read-only from the NoteStore database and decoded by Apple's public PKDrawing(data:) in the public native helper. Modern Paper sketches (com.apple.paper) are a different format and are not decoded here.
Requires: Full Disk Access for the MCP host process, and the public native helper built once with apple-notes-mcp setup --public-helper.
Parameter | Type | Required | Description |
| string | Yes | Note ID (use |
| string | No |
|
| boolean | No | Include per-point |
Returns: status (ok, partial, error, or none when the note has no classic drawing), drawingCount, and one entry per drawing with attachmentId, identifier, typeUti, status (ok, or error with a code such as no_data, undecodable, or timeout), strokeCount, bounds, truncated, strokes (each with inkType, sRGB color with alpha, mean width, pointCount, bounds, and points), and svg. Points are already in drawing coordinates. Ink removed with the pixel eraser is left out: a partly erased stroke comes back as one entry per visible piece, each marked masked: true, and hiddenStrokeCount counts strokes erased completely. pointsTruncated: true marks a stroke cut short by the helper's point limit. When a response would exceed APPLE_NOTES_MCP_EXPORT_MAX_BYTES, points are dropped and pointsOmitted is set, then SVG documents are dropped and svgOmitted is set; if it still does not fit, the call fails with an error instead. The SVG draws one path per stroke; it is a faithful outline, not a pixel-exact copy of PencilKit's ink textures.
transcribe-note-audio
Transcribes a note's voice recordings and audio attachments now, on this Mac, with Apple's Speech framework through the public native helper. Recognition is on-device only: SpeechAnalyzer on macOS 26 and later, or SFSpeechRecognizer with on-device recognition required on older systems (a locale without on-device support is refused, never sent to a server). The audio files are opened read-only where Notes keeps them.
Requires: Full Disk Access for the MCP host process, and the public native helper built once with apple-notes-mcp setup --public-helper.
Parameter | Type | Required | Description |
| string | Yes | Note ID (use |
| string | No | BCP-47 language of the speech, such as |
| string | No | Only transcribe this audio attachment (an |
| boolean | No | Include transcript text (default |
| boolean | No | Let macOS download the language's on-device speech model when it is missing (default |
| integer | No | Total time budget for the call, 30 to 3600 seconds (default 900) |
Returns: Overall status and, per audio attachment, status, durationSeconds, wordCount, transcript, and takes (a Notes recording can hold several takes; each is transcribed and the texts are joined in stored order). Statuses:
ok: the whole recording was transcribed.partial: some text came back, but a take failed or the helper stopped at its deadline (code: "incomplete").error: nothing was transcribed;codesays why (asset_unavailablewhen the audio file is not on this Mac or the language's speech model is not installed,permission_required,unsupported_locale,unsupported_audio,time_limit, ...).indeterminate: the helper did not answer in time, so the outcome is unknown and a retry may succeed.none(overall only): the note has no audio.
Each take gets a deadline of 1.5 times its length plus a minute (at most 30 minutes), shortened to what is left of maxSeconds. A take that cannot start before the budget runs out reports code: "time_limit". The helper runs as a separate process without blocking the server, and cancelling the request stops it. On macOS 27 a 16-minute recording took about 22 seconds. Some MCP clients stop waiting for a tool after a fixed time, so transcribe long recordings one at a time with attachmentId. Transcripts longer than APPLE_NOTES_MCP_EXPORT_MAX_BYTES are shortened and marked transcriptTruncated.
Speech models: the call never starts a download on its own. When the language's on-device model is not installed, it returns asset_unavailable right away. Pass downloadAssets: true to let macOS download it (a one-time download); if it is still downloading when the call ends, try again shortly.
Speech Recognition permission: the server never shows the Speech Recognition prompt, because nobody may be watching an MCP server to answer it. The helper reads the current authorization first. On older macOS, the SFSpeechRecognizer path needs that access, and macOS attributes the grant to the app that launches the MCP server (Claude Desktop, Codex, Terminal, and so on), not to the helper. Without it the call returns code: "permission_required"; allow the app under System Settings > Privacy & Security > Speech Recognition. If the app has never asked for Speech Recognition access, macOS does not list it there yet, and the call returns code: "permission_not_requested" instead: use macOS 26 or later, or run the server from an app that already has the access. On macOS 26 and later, SpeechAnalyzer transcribed files without any grant in testing (authorization stayed "not determined"), so only an explicit refusal (denied or restricted) stops it.
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
size and streamed SHA-256 of Notes' saved copy with the source before reporting
success, with no read cap below the 64 MiB write limit.
Parameter | Type | Required | Description |
| string | Yes | Exact CoreData note ID |
| string | Yes |
|
| string | Yes | Absolute path of the local file. Read under the same rules as |
| string | No | Name the attachment gets in Notes instead of the source file's name. One path component that keeps the source file's extension, with no slash, colon, backslash, control character, leading dot or surrounding spaces. Notes names a file attachment after the file it receives, so the server gives its private temporary copy this name |
Returns: attachmentId, bytes, the name Notes reports, and the new
contentHash. With filename, filenameVerified says whether Notes reports
that exact name. A mismatch is a warning (filenameWarning), not a failure,
because the attachment and its bytes are already verified.
On macOS 27, Notes' AppleScript does not list PDF attachments, so it cannot see
a PDF this tool just added. When that happens and the server has Full Disk
Access, it verifies through the read-only NoteStore database instead: success
requires exactly one new attachment row on the note whose media file matches
the source bytes, whose type fits the file's extension, and, when the decoded
note body lists attachments, that the body references. The check repeats for
about two seconds while Notes' database catches up, and contentHash is read
after it finishes. The result carries verifiedBy: "database". Without Full
Disk Access a PDF attach reports "insertion outcome uncertain"; read the note
before retrying, because the attachment was probably created.
When the Notes MCP Background v6 bridge is installed, the
tool inserts the file with Notes' own Add File to Note action, which places it
in the note body once, and the result carries insertedBy: "shortcut". The
bridge finds the note by its exact title plus one line of its text that no other
note with that title contains; when no such line exists, or the bridge's search
refuses, nothing has run and the tool falls back to AppleScript
(insertedBy: "applescript"). A bridge run that fails midway is verified, never
retried through AppleScript.
Notes.app's AppleScript insertion places every new attachment in the note body twice (#321): one attachment, shown two times. On the AppleScript path the tool removes the extra copy in the same call and checks that the note lists the attachment once. A PDF on macOS 27 cannot be listed, so its extra copy cannot be removed; when the database shows the PDF twice, the tool returns an error naming the attachment. Delete the extra copy in Notes.app and do not attach the file again. Install the v6 bridge to avoid this.
create-note-with-attachment
Creates a note and attaches one local file to it in a single call. It checks the
file and filename before creating anything, creates the note through Notes.app
the way create-note does in plaintext, then attaches with the
same verification as add-attachment.
Parameter | Type | Required | Description |
| string | Yes | One-line note title |
| string | No | Plain-text body placed above the attachment |
| string | No | Existing folder or nested path; create it first with |
| string | No | Account name; defaults to Notes.app's default account |
| string | Yes | Absolute path of the local file (at most 64 MiB), under the same read rules as |
| string | No | Attachment name override, as in |
{
"title": "Signed lease",
"folder": "Home",
"path": "/Users/me/Downloads/scan-0042.pdf",
"filename": "Lease 2026.pdf"
}Returns: the new note's id with noteCreated: true and the
add-attachment result. If the attachment step fails after the note exists but
before the file is inserted, the error names the new note's id: attach to it
with add-attachment instead of calling this tool again, which would create a
second note. If insertion started and could not be verified, the error is
code: "verification_failed" with indeterminate: true: the file may already
be in the note, so read it with list-attachments before attaching again.
add-attachment-from-pasteboard
Attaches whatever image, PDF, or file is on the pasteboard (a screenshot, "Copy
Image", or a file copied in Finder) to an exact note. The pasteboard is read once
through AppKit's public NSPasteboard API (via JXA, no native build) and its
bytes are frozen into a private temporary file before anything touches the note.
The pasteboard itself is never written. The note and expectedContentHash are
checked before the pasteboard is read, so a request with a wrong id, a stale
revision, or a malformed filename never captures your clipboard. The frozen
file then goes through add-attachment's checks.
Parameter | Type | Required | Description |
| string | Yes | Note ID |
| string | Yes | The note's current |
| string | No | Attachment name. Defaults to the copied file's name, or |
| boolean | No | Default |
Returns: the add-attachment result plus source (kind: file or
data, the pasteboard type, and the default filename). A copied file wins
over image data; among data types PDF is preferred (a copied PDF usually comes
with a raster preview of itself), then PNG, JPEG, HEIC, GIF, and TIFF. Several
copied files or several image or PDF items are refused rather than attaching
only the first.
Paste privacy (macOS 15.4 and later): macOS can show an alert asking
whether to allow a paste when a process reads the general pasteboard without a
user paste. Before reading anything, the tool checks AppKit's
NSPasteboard.accessBehavior.
It reads only when the value is alwaysAllow, or when you pass
allowPasteAlert: true and the value is default or ask (macOS then shows
its alert, and the call waits for your answer up to the automation timeout).
Otherwise it reads nothing and returns code: "permission_denied" with
pasteboardCode: "pasteboard_access_denied" and accessBehavior (default,
ask, alwaysDeny, or unknown). alwaysDeny is always refused; change it in
System Settings, where macOS lists an app after its first paste alert. On macOS
before 15.4 the property does not exist and the pasteboard is read as before.
Errors carry a pasteboardCode next to the shared code, and
committed: false because nothing was written:
|
| Cause |
|
| Reading would show the macOS paste alert, or pasting is denied (see above) |
|
| Nothing is on the pasteboard |
|
| No PNG, JPEG, HEIC, GIF, TIFF, PDF, or copied file (text belongs in |
|
| More than one copied file; |
|
| More than one image or PDF item (not files); |
|
| More than 64 MiB |
|
| The copied file is a symlink, empty, over 64 MiB, or unreadable |
|
| The pasteboard changed while it was being read; try again |
|
| The read timed out (for example an unanswered paste alert) |
|
| The MCP host is not running in your logged-in GUI session (for example over SSH) |
|
| The temporary copy could not be written |
The pasteboard read uses the same timeout as other automation steps
(APPLE_NOTES_MCP_TIMEOUT_MS, 30 seconds by default).
Known limitation (#236): on macOS 27, Notes' AppleScript dictionary does not list
PDF attachments, so a PDF (pasted or from add-attachment) is inserted but
cannot be verified and the call reports "insertion outcome uncertain". Read the
note before retrying.
For testing, APPLE_NOTES_MCP_PASTEBOARD_NAME makes the tool read a private
named pasteboard instead of the general one, so a test never touches your
clipboard.
list-attachments
Lists attachments in a note.
Parameter | Type | Required | Description |
| string | No | Note ID (preferred) |
| string | No | Note title |
| string | No | Account containing the note |
| boolean | No | Also report where each attachment's files are on disk (needs |
| boolean | No | Return only the note's lead visual instead of the list (needs |
Returns: List of attachments with IDs, names, content identifiers, URLs when available, created/modified dates, and shared state.
With includePaths, each attachment also carries identifier, uti, kind (image, scan, drawing, pdf, audio, video, url, table, other), bodyIndex, and three path fields read from NoteStore and the Notes data folder (read-only):
assetPaths: the attachment's own files, best first (the media file, or Notes' fallback image or PDF rendering).previewPath: Notes' largest rendered thumbnail, chosen by pixel area from thePreviewsentries named<identifier>-<scale>-<W>x<H>-<appearance>. It is always the image file, including when the entry is a directory holding<n>_<uuid>/Preview.png.nullwhen there is none.paths:assetPathsfollowed bypreviewPath.
Container attachments (a scan gallery) list their child rows under children. If the database cannot be read, the list is still returned with a pathsError.
With firstImage, the result is {firstImage, orderSource}. firstImage is the first image in the note's body order, even when its asset has not downloaded (path: null, possibly with a previewPath). A scan or drawing stands in only when the note has no image, and a gallery's pages are considered at the gallery's position (parentIdentifier, galleryIndex). orderSource is body, or creation when the body did not record attachment order. firstImage is null when the note has no visual.
⚠️ 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". Treat returned paths as local data: copy files out with export-attachments instead of passing raw paths on.
save-attachment
Saves a note attachment to disk.
Parameter | Type | Required | Description |
| string | Yes | CoreData note ID (from |
| string | Yes | Attachment ID (from |
| string | Yes | Absolute destination file path. Must be under your home directory, a temp directory, or |
Returns: Confirmation with the saved path, name, and content type (also in structuredContent).
list-paper-attachments
Lists the Paper drawings (com.apple.paper) and classic drawings (com.apple.drawing, com.apple.drawing.2) in one note, and whether Notes has a rendered image of each. Read-only; needs Full Disk Access and does not open Notes.app.
Parameter | Type | Required | Description |
| string | Yes | Exact CoreData note ID |
Returns: Per drawing: attachmentId, identifier, uti, kind (paper or drawing), handwritingSummary (the handwriting text Notes recognized, or null when it stored none), bundlePresent (the Paper data bundle is on disk), fallbackImagePath (Notes' full rendering), fallbackImageStale (true when Notes recorded a newer rendering than the one on disk, so the image may not show the latest strokes; export-paper-image then reports stale: true), previewPath (its largest thumbnail), and raster {source, format, width, height}: the validated image export-paper-image would copy, or null.
Strokes are not decoded. Notes' Paper bundle has no public reader, so the image is Notes' own rendering.
export-paper-image
Saves Notes' rendered image of one Paper drawing or classic drawing to a new file.
Parameter | Type | Required | Description |
| string | Yes | Exact CoreData note ID |
| string | Yes | Absolute path for the new file. It must end in the image's extension ( |
| string | No | The drawing to export ( |
Returns: savedPath, format, width, height, bytes, source (fallback for Notes' full rendering, preview for its largest thumbnail when no full rendering exists), and the drawing's attachmentId, identifier, kind, and handwritingSummary.
⚠️ Safety: Writes one new file, readable only by you (mode 0600). savePath follows the save-attachment allowlist (home, temp, or /Volumes), may not be inside the Notes data folder, and must not exist yet. The image header (PNG signature and IHDR, or JPEG frame) is checked before copying and the written file is checked again; a file that fails is removed.
analyze-svg
Analyzes one local SVG file and reports whether it can be represented as editable monoline strokes (a list of strokes, each a solid color, a width, and a polyline) and what that conversion would approximate or drop. It is a standalone preflight: it reads only the file, opens no Notes data, and makes no network request.
Parameter | Type | Required | Description |
| string | Yes | Absolute path of one |
| boolean | No | Also return the normalized drawing. Off by default because it can be large |
Returns: classification, importable, defaultWriteAllowed, requiredLosses, issues (each with a code, the loss it causes or null, an element location such as svg/g[2]/path[1]#id, and a message), viewport, counts (elements, references, path segments, output strokes and points, and the geometryWork, dashWork, and scanWork budgets as {used, max}), source (sha256, bytes), drawingBytes, and analysisDigest.
Classification | Meaning |
| The output needs no reported approximation or omission. |
| The output needs |
| Visible content would be dropped ( |
The loss modes:
geometry-approximation: non-round caps or joins are drawn round, a non-uniformly scaled stroke gets one width, or centerlines are clipped at a viewport. Curves are flattened to within 0.25 px, which is not reported as a loss.paint-approximation: solid fills become overlapping strokes, group opacity is applied to each stroke, and blend modes or a non-default paint order are ignored.drop-content: text, images, gradient and pattern paint, filters, masks, clip paths, markers,<switch>, and unknown elements are omitted.
Supported input: path, rect, circle, ellipse, line, polyline, polygon; g, a, nested svg; local defs, symbol, and use; transforms; viewBox and preserveAspectRatio; solid named, hex, rgb()/rgba(), and hsl() colors, currentColor, opacity, fill rules, and dashes, from attributes or the style attribute. analysisDigest is a SHA-256 over the canonical analysis and normalized drawing, so equal digests mean the same result.
⚠️ Safety: Read-only. Active or unsafe input is refused as an error with code: "validation_error" and an svgCode: svg_unsafe for scripts, event-handler attributes, <style> elements, animation, embedded objects, DOCTYPE or entity declarations, processing instructions, and any external reference (only local #id references and embedded raster images are allowed); svg_invalid for malformed XML; svg_reference_invalid for cyclic or duplicate-id references; svg_complexity_limit or svg_geometry_invalid when a limit is exceeded (16,384 elements, 100,000 path segments, 4,096 output strokes, 100,000 points, 5,000,000 fill scan checks); svg_file_invalid for a path or file that cannot be read.
export-attachments
Copies a note's attachment files into a directory without opening Notes.app.
Parameter | Type | Required | Description |
| string | Yes | Exact CoreData note ID |
| string | Yes | Absolute destination directory, created if missing. Same allowlist as |
| boolean | No | Export only the lead visual that |
Returns: exportDir, counts (exported, previews, fallbacks, skipped, failed), and per attachment its attachmentId, identifier, kind, exportedTo, and exportedKind: "asset" for the real file, "fallback" for Notes' own full rendering of it (a drawing's PNG or a scan's PDF, named with that format's extension), "preview" when the asset never downloaded and only Notes' thumbnail was on disk, or null when nothing was on disk. inBody: false marks an attachment the note body no longer shows, and stale: true marks a rendering taken from an older generation because the one Notes recorded is missing; attachments inside a container Notes has deleted are not exported. A preview is never chosen over an available asset, and it is named <name>-preview.<ext> so it is not mistaken for the original. A scan gallery with no file of its own exports its pages.
⚠️ Safety: Existing files are never replaced. A name that is taken gets -2, -3, and so on. Reads NoteStore and the Notes data folder read-only and needs Full Disk Access.
fetch-attachment
Returns a note attachment's bytes as base64, without writing to disk (the read counterpart to save-attachment).
Parameter | Type | Required | Description |
| string | Yes | CoreData note ID (from |
| string | Yes | Attachment ID (from |
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 |
| string | Yes | CoreData note ID (from |
| string | Yes | Attachment ID (from |
| 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.
The report ends with the same feature matrix as get-capabilities
(structuredContent.runtimeOS and structuredContent.features). It is
informational: an unavailable optional feature never changes healthy.
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".
Every tool below that edits one note takes these parameters, plus the ones listed under the tool itself:
Parameter | Type | Required | Description |
| string | Yes | Exact note ID: x-coredata id, Notes UUID, or numeric key (see Identifier forms) |
| string | Yes |
|
| string | Yes | Distinctive phrase already in the note below its title line, 12–500 characters, that Notes search can find. Prefer plain words without punctuation, hashtags, or paths |
When the Shortcut refuses a request (its Find Notes step did not return
exactly one note with that exact title and scopeText) or stops with its own
action error, and the note reads back unchanged, the tool reports the
Shortcut's reason with code: "operation_failed", committed: false and
indeterminate: false: nothing was written, so a retry is safe once the cause
is fixed. Notes search can lag behind a note created or edited moments ago, so
a refusal on a brand-new note may clear after a minute. A timeout, or a failed
readback on a note that did change, is still reported as indeterminate.
If the Shortcut is not installed, the error is code: "shortcut_not_installed"
with committed: false.
get-capabilities
Reports which background operations are implemented, live-verified, installed, and currently available, with a specific reason for each unavailable operation.
It also reports runtimeOS (platform, macOSVersion from sw_vers,
darwinRelease) and a features matrix, one entry per feature group:
applescriptCore, fullDiskAccessReads, shortcutsBridges,
backgroundOperationsBridge, nativeTagsBridge, markdownNoteBridge,
paragraphLinks and audioTranscription (both database reads that need Full
Disk Access), and the placeholders checklistToggle and smartFolders
(creating or editing smart folders), which need a native write helper this
server does not ship (requirement native_write_helper). The opt-in private
helper below is read-only, so enabling it does not change them: they stay
not_implemented.
Each entry carries available, osSupported, minimumMacOSVersion,
requirements, missing, unverified, tools, and a machine-readable
reason that is null when available and otherwise the first that applies:
| Meaning |
| Not running on macOS |
| The server has no implementation for this feature yet |
| The feature has a macOS floor and |
| macOS is older than |
| The Notes database is not readable by this process |
| The |
| A bridge Shortcut is missing or installed more than once |
| Notes' Create Note action has no "Interpret as Markdown" option on this build, so |
The probe never opens Notes.app or runs a Shortcut, so the Automation
permission for Notes.app appears under unverified rather than being guessed;
doctor and health-check confirm it by contacting Notes.
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 ##. On a Notes
build whose Append to Note action has no "Interpret as Markdown" option (macOS
26.6.2 / Notes 4.13, #337), where the bridge would append literal Markdown, the
server sends its HTML rendering through the HTML importer instead, so ###
renders as Heading there. 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 first-run consent prompt and names the Shortcut to run once
in the foreground.
Parameter | Type | Required | Description |
| string | Yes | Content to append, up to 1,048,576 characters |
| string | No |
|
create-checklist-item
Appends one real unchecked Notes checklist item and verifies its native identity and text.
Parameter | Type | Required | Description |
| string | Yes | The item's text |
create-checklist-items
Appends several real unchecked checklist items, 1 to 20, in the order given.
It takes the same id, expectedContentHash and scopeText as
create-checklist-item, plus items, an array of one-line texts. Each item is
one run of the same verified bridge, so the call takes a few seconds per item
(a full batch of 20 can run about a minute; if your client times out first,
read the note before retrying rather than resending the whole batch) and is
gated with create-checklist-item in get-capabilities.
After every run the server checks that exactly one new unchecked item with that text and a new native identity appeared, that every item appended earlier in the call kept its identity and text, and that nothing else in the note changed. The verified revision feeds the next run. A final check confirms the new items are the note's last checklist items in the requested order.
{
"id": "x-coredata://ABC123/ICNote/p456",
"expectedContentHash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"scopeText": "Packing list for the trip",
"items": ["Passport", "Charger", "Rain jacket"]
}Returns: items (also as landed), each with its index, native id and
text, plus orderVerified and the new contentHash. The first uncertain
result stops the call without a retry and returns ok: false with landed (the
verified items), stoppedAt (the item's index, text, outcome of
"not-written" or "uncertain", and the error), and notAttempted. Every
ok: false result is an error result (isError: true) with a code; after an
uncertain stop it has indeterminate: true and no contentHash, since the note
may have changed. Read the note before retrying, and retry only the items that
are not present.
create-table
Appends a native table from rectangular string rows and verifies every decoded
cell. It never substitutes a text table. Omit rows for an empty 2 × 2 table,
the size Notes itself inserts from Format > Table; its four empty cells are
verified the same way.
Parameter | Type | Required | Description |
| string[][] | No | Cell text, row by row: 1–1,000 rows of 1–100 cells, every row the same length. Omit for an empty 2 × 2 table |
set-note-pinned
Sets an explicit pinned state after checking both the expected current state and the note revision. It does not rewrite the body.
Parameter | Type | Required | Description |
| boolean | Yes | The pinned state you last read; the call is refused if it differs |
| boolean | Yes | The pinned state to set |
remove-native-tags
Removes specified tags from one exact note while preserving unrelated tags and native objects. It does not delete global tag definitions.
Parameter | Type | Required | Description |
| string[] | Yes | 1–100 tag names to remove |
replace-native-tag
Adds and verifies the new tag before removing the old tag on an explicit list of freshly read notes. Stops on the first uncertain result. Smart Folder rules are not changed.
Unlike the other tools in this section, it takes a list of notes instead of one
id:
Parameter | Type | Required | Description |
| object[] | Yes | 1–100 entries, each with the note's |
| string | Yes | Tag to remove after the new one is verified |
| string | Yes | Tag to add |
insert-note-link
Retrieves another note's real deep link and appends it with a static label while preserving the target note's native objects.
Parameter | Type | Required | Description |
| string | Yes | ID of the note to link to, in any identifier form |
| string | No | Visible link text (default: the linked note's title) |
Private helper (opt-in, unsupported Apple API)
An optional, read-only native helper reads note state through Notes' own data model (Apple's private NotesShared framework) instead of AppleScript or Shortcuts. It is off by default and nothing in the rest of the server depends on it. It cannot write: every store it opens is opened read-only, and write support was deliberately deferred by the maintainer until a second writer beside a running Notes.app, CRDT replica identity, and the iCloud upload lag are understood. Private API can break on any macOS update; see TECHNICAL_NOTES.md for the API surface, risks, and safety contract.
Brokered sessions do not load external native helpers. Set APPLE_NOTES_MCP_BROKER=off for this client and restart it, then follow Private helper setup to build and enable it. The server checks the helper's recorded source and binary SHA-256 before every call and refuses a missing, stale, or modified helper with a machine-readable code. Rerun matching-version setup after upgrading apple-notes-mcp.
native-helper-status
Reports whether the helper is enabled, built, and current, and runs its live
probe: macOS and Notes versions, whether NotesShared loads, whether every
required class, selector, and model property exists, and whether the Notes
store opens. Each feature reports available plus a reason code
(disabled, helper_not_installed, helper_stale, helper_modified,
private_api_unavailable, store_unavailable, …). Read-only; the response
carries readOnly: true.
native-note-state
Reads one note's native state by Notes UUID (identifier) or x-coredata id:
title, modification date, folder identifier, lock/trash/shared/editable
flags, iCloud version counters, and a revision change token (compare two
reads to detect a change). Opens the store with Core Data's read-only option.
native-checklist-state
Reads one note's native checklist by Notes UUID (identifier) or x-coredata
id; pass exactly one. The id is resolved through an exact read-only database
lookup after checking the opt-in and installed hashes. Requires the same opt-in, current helper, and Full Disk
Access as native-note-state. Check native-helper-status's readChecklist
feature first: its probe checks the checklist getters separately. Locked notes
or unavailable native bodies are refused. Ordinary ☐ glyphs and Markdown
task text do not count as native checklist items.
Returns identifier, revision, items, total, checked, and
syncHostRunning. Each item has its exact native todoIdentifier (32 lowercase
hex digits), uuid, index, done, and text. Items follow the first occurrence
of each native todo identity, which can cover multiple style runs. text is the
line containing its first visible styled character, or the first styled line
when it has only line terminators. lineStart, lineLengthUTF16, styledStart,
and styledLengthUTF16 are UTF-16 offsets and lengths; line text excludes the
terminator. The styled range is an envelope, including intervening characters
when the identity occurs in separated runs.
Read the ambiguity flags before treating an entry as a single checklist row:
contiguous: false means separated runs share the identity; consistent: false
means their done bits disagree; spansLines: true means its styled envelope
contains multiple lines after leading/trailing terminators are removed. done
comes from the first visible styled character, falling back to the first run.
Totals count native identities, including ambiguous ones. The revision is an
informational change token. This tool opens the store read-only and cannot
toggle, create, or repair checklist items.
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
Omit account and an operation targets whichever account Notes.app itself
reports as the default — not a hardcoded "iCloud". That matters if your default
is a non-iCloud account, if the account name is localized, or if it carries a
trailing U+F8FF () character.
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..."When you do pass account, it is resolved in this order:
Exact name match wins outright.
A unique prefix match resolves —
account="robert"findsrobert.b.sweet@gmail.com.An ambiguous prefix is refused, with every candidate named:
Account "rob" is ambiguous - it matches 2 accounts: rob@superiortech.io, robert.b.sweet@gmail.com. Use the full account name.
That third rule is deliberate. Silently taking the first prefix match would
make delete-note or move-note land in the wrong account and report success.
An unresolvable account is reported as such rather than as "note not found", so
you are not sent looking for the wrong problem.
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: [searches for the note, then calls move-note with its exact id and folder="Archive"]
"Moved 'Old Meeting Notes' to 'Archive'"
User: "What folders do I have?"
AI: [calls list-folders]
"You have 5 folders: Work, Work/Clients, Work/Clients/Omnia, Archive, Recipes"
User: "Create a note in Work/Clients about Acme Corp"
AI: [calls create-note with title="Acme Corp", content="...", folder="Work/Clients"]
"Created 'Acme Corp' in Work/Clients"Installation choices and upgrades
Published package
The examples above use npx -y apple-notes-mcp@latest, so a separate global install is optional. To install a persistent command instead:
npm install -g apple-notes-mcp@latestYou can then run apple-notes-mcp setup --check and the other setup commands directly. @latest makes npx check npm for a newer release each time the client starts the server. To hold a reproducible version instead, pin one in the npx argument, for example apple-notes-mcp@X.Y.Z with a version from the CHANGELOG, and update the pin yourself when you upgrade. Keep client and setup commands on the same package version.
After an upgrade, restart the client, check Shortcuts, complete any renewed foreground Shortcut consent, and rebuild a helper if its source checksum changed. Do not use a permission reset as a routine upgrade step.
Fixed Node executable for desktop clients
If a desktop client cannot resolve npx, or Node updates repeatedly invalidate macOS grants, use a persistent package location and an absolute Node executable path:
command -v node
npm root -gUse the first result as command and append /apple-notes-mcp/build/index.js to the second result for args. Example placeholders:
{
"mcpServers": {
"apple-notes": {
"command": "/absolute/path/to/node",
"args": ["/absolute/npm/root/apple-notes-mcp/build/index.js"]
}
}
}Confirm those files exist on your Mac. A Developer-ID-signed Node at a stable resolved path is preferable when permission persistence matters. Ad-hoc signing or moving to a different version-manager path can require new grants. doctor checks the running Node's signature. See docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md for the dedicated-runtime procedure.
Source checkout
git clone --branch v2.15.1 https://github.com/sweetrb/apple-notes-mcp.git
cd apple-notes-mcpThe repository includes the compiled build/index.js, so running that snapshot needs Node but no dependency installation. Configure the client with an absolute Node executable and the absolute path to build/index.js.
For Claude Code launched inside the clone, the root .mcp.json is a project-scope entry using ${CLAUDE_PROJECT_DIR:-.}/build/index.js. Approve it when prompted. The plugin's ${CLAUDE_PLUGIN_ROOT} entry belongs to the plugin installation and is not the clone configuration. Local scope takes precedence over project scope, which takes precedence over user scope; avoid accidentally selecting an older copy.
Only when changing the source, install and build using the repository's pinned pnpm version. First ensure Corepack is installed: Node.js 25 and newer no longer bundle it, and other Node distributions may omit it. If corepack is unavailable, follow the official Corepack installation instructions, then run:
corepack enable
pnpm install --frozen-lockfile
pnpm run buildThese are developer commands, not prerequisites for the published package.
Server settings
Use the client's server environment configuration for optional APPLE_NOTES_MCP_* settings. When a host does not propagate the values, the server can also read string values from ~/Library/Application Support/apple-notes-mcp/config.json, or the path in APPLE_NOTES_MCP_CONFIG_FILE:
{
"APPLE_NOTES_MCP_TIMEOUT_MS": "60000"
}An explicit nonempty environment value takes precedence over the file. Restart the server after changing settings. Put only non-secret server settings in this file. A settings file can configure the server but cannot grant macOS permissions, import a Shortcut, or install a native helper.
For a brokered session, the client forwards only the broker's allowed numeric settings from this file. The brokered server skips JSON configuration files entirely; editing this file cannot enable helper paths or safety overrides in that server.
Environment variables
These optional settings control server behavior. They do not replace the macOS permissions and component setup. Set them in the client environment or the server settings file. The broker accepts only an explicit allowlist of numeric limits and timeouts; code paths, helper paths, Shortcut overrides, and settings that relax safety checks do not carry over.
Variable | Default | Description |
|
| Max bytes captured from a single AppleScript invocation. Raise it if a very large export/list is truncated; lower it to cap memory. Reading one note body allows at least 512 MB regardless, since a body embeds its inline images. Output past the cap fails with an error naming this variable, not as a timeout. |
|
| Max size of an attachment that |
|
| Per-image cap on the base64 payload kept inline in a |
|
| Path to the JSON settings file. |
|
| Total AppleScript operation timeout, including retry attempts and delays. Raise it if full-library operations (large searches, exports) time out on a big Notes library. Per-call |
|
| Absolute directory of the saved Markdown template library ( |
|
| Absolute path of the paragraph anchor registry. |
| unset | Token for |
|
| Largest response |
|
| Largest block payload one |
|
| Maximum attempts for a read-only AppleScript call that fails with a transient error (Notes.app busy / not responding / lost connection). |
|
| Base delay before the first retry; subsequent retries back off exponentially (1s, 2s, 4s, ...). |
| unset | Set to |
|
| Where |
|
| Per-call timeout for the private helper. The helper is read-only, so a timeout changes nothing in Notes. |
| unset | Testing only: points the helper at a copy of |
|
| Where |
|
| Per-call timeout for the public native helper ( |
|
| Name or UUID of the installed Native Tags bridge to run. |
|
| Name or UUID of the installed Background Operations bridge to run. |
|
| Name or UUID of the installed Create Markdown Note bridge to run. |
| unset | Set to |
| unset | Testing only: makes |
| unset | Set to |
| unset | Set to |
| unset | Set either to enable verbose diagnostic logging to stderr. |
Separate direct CLI setup
NotesCTL is a separate direct CLI, not a dependency installed or launched by Apple Notes MCP. Its direct CLI requires Python 3.13 or newer; its installed signed Capability Host has its own protected runtime, signing, protocol, and macOS permission setup. If you separately use that tool, follow the documentation accompanying your authorized distribution. Its private/deep-write capabilities and permissions do not automatically become MCP tools or transfer to this server.
The Apple Notes MCP permission broker is a separate optional component of this server. Its setup and grants do not install or validate the direct CLI's Capability Host, and a successful Capability Host check does not establish that the MCP client is ready.
Permission broker (opt-in)
Under Claude Desktop, macOS holds the Node binary responsible for Full Disk Access and Automation, so moving or replacing Node can require new grants (#220). The permission broker moves both grants to one signed app at a fixed path.
Trust trade-off: while the broker is running, every process running as your macOS user can connect and use the server's Notes capabilities under the broker's Full Disk Access and Notes Automation grants. The socket's ownership, file permissions, and getpeereid check exclude other users; they do not authenticate or distinguish apps running as you. Any such app can request the same Notes reads and writes as your MCP client. This is comparable trust exposure to granting Full Disk Access to a general-purpose Node binary. The broker consolidates permission management; it does not isolate Notes access between same-user apps. Enable it only if you accept that boundary.
Run setup with a standalone Node runtime whose dynamic library dependencies are all under /usr/lib/ or /System/Library/. Setup rejects runtimes linked to other locations, including common Homebrew Node builds, because pinning Node alone would not protect those libraries. The dedicated Node instructions show how to install an official runtime at a fixed path. To select it for setup, run /path/to/node /path/to/apple-notes-mcp/build/index.js setup --broker.
apple-notes-mcp setup --broker # build, sign, install, and start the broker
apple-notes-mcp setup --broker --check # report whether it is installed and answering
apple-notes-mcp setup --broker --uninstall # stop and remove it
apple-notes-mcp setup --broker --sign-identity "Developer ID Application: You (TEAMID)"Setup compiles native/broker/apple-notes-mcp-broker.swift into ~/Applications/Apple Notes MCP Broker.app, copies the server into the bundle before signing with the hardened runtime, runs its hello handshake, and starts it as the per-user LaunchAgent apple-notes-mcp.broker (~/Library/LaunchAgents/apple-notes-mcp.broker.plist). Then add the app under Privacy & Security > Full Disk Access, and click Allow when macOS first asks whether "Apple Notes MCP Broker" may control Notes. Restart your MCP client afterwards and check doctor.
How it works: the broker listens on a Unix socket in ~/Library/Application Support/apple-notes-mcp/broker/, created 0600 inside a 0700 folder. For each client it starts the bundled server as its child, so macOS attributes the server's database reads and Apple events to the broker app. The apple-notes-mcp process your MCP client launches relays its stdin to that server and returns stdout and stderr to the corresponding client streams. Diagnostics stay separate from MCP responses. The broker never reads Notes itself.
Child stderr is delivered only to its client and is not copied into a shared broker log. The broker's own lifecycle and connection diagnostics use macOS unified logging, whose storage and retention are managed by the operating system. To inspect them, run log show --last 1h --predicate 'subsystem == "apple-notes-mcp.broker"'; use log stream with the same predicate for live diagnostics. Direct command-line runs also report broker diagnostics on stderr.
The broker verifies its app signature and sealed resources at startup and before spawning a server. Its signed configuration pins the Node executable's canonical path and SHA-256 digest, and the server entry point has a fixed location inside the signed bundle. Neither the LaunchAgent's arguments nor a socket request can select a Node binary or server entry point. Changes detected at startup or before spawn are refused until you run setup again. These are pre-spawn tamper checks: they do not make later filesystem reads atomic or provide OS isolation against a hostile, unsandboxed same-user process that can modify the user-writable bundle or runtime after validation.
Only an explicit allowlist of harmless numeric limits and timeouts travels from a client to the broker. Code and helper paths, NODE_OPTIONS, Shortcut overrides, APPLE_NOTES_MCP_ENABLE_PRIVATE, APPLE_NOTES_MCP_ALLOW_UNVERIFIED, and APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS are not accepted over the socket. External public and private native helpers are unavailable in broker sessions; use an in-process server for tools that require them. These checks constrain the code and settings the broker executes, but do not authenticate same-user clients.
Installed Shortcuts remain user-managed trusted integrations. The broker does not authenticate their contents; preventing a client from overriding a Shortcut's name does not verify the workflow installed under that name.
The allowed settings are APPLE_NOTES_MCP_BLOCKS_MAX_BYTES, APPLE_NOTES_MCP_EXPORT_MAX_BYTES, APPLE_NOTES_MCP_MAX_ATTACHMENT_BYTES, APPLE_NOTES_MCP_MAX_BUFFER, APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES, APPLE_NOTES_MCP_MAX_RETRIES, APPLE_NOTES_MCP_PRIVATE_HELPER_TIMEOUT_MS, APPLE_NOTES_MCP_PUBLIC_HELPER_TIMEOUT_MS, APPLE_NOTES_MCP_RETRY_DELAY_MS, and APPLE_NOTES_MCP_TIMEOUT_MS. Values must be decimal integers from 1 to 2,147,483,647; other keys or values are ignored. Helper timeouts have no effect while external helpers are disabled.
Signing affects whether the grants survive a rebuild. Setup automatically selects an identity only when exactly one Developer ID Application or Apple Development identity qualifies. If more than one qualifies across those types, specify --sign-identity. Permission continuity depends on the app's designated code requirement and macOS permission state, not just its bundle identifier and team. In particular, do not assume an Apple Development grant will survive certificate renewal or a signing identity change. Without a suitable identity, setup signs ad hoc and warns that rebuilding may require you to grant permissions again. See Node runtime and TCC permissions for details.
Nothing changes unless you run setup --broker. When the broker is absent, stale, or unavailable, the server runs in-process using that process's own permissions. doctor and get-capabilities report whether the session is brokered and, if not, why. After updating the package or replacing its Node runtime, run setup --broker again to install the matching server and runtime pin, then restart your MCP clients.
Set APPLE_NOTES_MCP_BROKER=off in a client's environment to keep that client in-process. This does not stop the broker or remove other same-user processes' access to its socket. To remove that access, run apple-notes-mcp setup --broker --uninstall to stop and remove the broker; you can also revoke its Full Disk Access and Notes Automation grants in System Settings. Restart your MCP clients afterwards.
Reinstall and uninstall wait for launchd to confirm that the old service is gone. If stopping it fails or its state cannot be confirmed, setup reports the failure and preserves the installed artifacts. Successful uninstall removes the app, LaunchAgent, manifest, socket and legacy broker log; it removes the state directory only when empty, preserving unrelated files. Removing the broker does not reset macOS permission grants.
Install the package globally (npm i -g apple-notes-mcp) before running setup. APPLE_NOTES_MCP_BROKER_DIR, APPLE_NOTES_MCP_BROKER_APP_DIR, and APPLE_NOTES_MCP_BROKER_AGENT_DIR override the socket, app, and LaunchAgent folders, and APPLE_NOTES_MCP_BROKER_SIGN_IDENTITY the signing identity.
Paragraph anchor resolver (opt-in)
An applenotes:// paragraph link only opens on an Apple device, and it breaks
when the paragraph's ID changes. For links shared outside Notes, you can run a
small local resolver that looks up a paragraph anchor
when the link is opened and redirects to the paragraph's current link:
apple-notes-mcp anchors serve # http://127.0.0.1:<random port>
apple-notes-mcp anchors serve --port 8765 # a fixed port
apple-notes-mcp anchors serve --tailnet # this Mac's Tailscale address insteadIt serves one route, GET /a/<anchor-id>?token=<token>. A resolved anchor
answers with a 302 redirect to the applenotes:// link. Any other status gets
a short plain-text answer and no redirect: 409 for ambiguous,
low-confidence, needs-reminting and note-unreadable, and 404 for a gone
paragraph or note.
Off by default. Only this command starts it; the MCP server never does. It runs in the foreground until you press Ctrl-C.
Loopback by default. It binds
127.0.0.1.--tailnetbinds the first100.64.0.0/10address on this Mac (a Tailscale address) instead, and fails if there is none. It never runstailscaleand never changes Tailscale, firewall or system settings.Token required. Every request needs the token, as
?token=orAuthorization: Bearer. It isAPPLE_NOTES_MCP_ANCHORS_TOKENwhen set (at least 32 characters; use this for links that must survive a restart), or a random token printed once at startup. Tokens are compared in constant time and never logged; request logs on stderr omit the query string. After 20 failed token checks in a minute from one peer address, that peer gets 429 until the minute passes. The count is per peer, so one client guessing tokens cannot lock out another, and requests refused for their method orHostheader never count.Host check. The
Hostheader must name the bound address, which blocks DNS rebinding. OnlyGETandHEADare served, withCache-Control: no-storeandReferrer-Policy: no-referrer.It needs Full Disk Access for the terminal or process that runs it, and it reads the same registry as the anchor tools.
Security and Privacy
Local Notes operations - AppleScript, the packaged Shortcuts, read-only database access, and helpers run on your Mac.
transcribe-note-audiouses on-device speech recognition;downloadAssets: trueexplicitly permits downloading missing speech models. Whatever your MCP client does with tool results is governed by that client.Permission required - macOS will prompt for automation permission on first use.
Optional broker trusts all same-user processes - With the permission broker running, every process under your macOS user can use its Notes capabilities with the broker's Full Disk Access and Notes Automation grants. The socket checks exclude other users, but do not authenticate same-user apps. This is comparable trust exposure to granting Full Disk Access to Node.
APPLE_NOTES_MCP_BROKER=offbypasses it for one client;apple-notes-mcp setup --broker --uninstallstops and removes the shared service.Broker checks have limits - Signature and hash checks detect tampering present before spawn; they do not isolate the user-writable bundle and runtime from a hostile, unsandboxed same-user process modifying them after validation. Installed Shortcuts are user-managed trusted integrations whose contents the broker does not authenticate.
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 |
Batch ops run per-note |
|
Pinning needs a Shortcut | AppleScript exposes no |
Limited rich formatting | Use |
Exact IDs for writes | Writes take an exact note ID and a fresh |
Checklist state | Requires Full Disk Access to read done/undone state from the database |
Checklist creation | Not possible through AppleScript: its |
Creating Checklists
There is no programmatic way to create a true Apple Notes checklist via AppleScript. This is an Apple limitation, not a bug. Plaintext and HTML writes therefore cannot produce checklists, so this server creates them through Apple Shortcuts instead (workaround 2 below).
When a note is created or updated via AppleScript:
You send | What Notes.app actually renders |
|
|
| A plain bulleted list — the |
Markdown | The literal text |
Apple Notes stores checklists as a paragraph style (style_type=103) inside a gzipped protobuf blob in the NoteStore.sqlite database. AppleScript's note body interface does not expose paragraph styles, and writing directly to the live database is unsafe.
Workarounds:
Create the note with bulleted list items, then convert manually in Notes.app. Select the items and press ⇧⌘L (or Format → Checklist). This converts the list in place and the resulting checklist will be readable by
get-checklist-stateand annotated byget-note-markdown.Use the Apple Shortcuts app to script the checklist creation, since Shortcuts can manipulate Notes content at a higher level than AppleScript. This server does that for you in two ways:
create-checklist-itemandcreate-checklist-itemsappend unchecked items to an existing note, andcreate-notewithformat: "markdown"turns- [ ]/- [x]lines into checklist items with that done state through Notes' own Markdown importer (see Markdown notes).Read-only checklist support is fully implemented — once a checklist exists (created manually or by another app),
get-checklist-stateandget-note-markdownwill read its done/undone state correctly (with Full Disk Access).
If you need to track todos programmatically and don't strictly need them rendered as Apple Notes checklist UI, plain markdown-style - [ ] item / - [x] item lines in a plaintext note are a reasonable alternative — they are searchable, human-readable, and can be parsed by downstream tooling.
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/"
}→ arrives as: cp ~/Library/Mobile\ Documents/file.txt ~/.config/
In a JSON string literal the two characters \\ denote one literal backslash. Doubling them to \\\\ denotes two backslashes in the note, which is almost never what you want.
Example - Literal double backslash:
{
"title": "Escaping Notes",
"content": "Send \\\\ only when you want two backslashes"
}→ arrives as: Send \\ only when you want two backslashes
Common patterns requiring escaping:
Shell escaped spaces:
Mobile\ Documents→Mobile\\ Documentsin JSONRegex patterns:
\d+→\\d+in JSONLiteral double backslash:
\\→\\\\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 Settings > Privacy & Security > Automation (macOS 12: System Preferences > Security & Privacy > Privacy > Automation)
Ensure your terminal/Claude has permission to control Notes
Follow the permissions check from the client that launches the server; an Automation probe can prompt, and a terminal result does not establish another client's grants.
Native writes time out or report an uncertain outcome
Symptom:
add-native-tags,set-note-pinned,append-nativeor another native write fails with "Shortcuts timed out waiting for …", "Operation outcome uncertain" or "readback was not verified", whiledoctorandget-capabilitiesreport the bridges installedCommon cause, especially right after install or upgrade: the bridge Shortcut is waiting on a first-run consent prompt. The server runs it in the background, where Shortcuts cannot display that prompt, so the run stalls until it times out
Fix: open Shortcuts.app, run the Shortcut the error names (
Notes MCP Tags,Notes MCP Background v6orNotes MCP Markdown) once in the foreground and choose Always Allow. Each bridge needs this once; quitting or relaunching Shortcuts.app or Notes.app does not clear itRead the exact note before retrying — the write may have landed
Markdown lands as literal # and ** text
Symptom:
create-noteorappend-nativewithformat: "markdown"reports "Note text not verified" or "Appended text not verified", and the note shows the Markdown characters as plain textCause: this Notes build's Create Note and Append to Note actions have no "Interpret as Markdown" option (macOS 26.6.2 / Notes 4.13, #337). Since 2.16.9 the server detects it, routes both through HTML and says so in
doctorWorkaround on older releases:
markdownRoute: "html"forcreate-note,format: "html"forappend-native
"Note not found"
Note titles must match exactly (case-sensitive)
Check if the note is in a different account
Use
list-notesto see available notes
Note creation/update fails silently with backslashes
Content containing
\characters requires JSON escapingUse
\\to represent each literal backslashSee "Backslash Escaping" section under Known Limitations
Notes accumulate blank lines after repeated updates
Repeatedly updating a note (especially with HTML content) can accumulate whitespace artifacts —
<div><br></div>tags that persist between sections even after you remove them from your contentApple Notes' internal HTML processing preserves empty divs from previous edits, so the gaps are baked into the note's internal representation and cannot be fixed through further updates
Keep the original note. Inspect its native objects and stored content before choosing a repair; plain text cannot establish that rich content is preserved. For notes that cannot safely be rewritten, edit the spacing in Notes.app. Create a separate replacement only when the user wants one, verify it, and obtain explicit deletion intent before retiring the original.
Every tool is refused: "invalid outputSchema … unsupported dialect"
If your client reports something like
Tool 'list-notes' has an invalid outputSchema: JSON Schema declares an unsupported
dialect ("$schema": "http://json-schema.org/draft-07/schema#"). The default
validator supports JSON Schema 2020-12 only.you are on a version older than 2.7.2. MCP standardized on JSON Schema 2020-12, and every tool this server advertised carried the older draft-07 dialect, so clients rejected all of them at once — nothing about your Notes library, permissions, or configuration is involved.
Fix: upgrade to 2.7.2 or later.
npx -y apple-notes-mcp@latestpicks it up on the next launch; a marketplace install updates through the marketplace.Running from a clone:
git pull && pnpm install && pnpm run build, then restart the client.
apple-notes server fails to connect when run from a clone
Launch
claudefrom inside the repo directory soCLAUDE_PROJECT_DIRresolves to the repo root (the bare.fallback is unreliable — it points at the launching process's working directory)If you've been editing the source, rerun
pnpm run build— the entrypoint is${CLAUDE_PROJECT_DIR:-.}/build/index.js, and the committed bundle only reflects your changes after a rebuildRun
claude mcp listto check for a conflictingapple-notesentry at another scope (project-scope outranks user-scope, but local-scope outranks project-scope)Approve the pending project-scope server when Claude Code prompts you
Development
Development uses pnpm (see packageManager in package.json). Complete the source checkout prerequisites, including Corepack, first:
pnpm install # Install dependencies
pnpm run build # Typecheck, then bundle src/index.ts into build/index.js (esbuild)
pnpm test # Run unit test suite (mocked AppleScript)
pnpm run test:integration # Run integration tests against real Notes.app
pnpm run test:all # Unit + integration
pnpm run lint # Check code style
pnpm run format # Format codeThe integration suite (test/integration.test.ts) drives the real
AppleNotesManager → AppleScript → Notes.app stack — creating, reading,
searching, and deleting throwaway notes. Its live tests self-skip when no
writable Notes account is available (e.g. CI), so it is safe to run anywhere;
the pure path-safety and hashtag tests always run.
Author
Rob Sweet - President, Superior Technologies Research
A software consulting, contracting, and development company.
Email: rob@superiortech.io
GitHub: @sweetrb
Contributors
Oliver Ames (@oliverames) — the project's most prolific contributor, with dozens of merged pull requests spanning features, fixes, documentation, and sharp, well-reproduced bug reports.
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Related Projects
Part of a family of macOS MCP servers:
apple-mail-mcp — MCP server for Apple Mail (read, search, send, and organize email)
apple-numbers-mcp — MCP server for Apple Numbers (read and write .numbers spreadsheets)
apple-photos-mcp — MCP server for Apple Photos (query metadata and export originals)
Recurring macOS permission prompts
If macOS keeps re-prompting for Full Disk Access or Automation for node after a Node update, check its path and code signature with doctor. An ad-hoc-signed Node has no stable certificate identity, and version managers may also move the executable when they update it.
You can opt in to the permission broker to put the grants on a signed app at a fixed path; review its same-user trust trade-off first. After a package or runtime update, run setup --broker again. Alternatively, keep the server in-process and use an official Developer-ID-signed Node at a stable path. Neither approach guarantees that grants survive a change in signing identity or macOS policy. The walkthrough and signing caveats are in docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md.
Available Tools
89 toolsadd-attachmentA
Use when: adding one local file to an exact note without replacing its body. Returns: the new attachment id, byte count, attachment name, and post-write content hash after exact byte verification. Do not use when: reading or exporting an existing attachment. Safety: reads only a regular file in home, temp or /Volumes, refusing hidden paths (~/.ssh, .env) and ~/Library outside iCloud Drive and CloudStorage unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; requires a fresh rich revision, copies at most 64 MiB through a private temporary file, never retries insertion, removes the duplicate copy Notes.app's AppleScript inserts (#321), and verifies existing content plus fetched bytes. On macOS 27 Notes' AppleScript does not list PDF attachments; with Full Disk Access the new attachment is verified through the read-only NoteStore database instead (verifiedBy: database), otherwise the outcome is reported as uncertain. A PDF that Notes shows twice cannot be cleaned up and is reported as an error: delete the extra copy in Notes.app.
Inputs: id (required), path (required), expectedContentHash (required), filename. Returns: ok
add-attachment-from-pasteboardA
Use when: the user copied an image, a PDF, or a file (screenshot, Copy Image, Finder Copy) and wants it attached to an exact note. Returns: the add-attachment result (attachment id, bytes, name, content hash) plus source: what was taken from the pasteboard (kind, type, default filename). Do not use when: the pasteboard holds text (use append-to-note), several copied files (refused; use add-attachment per file), or you have a file path (use add-attachment). Safety: checks the note and revision before reading the pasteboard; reads nothing when macOS would show its paste alert unless allowPasteAlert is true (error pasteboardCode pasteboard_access_denied); reads the pasteboard once and freezes its bytes into a private temporary file before attaching, never writes to the pasteboard, then runs add-attachment's checks: fresh rich revision, at most 64 MiB, no insertion retry, existing content and exact bytes verified. Needs the MCP host to run in the logged-in GUI session.
Inputs: id (required), expectedContentHash (required), filename, allowPasteAlert. Returns: ok
add-native-tagsA
Use when: adding real clickable Apple Notes tags to one exact, freshly read note. Returns: verified native tags, additions, and the post-write content hash. Do not use when: textual #hashtags are sufficient or the note cannot be selected uniquely by its existing title and scope text. Safety: requires exact ID, fresh revision, and a distinctive existing scope phrase; verifies original text, links, and native objects after the Shortcut runs and never retries automatically.
Inputs: id (required), tags (required), scopeText (required), expectedContentHash (required). Returns: ok
analyze-svgARead-only
Use when: checking whether an SVG file can be represented as editable monoline strokes, and what that conversion would approximate or drop. Returns: classification (safe, lossy, unsupported), importable, defaultWriteAllowed, requiredLosses (geometry-approximation, paint-approximation, drop-content), issues with element locations, counts and work budgets, the source SHA-256, and analysisDigest, a SHA-256 over the canonical analysis and normalized drawing. includeDrawing adds the drawing. Do not use when: you want to attach the SVG file itself to a note (add-attachment). Safety: read-only and local. Opens no Notes data and makes no network request. Reads only a regular file in home, temp or /Volumes, refusing hidden paths (~/.ssh, .env) and ~/Library outside iCloud Drive and CloudStorage unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; a file whose root element is not is refused without quoting it. Scripts, event handlers, style elements, animation, DOCTYPE/entities and external resources are refused with svgCode svg_unsafe; malformed files with svg_invalid; oversized work with svg_complexity_limit.
Inputs: path (required), includeDrawing. Returns: classification
append-nativeA
Use when: appending formatted content to a native-object note without replacing its body. Returns: exact-ID preservation and appended-content readback. Do not use when: the existing note can be safely handled by append-to-note or the scope phrase is ambiguous. Safety: requires a fresh revision and unique existing scope phrase of plain words; avoid punctuation, hashtags, and paths because Notes search may not resolve them literally. Supports bounded plaintext, semantic HTML, and Markdown without external fetching or automatic retries. HTML subset: Native append accepts , with href on and a font-size style on as the only attributes; a native table is refused here — use create-table; everything else needs update-note.
Inputs: id (required), content (required), scopeText (required), expectedContentHash (required), +1 more. Returns: ok
append-to-noteA
Use when: adding content to one exact note after reading it by id. Returns: exact id, new content hash, and visible-text readback verification. Do not use when: you only have a title or the note changed since the read. Safety: protected native-object notes use native end-append with scopeText; ordinary notes retain guarded HTML editing. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside the write AppleScript for ordinary notes, and as a separate read just before a native append. Notes.app normalizes HTML, so rich formatting is not claimed as byte-identical. Native-append HTML subset (protected notes only; ordinary notes accept any HTML Notes.app renders): Native append accepts , with href on and a font-size style on as the only attributes; a native table is refused here — use create-table; everything else needs update-note. Native append also requires scopeText, the default blank-line separator and position 'after'.
Inputs: id (required), content (required), expectedContentHash (required), format, +7 more. Returns: id, ok, title, shared, +3 more
batch-delete-notesA
Use when: moving several reviewed notes to Recently Deleted. Returns: per-note success or conflict. Do not use when: deleting a single note. Safety: every entry requires an exact id and the content hash from get-note-content. Any note changed since review is preserved and reported as a conflict. A note already in Recently Deleted is refused, since deleting it there would be permanent.
Inputs: notes (required). Returns: ok, failed, results, succeeded
batch-move-notesA
Use when: moving multiple notes by id into one destination folder. Returns: per-id success/failure counts after destination-folder verification. Do not use when: moving a single note (move-note). Safety: optional folder preconditions apply independently to every note, checked live immediately before its move in the same AppleScript; a scope mismatch leaves that note unchanged and other items continue. Each moved note's actual container ID is compared with the destination folder ID before success is reported. The destination folder must already exist (create-folder); a smart folder is refused for the whole call (code unsupported) before any note moves.
Inputs: ids (required), folder (required), account, ifFolderId, +2 more. Returns: ok, failed, folder, results, +1 more
create-checklist-itemA
Use when: appending one real unchecked Notes checklist item. Returns: the created checklist identity after exact-note readback. Do not use when: plain text is sufficient or more than one item is requested. Safety: preserves existing text, links, native objects, checklist identities, and formatting. If a checklist already exists, requires one contiguous group at the end of the note; otherwise refuses before running the bridge.
Inputs: id (required), text (required), scopeText (required), expectedContentHash (required). Returns: ok
create-checklist-itemsA
Use when: appending several real unchecked Notes checklist items to one note, in order. Returns: each landed item's native identity and text, the final order check, and the new revision; on a stop, which items landed, the item whose outcome is uncertain, and the items not attempted. Do not use when: one item is enough (create-checklist-item) or plain text is sufficient. Safety: runs the verified single-item bridge once per item, chaining each verified revision into the next; requires any existing checklist to be one contiguous group at the end of the note before dispatch. Checks after every item that exactly one new unchecked item with that text and a new identity appeared and that earlier items kept theirs, and stops at the first uncertain result without retrying. Each item takes a few seconds, so a full batch can run about a minute; if the call times out on the client side, read the note before retrying and send only items that are not present.
Inputs: id (required), items (required), scopeText (required), expectedContentHash (required). Returns: ok
create-folderA
Use when: creating a folder, including nested paths like 'Work/Clients' (intermediate folders are created, existing ones skipped). Returns: confirmation. Note: a path segment that names a smart folder is refused (code unsupported) before anything is created; smart folders cannot hold folders. Do not use when: creating a note (create-note).
Inputs: name (required), account. Returns: ok, folder
create-noteA
Use when: the user wants to create a brand-new Apple Note. Returns: the new note's title and id — reuse the id for follow-up reads/edits. Do not use when: editing an existing note (use update-note). Note: the title is prepended as an ; true Apple Notes checklists cannot be created via AppleScript (see the content field). A 'folder' must already exist — create-folder first (it is idempotent), since this tool does not create it. A smart folder is refused (code unsupported); it cannot hold notes.
Inputs: title (required), tags, folder, format, +5 more. Returns: id, ok, title, folder, +6 more
create-note-with-attachmentA
Use when: creating a new note that holds one local file, in one call. Returns: the new note id plus the add-attachment result (attachment id, bytes, name, content hash). Do not use when: the note already exists (add-attachment). Safety: checks the file and filename before creating anything, with the same read scope as add-attachment (home, temp or /Volumes; no hidden paths or ~/Library outside iCloud Drive and CloudStorage), creates the note through Notes.app like create-note, then attaches with the same byte verification as add-attachment. If the attachment step fails before the file is inserted, the error names the new note's id; attach to it with add-attachment instead of creating another note. If insertion started but could not be verified, the outcome is uncertain: read the note with list-attachments before attaching again.
Inputs: path (required), title (required), folder, account, +2 more. Returns: ok
create-paragraph-anchorAIdempotent
Use when: you want a reference to one paragraph that can be found again after the note is edited, for example before sharing a paragraph link that should keep working. Returns: the anchor (anchorId, note identifier, paragraph ID and its status, normalized text, fingerprints of the paragraph and its neighbours, block index, created time), whether it is new, and the paragraph's current direct url when its ID is unique. Do not use when: you only need a link right now (get-paragraph-link). Safety: reads the NoteStore database (Full Disk Access) and never changes Notes. Writes one local file, the anchor registry (APPLE_NOTES_MCP_ANCHOR_FILE, default ~/Library/Application Support/apple-notes-mcp/paragraph-anchors.json, mode 0600), which stores the paragraph's text. Unlike get-paragraph-link, a paragraph with a shared or missing ID can be anchored. Recording the same paragraph again returns the existing anchor.
Inputs: id, match, title, folder, +3 more. Returns: url, anchor, created
create-tableA
Use when: appending one native Notes table from a rectangular array of strings, or an empty table when rows is omitted. Returns: the native table identity and decoded cells after readback. Do not use when: a text table is acceptable or the rows are not rectangular. Safety: never substitutes text; preserves existing rich content and reports failure unless the native table is verified.
Inputs: id (required), scopeText (required), expectedContentHash (required), rows. Returns: ok
delete-folderA
Use when: deleting an existing folder by name or nested path. Returns: confirmation. Do not use when: deleting a note (delete-note). Safety: requires explicit user confirmation. Deletion fails if the folder still contains notes — list or move those notes first.
Inputs: name (required), account. Returns: ok, folder
delete-folder-by-idADestructive
Use when: deleting one exact, empty, ordinary folder by id, with a plan-then-apply handshake. Returns: a plan (status planned, wouldDelete, identity fields, zero counts, revision) or, on apply, status deleted with verified readback. Do not use when: the folder holds notes or subfolders, or you only have a name or path (delete-folder). Safety: requires the exact id plus expectedName, expectedAccountId, and expectedParentId or expectedRoot. Call with dryRun true, then repeat the same guards with dryRun false and expectedRevision. Always refuses Recently Deleted, smart folders, the account's default and other system folders, shared folders, and non-empty folders; there is no override. Not atomic: the guard is a pre-check followed by an AppleScript delete. The Notes.app-visible checks repeat inside the delete script, but folder type is read from the local store just before it. Needs Full Disk Access and fails closed without it.
Inputs: id (required), dryRun (required), expectedName (required), expectedAccountId (required), +3 more. Returns: ok
delete-markdown-templateADestructive
Use when: removing a saved Markdown template the user no longer wants. Returns: the name and the path of the removed file. Do not use when: the template is built in (standard-markdown, obsidian cannot be deleted). Safety: permanently removes one file from the template library; never touches Notes.
Inputs: name (required). Returns: object
delete-noteA
Use when: moving one exact note to Recently Deleted after reading and reviewing it. Returns: confirmation with the exact id. Do not use when: you only have a title or the note changed since review. Safety: requires id and expectedContentHash from get-note-content. The body comparison and delete happen in one AppleScript, so a newer edit is preserved. Refuses a note already in Recently Deleted, where a delete would be permanent. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside that AppleScript too. Copy-then-retire: pass guardNoteId and expectedGuardContentHash (the verified copy's contentHash) to delete only while the copy still has that revision, is unlocked, is outside Recently Deleted, and is not a Quick Note; requireActiveNoteId requires the same of a second note without fingerprinting it. The guard needs Full Disk Access to rule out a Quick Note. The copy's body, lock state, and folder are checked again inside the delete AppleScript, but the pair is not one transaction.
Inputs: id (required), expectedContentHash (required), ifFolderId, guardNoteId, +5 more. Returns: id, ok, title, wasShared, +4 more
doctorA
Use when: diagnosing setup problems (Notes.app automation permission, account state, Full Disk Access) with actionable guidance. Returns: a detailed report plus structured fields, including runtimeOS and the same OS-version-aware features matrix as get-capabilities. Do not use when: you just need a quick pass/fail (health-check). Read-only.
Inputs: no named parameters. Returns: broker, checks, healthy, version, +3 more
export-attachmentsA
Use when: copying every file attachment of one note (or only its lead visual) into a directory on disk. Returns: per attachment its id, kind, exportedTo, and exportedKind: "asset" for the real file, "fallback" for Notes' own full rendering of it (a drawing's PNG or a scan's PDF, named with that format's extension), "preview" when the asset never downloaded and only Notes' rendered thumbnail was available, or null when nothing was on disk; inBody: false marks an attachment no longer shown in the note body. Do not use when: exporting one attachment to an exact path (save-attachment) or reading bytes inline (fetch-attachment). Safety: writes files; exportDir must be absolute and under the home directory, a temp dir, or /Volumes, and not inside the Notes data folder. Existing files are never replaced: name collisions get -2, -3, ... suffixes. Reads NoteStore and the Notes data folder read-only; requires Full Disk Access. Notes.app is not opened.
Inputs: noteId (required), exportDir (required), firstImageOnly. Returns: failed, results, skipped, exported, +4 more
export-notes-htmlA
Use when: exporting one note (by exact id) or a folder's notes as one standalone HTML file rendered from the decoded note body, with semantic tables and images, drawings, scans, audio, files and link cards in body order. Returns: a receipt {format, count, bytes, output} plus embedded or sidecar asset counts, attachment counts and skipped notes. The HTML itself is never returned inline. Do not use when: you want Markdown (export-notes-markdown) or a restorable backup (export-notes-json). A folder document is a presentation format, not something to import back. Safety: read-only against Notes; requires Full Disk Access. outputPath is required and create-only ([output_exists] if it exists). Assets are embedded as data URLs (each up to 10 MiB) unless embedAssets is false, which copies them to a sidecar directory (assetsDir, default .assets) with relative URLs and never replaces existing files. No file: URLs or Notes library paths are written; missing assets show a visible unavailable marker. Drawings: by default every drawing keeps Notes' PNG. With vectorDrawings true, classic PencilKit drawings are rendered as SVG through the public native helper (setup --public-helper); Paper drawings keep the PNG. A drawing that cannot be decoded falls back to the PNG and is counted in vectorDrawings.fallbackReasons; it never fails the export.
Inputs: outputPath (required), id, limit, folder, +4 more. Returns: bytes, count, stats, assets, +6 more
export-notes-jsonA
Use when: exporting notes as structured JSON for backup, migration, or bulk processing. Returns: one page of notes (default 50) with metadata, HTML content, and plaintext, grouped by account and folder, plus page info; while page.hasMore is true, call again with offset set to page.nextOffset. Do not use when: you need one note (get-note-content) or only titles and ids (list-notes). Note: a page stops early to stay under the response size limit (APPLE_NOTES_MCP_EXPORT_MAX_BYTES, default 8 MB), and a note too large on its own comes back with strippedImages or contentOmitted set. Read-only.
Inputs: limit, offset, modifiedSince. Returns: page, summary, version, accounts, +1 more
export-notes-markdownA
Use when: exporting one note (by exact id) or a folder's notes as one Markdown document rendered from the decoded note body: headings, bulleted/dashed/numbered lists with indent, checklists with state, block quotes, monospaced blocks, bold/italic/strikethrough/underline/highlight, links, tables, and attachments in body order. Returns: the Markdown inline (capped by APPLE_NOTES_MCP_EXPORT_MAX_BYTES), or with outputPath a receipt {format, count, bytes, output}; plus attachment counts and skipped notes (for example password-protected ones). Do not use when: you need the legacy HTML-converted Markdown of one note (get-note-markdown) or a restorable backup (export-notes-json). A folder document separates notes with '---' and is a presentation format, not something to import back. Safety: read-only against Notes; requires Full Disk Access. outputPath is create-only (an existing file is refused with [output_exists]); assetsDir copies attachment files without replacing existing ones (collisions get -2, -3 suffixes). Without assetsDir, attachments render as labeled placeholders. Templates: pass template ('standard-markdown' reproduces the default output; 'obsidian' adds YAML front matter and copies attachments beside outputPath) or templateFile (a JSON template; hidden paths and ~/Library outside iCloud Drive and CloudStorage are refused unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1) to control how every block, inline style, attachment, per-note header/footer and separator renders. Templated receipts add template, warnings (e.g. missing_asset) and assetFiles; an invalid template is refused with [invalid-template] and every problem's JSON path.
Inputs: id, wrap, limit, folder, +5 more. Returns: bytes, count, stats, assets, +9 more
export-paper-imageA
Use when: saving Notes' rendered image of a Paper drawing or classic drawing to a file. Returns: savedPath, format (png or jpeg), width, height, bytes, source (fallback: Notes' full rendering; preview: its largest thumbnail, used only when no full rendering exists), and the drawing's attachmentId and handwritingSummary. Do not use when: the attachment is a photo or file (save-attachment or export-attachments). Safety: writes one new file; savePath must be absolute, under the home directory, a temp dir, or /Volumes, outside the Notes data folder, must not exist yet, and must end in the image's extension (.png, or .jpg/.jpeg). The image header is validated before and after copying. Pass attachmentId (from list-paper-attachments) when the note has more than one drawing. Requires Full Disk Access; Notes.app is not opened.
Inputs: noteId (required), savePath (required), attachmentId. Returns: kind, bytes, stale, width, +7 more
fetch-attachmentA
Use when: retrieving one note attachment's bytes inline as base64 (no file written). Returns: name, content type, byte count, and base64 data. Do not use when: you want it saved to disk (save-attachment). Note: get the ids from list-attachments first.
Inputs: noteId (required), attachmentId (required). Returns: name, bytes, base64, contentType
get-audio-transcriptsARead-only
Use when: reading the transcript (and summary, if any) that Notes already computed for the audio recordings in one note, by id. Returns: one entry per top-level audio attachment in body order, with attachmentId, durationSeconds, status (ok, none when no transcript is stored, or undecodable with a reason), joined transcript text, wordCount, speakers and summary when stored, and optional word-level segments. Do not use when: you need the audio file itself (save-attachment) or the note body (get-note-content). This tool does not transcribe; it only reads what Notes stored. Safety: read-only; requires Full Disk Access and reads the NoteStore database. Password-protected notes are refused. Large responses drop segments first, then shorten text, to stay under APPLE_NOTES_MCP_EXPORT_MAX_BYTES.
Inputs: id (required), maxSegments, includeSegments. Returns: id, bodyOrder, truncated, attachments
get-capabilitiesARead-only
Use when: checking native background-edit support or which feature groups this Mac supports before calling a tool. Returns: bridge installation, implementation, verification, availability, and specific limitations per operation; plus runtimeOS and an OS-version-aware features matrix (available, osSupported, minimumMacOSVersion, requirements, missing, unverified, machine reason code) per feature group. Do not use when: checking only the Native Tags bridge (native-tags-status). Safety: read-only; does not open Notes or run a mutation.
Inputs: no named parameters. Returns: ok
get-checklist-stateA
Use when: reading the checked/unchecked state of a note's checklist items, by id. Returns: each item's text and done state plus checked/total counts. Do not use when: you only have a title (get the id via search-notes first) or want the full body text (get-note-content). Note: requires Full Disk Access; reads the NoteStore database directly.
Inputs: id (required). Returns: items, total, checked
get-default-locationA
Use when: discovering where Notes.app will create new notes by default. Returns: default account and default folder metadata. Do not use when: you already have an explicit account/folder target.
Inputs: no named parameters. Returns: folder, account
get-folder-by-idARead-only
Use when: reading the exact folder name, parent, and account before a guarded rename or delete-folder-by-id. Returns: folder id, current name, parent id, accountId, and isRoot (true when the folder sits at the account root; pass expectedRoot: true to delete-folder-by-id then, otherwise parentId as expectedParentId). Do not use when: listing folders by path (list-folders). Safety: read-only.
Inputs: id (required). Returns: ok
get-native-objectsARead-only
Use when: inspecting native objects, checklist identities, or tables in one exact note. Returns: native object IDs and ranges, checklist IDs and state, actual native tags, decoded tables, and the current rich content hash. Do not use when: you only need the note body (get-note-content) or AppleScript attachment metadata (list-attachments). Safety: read-only; requires Full Disk Access and reports incomplete table metadata instead of guessing.
Inputs: id (required). Returns: id, tables, objects, nativeTags, +3 more
get-note-blocksARead-only
Use when: you need a note's structure, not just its text: paragraph styles (title, heading, subheading, body, monospaced, bulleted/dashed/numbered list, checklist with done state), indent, alignment, block quote, inline formatting (bold, italic, underline, strikethrough, superscript, subscript, color, highlight, links) and attachment positions, by exact id. Returns: one page of blocks in body order (default 500, stopped early under APPLE_NOTES_MCP_BLOCKS_MAX_BYTES, default 4 MB), whole-note summary counts, undecodedFields, and page info; while page.hasMore is true, call again with offset set to page.nextOffset. Offsets and lengths count UTF-16 code units. Do not use when: you want the editable HTML body (get-note-content) or Markdown (get-note-markdown). Safety: read-only; decodes the NoteStore database directly and requires Full Disk Access. Password-protected notes are refused. Link URLs are returned as stored; linkSafe is false for schemes other than http(s), notes, applenotes and mailto.
Inputs: id (required), limit, offset. Returns: id, page, blocks, summary, +2 more
get-note-by-idA
Use when: you have a note id and need its metadata only. Returns: id, title, created, modified, shared, passwordProtected. Do not use when: you need the body text (get-note-content) or only have a title (get-note-details).
Inputs: id (required). Returns: id, title, shared, created, +5 more
get-note-contentA
Use when: reading the full body text of one known note, by id (preferred) or title. Returns: the exact note id, content, contentHash revision token, parsed hashtags, nativeTags, restored links, richContentComplete/writable, and strippedImages/truncated when the body was capped. Read the warning when writable is false. Do not use when: you only need metadata (get-note-details) or Markdown with checklist state (get-note-markdown). Note: password-protected notes must be unlocked in Notes.app first. Safety: inline images larger than APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES (default 256 KB) are replaced with '[inline image omitted: ...]' text placeholders, so the returned body is lossy whenever truncated is true. For an attachment-bearing note, update-note refuses a full-body replacement; append-to-note with scopeText appends natively at the end and leaves attachments in place; add-attachment adds a file; move-note and delete-note work as usual. Make any other edit in Notes.app. Notes.app returns images inside the body as base64, so a note with a very large image can time out; the error then names the cause, and a larger timeoutSeconds gives the read more time.
Inputs: id, title, account, timeoutSeconds. Returns: id, links, title, content, +11 more
get-note-detailsA
Use when: you have a note title (not an id) and need its metadata. Returns: id, title, created, modified, shared, passwordProtected, account. Do not use when: you have an id (get-note-by-id) or need the body text (get-note-content). Use the returned id for reliable follow-up operations.
Inputs: title (required), account. Returns: id, title, shared, account, +6 more
get-note-drawingsA
Use when: reading the strokes of a note's classic PencilKit drawings (com.apple.drawing / com.apple.drawing.2 attachments), by note id, as JSON or SVG.
Returns: per drawing its attachment id, status (ok/error with a code), stroke count, bounds, and strokes (ink type, sRGB color, width, points) and/or a standalone SVG document; overall status ok/partial/error/none.
Do not use when: the drawing is a modern Paper sketch (com.apple.paper is not decoded here) or you want the attachment file itself (save-attachment).
Note: read-only. Needs Full Disk Access and the public native helper built once with apple-notes-mcp setup --public-helper (compiled locally with PencilKit; no Notes writes).
Inputs: id (required), format, includePoints. Returns: id, status, drawings, svgOmitted, +2 more
get-note-linkA
Use when: you need the notes:// deep-link URL for a note so it can be stored in a Reminders task, shared, or opened directly. Returns: a notes://showNote?identifier= URL that opens the note in Notes.app on iOS and macOS. Do not use when: you only need the note's CoreData id (get-note-by-id) or want to reveal the note on screen (show-note). Note: the primary path reads the note's identifier from the Notes database, so it needs Full Disk Access for the responsible process (run doctor to identify it); macOS 12-15 can fall back to the AppleScript 'note link' property, which macOS 26+ no longer exposes. Password-protected notes cannot be linked.
Inputs: id, title, account. Returns: id, url, title
get-note-markdownA
Use when: reading a note as Markdown, with checklist items annotated [x]/[ ] when Full Disk Access is granted. Returns: the note's Markdown. Do not use when: you need the raw HTML/plaintext body (get-note-content) or only metadata (get-note-details). Note: falls back to plain lists (no checkmarks) without Full Disk Access.
Inputs: id, title, account. Returns: markdown
get-note-metadataA
[BETA] Use when: reading note metadata AppleScript cannot expose — pinned state, checklist flags, trash/recovery state, preview snippet, password hint — by id. Returns: a metadata object; fields vary by macOS version and are omitted when unavailable. Do not use when: you need the body (get-note-content) or per-item checklist state (get-checklist-state). Note: reads the NoteStore SQLite database read-only and requires Full Disk Access. BETA — the database schema changes between macOS releases, so some fields may be absent. Works on trashed notes that AppleScript can no longer resolve.
Inputs: id (required). Returns: pinned, snippet, hasChecklist, passwordHint, +5 more
get-note-plaintextA
Use when: reading one note's body as plain text with no HTML, by id (preferred) or title. Returns: the note's plaintext exactly as Notes exposes it. Do not use when: you need the HTML body (get-note-content) or Markdown with checklist state (get-note-markdown). Note: this reads the note's native plaintext property, so it skips the HTML-to-text conversion; password-protected notes must be unlocked in Notes.app first.
Inputs: id, title, account. Returns: title, plaintext
get-notes-statsA
Use when: summarizing the library — total notes, per-account/folder counts, and recent activity. Returns: aggregate statistics; flags partial coverage when some scopes were unreadable. Do not use when: you need individual notes (list-notes/search-notes). Read-only.
Inputs: no named parameters. Returns: accounts, coverage, totalNotes, recentlyModified
get-note-structureARead-only
Use when: you want one read-only overview of a note by exact id: decoded text, a block summary, every link with its kind (inline hyperlink, rich link card, native note link, native section link, with target note and paragraph UUIDs when the URL carries them), native tags, attachments with the same kind, body order and preview list-attachments reports (gallery and recording children nested), and metadata: deepLink, isShared, isLocked, isPinned, inRecentlyDeleted, lastViewed, wordCount, charCount, attachmentCount, checklistTotal/checklistDone, hasDrawing, firstImage. Returns: the structure object. For a password-protected note, metadata and attachment rows only (bodyDecoded false, body-derived fields null). lastViewed is null with lastViewedStatus never-viewed, not-recorded, malformed or unsupported when Notes holds no real view date. Do not use when: you need per-paragraph formatting (get-note-blocks) or the editable HTML body (get-note-content). Safety: read-only; reads the NoteStore database and the Notes data folder directly and requires Full Disk Access. Link URLs are returned as stored; check linkSafe before emitting them into HTML.
Inputs: id (required), includeText. Returns: id, tags, text, links, +27 more
get-note-tablesARead-only
Use when: reading the native tables in one exact note as data or Markdown. Returns: one page of whole tables in body order as GitHub-flavored Markdown (first row as header) plus JSON rows with stable row/column ids, tableCellsComplete, and page info. Default limit 500 and maxBytes 4 MiB; while page.hasMore is true, call again with offset set to page.nextOffset. The byte budget includes the full serialized tool response, including repeated Markdown. Do not use when: you need the whole note (get-note-markdown / get-note-content) or native object ranges and checklist ids (get-native-objects). Safety: read-only; reads the NoteStore database and requires Full Disk Access. A cell that cannot be decoded is null in rows, listed in incompleteCells, and marked [undecoded cell] in Markdown; it is never guessed. A table larger than an empty page returns metadata only with complete: false and contentOmitted: true; increase maxBytes (max 8 MiB) or export the note to a file. Cell text only: links and styling inside cells are not rendered.
Inputs: id (required), limit, offset, maxBytes. Returns: id, page, tables, markdown, +2 more
get-paragraph-anchorARead-only
Use when: inspecting one recorded anchor as stored. Returns: the stored anchor record. Do not use when: you need the paragraph's current location or link (resolve-paragraph-anchor). Safety: read-only; reads only the local anchor registry, never Notes.
Inputs: anchorId (required). Returns: anchor
get-paragraph-linkAIdempotent
Use when: you need a link that opens Notes at one paragraph (for example a heading) of a note. Returns: a direct applenotes://showNote?identifier=¶graphID= url and the selected paragraph, only when that paragraph's stored ID is present and appears in no other paragraph of the note. Otherwise an error whose structuredContent.reason says why: paragraph-id-shared, paragraph-id-missing, no-match, ambiguous-paragraph (pass occurrence or a longer snippet), occurrence-out-of-range, ambiguous-note, encrypted. Do not use when: you want a link to the whole note (get-note-link). Safety: never changes Notes or a paragraph ID, so a paragraph without a unique ID cannot be linked. Requires Full Disk Access. Without recordAnchor it writes nothing; with recordAnchor it also writes the local anchor registry file (mode 0600), so the tool is not marked read-only. A later edit in Notes can replace the ID and break the link.
Inputs: id, match, title, folder, +4 more. Returns: id, url, anchorId, paragraph, +1 more
get-selected-notesA
Use when: the user asks what note(s) are currently selected in Notes.app. Returns: selected note metadata with ids for follow-up operations. Do not use when: searching all notes (search-notes) or listing a folder (list-notes). Note: reads Notes.app UI selection; it may be empty if Notes is closed or no note is selected.
Inputs: no named parameters. Returns: count, notes
get-sync-statusA
Use when: checking whether iCloud sync is in progress before trusting read results. Returns: sync active/idle, pending upload count, and seconds since last change. Do not use when: you need note data — this is a read-only diagnostics tool.
Inputs: no named parameters. Returns: error, warning, syncDetected, pendingUpload, +2 more
health-checkA
Use when: a quick check that Notes.app is reachable and (optionally) Full Disk Access is granted for checklist features. Returns: pass/fail per check. Do not use when: you need detailed, actionable setup diagnostics (use doctor). Read-only.
Inputs: no named parameters. Returns: checks, healthy, fullDiskAccess
insert-linkA
Use when: adding one web, mail or Notes link to an exact note, either as the raw URL (mode 'raw') or as label text that links to the URL (mode 'hyperlink'). Returns: exact id, the route used, whether Notes stored a link on the inserted text, the stored destination read back from the note, and the new content hash. Do not use when: linking to another note by id (insert-note-link fetches its real deep link), or you want a rich URL preview card (not available: no public automation route creates one). Safety: same guards as append-to-note (fresh expectedContentHash, attachment block, existing links must survive). Notes with native objects use native end-append and need scopeText; there only position 'end' with a blank line is supported. The link is placed in its own paragraph at the end or directly after the title; placing it inside an existing paragraph is not supported.
Inputs: id (required), url (required), expectedContentHash (required), mode, +5 more. Returns: id, ok, url, mode, +7 more
insert-note-linkA
Use when: appending a real Notes deep link to a native-object note. Returns: verified link destination and label after exact-note readback. Do not use when: only retrieving a deep link (get-note-link). Safety: retrieves the real target URL, preserves existing rich content, and creates a static label rather than a dynamic-title object.
Inputs: id (required), scopeText (required), linkedNoteId (required), expectedContentHash (required), +1 more. Returns: ok
list-accountsA
Use when: discovering which Notes accounts exist (iCloud, Gmail, Exchange, etc.) before targeting one. Returns: account names. Do not use when: you already know the account, or are working by note id (ids are account-independent).
Inputs: no named parameters. Returns: count, accounts
list-attachmentsA
Use when: listing the attachments of one note, by id (preferred) or title. With includePaths, also where each attachment's files are on disk; with firstImage, only the note's lead visual. Returns: each attachment's name, content type, and id (use with save-attachment/fetch-attachment). includePaths adds identifier, uti, kind, bodyIndex, assetPaths (the attachment's own files), previewPath (Notes' largest rendered thumbnail, always an image file), and paths. firstImage returns {firstImage, orderSource}: the first image in body order even when its asset has not downloaded (path null), else the first scan or drawing, else null. Do not use when: you want the attachment bytes (fetch-attachment) or files on disk (save-attachment, export-attachments). Note: includePaths and firstImage need the note id and Full Disk Access; they read NoteStore and the Notes data folder read-only. Treat the returned paths as local data: copy files out with export-attachments rather than handing raw paths on.
Inputs: id, title, account, firstImage, +1 more. Returns: count, firstImage, pathsError, attachments, +1 more
list-foldersA
Use when: listing all folders, with full nested paths, for an account. Returns: folder names/paths. Do not use when: listing notes (list-notes). Note: smart folders are listed too (AppleScript lists them like ordinary folders) and are marked smartFolder: true when Full Disk Access lets the server read the Notes database; they cannot hold notes. Warns if iCloud sync is active.
Inputs: account. Returns: count, folders
list-folder-treeARead-only
Use when: you need the folder hierarchy with note counts, per account, in one read. Returns: accounts, each with nested folders (id, identifier, name, path, kind folder/smart/trash, noteCount direct, totalNoteCount including subfolders, children) and the account's noteCount. Do not use when: you only need folder paths (list-folders) or notes (list-notes, list-recent-notes). Note: read-only NoteStore access; requires Full Disk Access. includeDeleted adds folders awaiting deletion (markedForDeletion) and folders whose account is gone.
Inputs: account, includeDeleted. Returns: accounts, folderCount
list-markdown-templatesARead-only
Use when: choosing a Markdown export template, or checking which saved templates exist. Returns: the built-in templates, the saved templates (name, display name, description, size, modified date), the library directory, and how many unusable files were skipped. Do not use when: you need a template's rules (show-markdown-template). Safety: read-only; never opens Notes.
Inputs: no named parameters. Returns: object
list-native-tagsARead-only
Use when: listing actual native Notes tags, either in one folder (pass folder) or as an account-wide inventory with note counts (omit folder; account then optionally narrows it, else every account is counted). Returns: folder mode maps each tag to exact matching note IDs, plus completeness and per-note errors; inventory mode returns each tag with noteCount and per-account counts, sorted by count. Do not use when: searching textual #hashtags in note bodies (search-notes). Safety: read-only; requires Full Disk Access and discloses partial reads.
Inputs: folder, account. Returns: tags, errors, account, complete, +3 more
list-note-linksARead-only
Use when: you need the links in one note (by exact id) or across a folder (with its subfolders by default), an account, or the whole library, with each link's kind: inline (a hyperlink on text), card (a rich link preview), note (a native link chip to another note) or section (a native link chip to a heading or paragraph). Returns: one page of links, newest-modified note first, each with its URL, label, linkSafe, target note and paragraph UUIDs for Notes deep links, card previewPath, and its source noteId, note title, folder path (as list-folders prints it) and account; plus per-kind counts and page info (call again with offset set to page.nextOffset while page.hasMore is true). Do not use when: you want one note's full structure (get-note-structure) or its formatting (get-note-blocks). Safety: read-only; reads the NoteStore database directly and requires Full Disk Access. Inline links need every body in scope decoded, so they are included only with includeInline (default true for id, false for a folder, account or library scan). Recently Deleted is skipped unless the note is requested by id.
Inputs: id, kinds, limit, folder, +4 more. Returns: page, links, scope, counts, +3 more
list-note-paragraphsAIdempotent
Use when: you need a note's paragraphs with their style and stored paragraph ID, for example to choose one to link to. Returns: one page of non-empty paragraphs in body order, each with blockIndex (as in get-note-blocks), text, style, paragraphId, paragraphIdStatus (unique, shared, missing) and, only when unique, a direct applenotes:// url that opens that paragraph; plus counts per status and page info (call again with offset set to page.nextOffset while page.hasMore is true). Do not use when: you need inline formatting (get-note-blocks). Safety: never changes Notes; reads the NoteStore database directly and requires Full Disk Access. Without recordAnchors it writes nothing; with recordAnchors it also writes the local anchor registry file (mode 0600), so the tool is not marked read-only. Paragraph IDs repeat often (Notes copies them when a paragraph is split), so shared IDs get no url. Title lookups ignore Recently Deleted. Password-protected notes are refused.
Inputs: id, limit, title, folder, +3 more. Returns: id, page, counts, identifier, +2 more
list-notesA
Use when: enumerating notes in an account or folder; supports modifiedSince and limit for large collections. Returns: each note's title and id (ids are safe to use for follow-up reads/edits even when titles are duplicated — see search-notes for keyword-based lookup instead). Do not use when: you need content (get-note-content), or date order, incremental sync cursors, or word counts (list-recent-notes). Note: excludes notes in Recently Deleted unless includeRecentlyDeleted is true, which flags them inRecentlyDeleted. Warns if iCloud sync is active and results may be partial.
Inputs: limit, folder, account, modifiedSince, +1 more. Returns: count, notes, excludedRecentlyDeleted
list-paper-attachmentsARead-only
Use when: finding the Paper drawings (com.apple.paper) and classic drawings in one note, and whether Notes has a rendered image of each. Returns: per drawing its attachmentId, identifier, uti, kind (paper or drawing), handwritingSummary (Notes' recognized handwriting text, or null), bundlePresent, fallbackImagePath, previewPath, and raster {source, format, width, height} (the validated image export-paper-image would copy, or null). Do not use when: you want every attachment (list-attachments) or the image file itself (export-paper-image). Safety: read-only; reads NoteStore and the Notes data folder without opening Notes.app and requires Full Disk Access. Strokes are not decoded: Notes' Paper bundle has no public reader, so the raster is Notes' own rendering.
Inputs: id (required). Returns: count, attachments
list-paragraph-anchorsARead-only
Use when: you need the recorded paragraph anchors, all of them or those of one note. Returns: one page of anchors in the order recorded (anchorId, noteIdentifier, paragraphId, text, blockIndex, created time), the total, and the registry path. Do not use when: you need an anchor's current location (resolve-paragraph-anchor). Safety: read-only; reads only the local anchor registry, never Notes.
Inputs: limit, offset, noteIdentifier. Returns: page, total, anchors, registry
list-recent-notesARead-only
Use when: syncing notes incrementally from the Notes database, or listing notes by modification date. Pass since (a modifiedCheckpoint cursor or ISO 8601) to page through changes oldest first; omit it for the newest notes first. Returns: metadata rows (id, identifier, title, folder path, account, created, modified, modifiedCheckpoint, pinned, locked, inRecentlyDeleted, markedForDeletion), plus optional wordCount/charCount (wordCounts) and bodyPreview/textDecoded (bodyPreview); order, saturated, and nextSince drive sync. Do not use when: you need full content (get-note-content) or keyword search (search-notes). Note: read-only NoteStore access; requires Full Disk Access. Sync rule: store nextSince and pass it as the next since; every since call advances, and saturated true means more changes may follow, so call again. For a first full sync start from since 1970-01-01. The cursor can miss edits iCloud delivers later with an older timestamp from another device, and deletions are invisible unless includeDeleted is true.
Inputs: limit, since, folder, account, +3 more. Returns: count, limit, notes, order, +4 more
list-smart-foldersARead-only
Use when: listing Smart Folders and the rules that define them. Returns: each smart folder's name, ids, account, and parent, its rules decoded as match ("all"/"any"/"none") plus filters (each with a readable description), the stored query with the outer deleted wrapper removed, and the raw stored query JSON. With includeMatchingNotes, also the notes Notes.app currently shows in each folder. Do not use when: listing all folders with paths (list-folders, which lists smart folders alongside ordinary ones) or searching notes (search-notes). Safety: read-only; reads the NoteStore database and requires Full Disk Access. includeMatchingNotes asks Notes.app (Automation permission) for each folder's current contents rather than re-evaluating the rules. Unrecognized rules are kept as "unknown" filters and set fullyDecoded false.
Inputs: limit, includeMatchingNotes. Returns: count, fullyDecoded, smartFolders
list-special-notesARead-only
Use when: listing pinned notes, Quick Notes, notes in Recently Deleted, or password-protected (locked) notes — sets AppleScript cannot enumerate. Returns: metadata rows newest first (id, identifier, title, folder path, account, created, modified, and pinned/locked/quickNote/inRecentlyDeleted flags; snippet except for locked notes; passwordHint for kind locked), plus total before limit. supported is false when this macOS version's database cannot answer that kind. Do not use when: you need note content (get-note-content) or a folder listing (list-notes). Note: reads the NoteStore SQLite database read-only and requires Full Disk Access. Pinned and Quick Notes listings cover notes in folders outside Recently Deleted; the locked listing includes trashed and folderless locked notes, flagged as such. Never reads locked note bodies.
Inputs: kind (required), limit, account. Returns: kind, count, limit, notes, +3 more
move-noteA
Use when: moving one exact note to a different folder by id. Returns: confirmation and exact-ID readback. Do not use when: you only have a title or want to move many notes (batch-move-notes). Note: Notes.app's native move preserves the note id, creation date, body, and attachments. The destination folder must already exist and cannot be a smart folder (refused with code unsupported before the move). Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds (which also covers the destination) are re-checked inside the move AppleScript.
Inputs: id (required), folder (required), account, ifFolderId, +3 more. Returns: id, ok, title, folder, +1 more
native-checklist-stateARead-only
Use when: reading a note's exact native checklist todo identifiers and done state, including ambiguous style runs. Returns: identifier, revision change token, items in first native-style occurrence order, total, checked, and syncHostRunning. Each item has todoIdentifier (32 lowercase hex digits), uuid, index, text and done; line and styled offsets use UTF-16. contiguous=false means the styled envelope includes gaps, consistent=false means runs disagree on done, and spansLines=true means the identity spans multiple lines. Do not use when: reading ordinary checkbox-like text (get-note-content) or changing checklist items. Flags describe native identity ambiguity; text is the first visible styled character's line. Safety: read-only; requires APPLE_NOTES_MCP_ENABLE_PRIVATE=1, Full Disk Access, and a current built helper. Locked or unavailable native bodies are refused. The helper has no write action.
Inputs: id, identifier. Returns: ok
native-helper-statusARead-only
Use when: checking whether the opt-in, read-only native private helper is enabled, built, current, and working on this macOS before calling native-note-state or native-checklist-state. Returns: enabled flag, installation state (path, manifest, stale/modified checks), the live probe (macOS and Notes versions, framework, store access), and per-feature availability with a machine reason. Do not use when: checking the Shortcuts bridges (native-tags-status, get-capabilities). Safety: read-only. The helper is read-only by design (write support was deliberately deferred by the maintainer); the probe opens the Notes store read-only and only when the helper is enabled and installed.
Inputs: no named parameters. Returns: ok
native-note-stateARead-only
Use when: you need a note's native title, modification date, folder identifier, lock/trash/shared/editable flags, or iCloud upload state as Notes' own data model reports them.
Returns: identifier, title, modificationDate, folderIdentifier, lock/trash/shared/editable flags, revision (an opaque change token; compare two reads to detect a change), and cloudSync versions.
Do not use when: reading note content (get-note-content, get-note-markdown).
Safety: read-only; the helper opens the store with Core Data's read-only option and has no write action. Requires APPLE_NOTES_MCP_ENABLE_PRIVATE=1 and a built helper.
Inputs: id, identifier. Returns: ok
native-tags-statusA
Use when: checking whether the Native Tags Shortcut is installed before a tag write. Returns: the configured Shortcut name, unique installed identifier, and installed state. Do not use when: listing tags on notes (list-native-tags). Safety: read-only; installation does not by itself prove Notes permission or a successful live mutation.
Inputs: no named parameters. Returns: ok
prune-paragraph-anchorsADestructive
Use when: cleaning up anchors that no longer resolve, or removing specific anchors. Returns: the stale anchors found (anchorId, status, message), how many were examined, and the ids removed (none on a dry run). Do not use when: an anchor is only ambiguous or needs reminting; it still points at something. Safety: dryRun defaults to true, so nothing is removed until you call again with dryRun false. Removes entries from the local anchor registry only; never changes Notes. Without anchorIds it resolves every anchor in scope (Full Disk Access) and treats not-found and note-not-found as stale unless statuses says otherwise. A note in Recently Deleted gives note-deleted, which is not pruned by default because the note can be restored.
Inputs: dryRun, statuses, anchorIds, noteIdentifier. Returns: stale, dryRun, removed, examined
query-notesARead-only
Use when: finding notes with a boolean expression over text and metadata — e.g. folder:Work has:checklist -checklist:done, (title:invoice OR tag:finance) modified:>=2026-07-01, pinned words:>250. Reads the Notes database directly, so it is fast and can match title OR body in one call.
Syntax: bare words and "quoted phrases" match title or body (case-insensitive substring); fields title:, body:, text:, folder:, account:, tag: (values may be quoted, e.g. folder:"Work Projects"); facets has:link|attachment|checklist|drawing|image|video|audio|pdf|table|scan|url|map|tag (has:url is a link preview card, has:map a map); checklist:open|done; flags pinned, locked, shared, quicknote (or is:pinned); quote a flag word such as "quicknote" to search it as text; words:>250 and created:/modified: with =, >, >=, <, <= and YYYY-MM-DD local dates. AND is implicit; OR, NOT, leading -, and parentheses are supported; operators are case-insensitive and a quoted "and" searches the literal word.
Returns: matching notes (most recently modified first) with id, title, folder, account, modified date, snippet, and matchedIn (where the positive text terms occur: title, body, or both; absent when the body is unreadable or the query has no text term), plus scan/match counts; includeWordCount adds wordCount. Ids work with get-note-content and every other id-based tool.
Do not use when: Full Disk Access is unavailable (use search-notes). Scans the most recent scanLimit notes (default 500); raise it for older notes.
Safety: read-only; never writes the database. Excludes Recently Deleted and folderless notes unless includeDeleted is true. Locked notes match on title and metadata only; body predicates (including negated ones such as -body:x) never match them.
Inputs: query (required), limit, scanLimit, includeDeleted, +1 more. Returns: count, limit, notes, matched, +6 more
remove-native-tagsA
Use when: removing specified native tags from one exact note. Returns: verified remaining tags and new revision. Do not use when: deleting a global tag definition or changing Smart Folder rules. Safety: preserves unrelated tags and native objects and never retries an uncertain mutation.
Inputs: id (required), tags (required), scopeText (required), expectedContentHash (required). Returns: ok
rename-folderA
Use when: renaming one previously read folder in place. Returns: the unchanged folder id, new name, and parent id after readback. Do not use when: creating, moving, or deleting a folder. Safety: requires the expected current name and parent; refuses stale metadata and sibling conflicts.
Inputs: id (required), newName (required), expectedName (required), expectedParentId (required). Returns: ok
replace-native-tagA
Use when: replacing one native tag across an explicit list of freshly read notes. Returns: per-note results and remaining work after any failure. Do not use when: renaming global tag definitions or Smart Folder rules. Safety: adds and verifies the new tag before removing the old one and stops on the first uncertain result.
Inputs: notes (required), newTag (required), oldTag (required). Returns: ok
resolve-paragraph-anchorA
Use when: you have an anchorId and need the paragraph's current link, or want to check that an anchored paragraph still exists after edits. Returns: status (resolved, needs-reminting, ambiguous, low-confidence, not-found, note-not-found, note-deleted, note-unreadable), method (paragraph-id, exact-text, text-and-neighbours), confidence from 0 to 1, the matched block (blockIndex, text, paragraphId, paragraphIdStatus) and what changed. url is present only when status is resolved. Do not use when: you have no anchor yet (create-paragraph-anchor, or get-paragraph-link with recordAnchor). Safety: reads the NoteStore database (Full Disk Access); never changes Notes. Fails closed: equally good candidates give ambiguous and no url. needs-reminting means the paragraph was found but its stored ID is shared or missing, so no safe link exists for it; this server cannot give it a new ID. refresh rewrites the stored anchor (local registry only) after a match with confidence 0.8 or more.
Inputs: anchorId (required), refresh, minConfidence. Returns: url, match, method, noteId, +10 more
save-attachmentA
Use when: writing one note attachment to a file on disk. Returns: the saved path. Do not use when: you want the bytes in-memory as base64 (fetch-attachment). Safety: writes a file; savePath must be absolute and under the home directory, a temp dir, or /Volumes, and not inside the Notes data folder. Get the ids from list-attachments first.
Inputs: noteId (required), savePath (required), attachmentId (required). Returns: name, savedPath, contentType
save-markdown-templateA
Use when: storing a template so export-notes-markdown can use it by name. Returns: name, path, bytes and whether an existing template was replaced. Do not use when: exporting once (pass templateFile to export-notes-markdown instead). Safety: writes one file in the template library only (APPLE_NOTES_MCP_TEMPLATE_DIR, default ~/Library/Application Support/apple-notes-mcp/templates, mode 0600). Validates first; an invalid template is refused with every JSON path. Create-only: an existing name is refused with [template-exists] unless force is true. Built-in names are reserved. templateFile follows the same read scope as validate-markdown-template.
Inputs: name (required), force, template, templateFile. Returns: object
search-notesA
Use when: finding notes by a keyword in the title (or body with searchContent=true) and you need their ids.
Returns: matching notes with title, folder, and id; source says whether a body search read the Notes database or fell back to AppleScript. When the note text came from the database, each result has matchedIn (title, body, or both); includeWordCount adds wordCount.
Do not use when: you already have a note id (use get-note-content), want every note (use list-notes), or need boolean or metadata filters (use query-notes).
Prefer this first to obtain ids for subsequent read/update/delete/move calls.
Note: with Full Disk Access, body search reads the Notes database (fast; the most recent 5000 notes, Recently Deleted excluded); without it, it falls back to AppleScript, which scans every body and can time out on broad terms.
Inputs: query (required), limit, folder, account, +3 more. Returns: count, notes, source, scanTruncated, +1 more
set-note-pinnedA
Use when: setting one exact note's pinned state. Returns: the verified requested state and new revision. Do not use when: only reading pinned metadata (get-note-metadata). Safety: checks expectedPinned and a fresh content revision before changing metadata; never rewrites the body.
Inputs: id (required), pinned (required), scopeText (required), expectedPinned (required), +1 more. Returns: ok
show-accountA
Use when: the user wants to reveal a known account in Notes.app by id. Returns: confirmation that Notes.app accepted the show command. Do not use when: you only need the account list (list-accounts). Note: this opens or focuses the Notes UI. Get the id from list-accounts.
Inputs: id (required), separately. Returns: id, separately
show-attachmentA
Use when: the user wants to reveal one note attachment in Notes.app. Returns: confirmation that Notes.app revealed the attachment. Do not use when: you want the bytes (fetch-attachment) or a file on disk (save-attachment). Note: this opens or focuses the Notes UI. Get the ids from list-attachments first.
Inputs: noteId (required), attachmentId (required), separately. Returns: noteId, separately, attachmentId
show-folderA
Use when: the user wants to reveal a known folder in Notes.app by id. Returns: confirmation that Notes.app accepted the show command. Do not use when: you only need the folder list (list-folders). Note: this opens or focuses the Notes UI. Get the id from list-folders.
Inputs: id (required), separately. Returns: id, separately
show-markdown-templateARead-only
Use when: reading a built-in or saved template, to copy it as the start of a new one or to see what an export will do. Returns: the template in its portable form (as saved, overrides only), its source, and with expanded: true every rule filled in. Do not use when: listing names (list-markdown-templates). Safety: read-only.
Inputs: name (required), expanded. Returns: object
show-noteA
Use when: the user wants to reveal a known note in Notes.app by id. Returns: confirmation that Notes.app accepted the show command. Do not use when: you only need note content (get-note-content) or metadata (get-note-by-id). Note: this opens or focuses the Notes UI.
Inputs: id (required), separately. Returns: id, separately
transcribe-note-audioA
Use when: you need the words spoken in a note's voice recordings or audio attachments, transcribed now on this Mac, by note id.
Returns: per audio attachment a status (ok / partial / error / indeterminate), duration, word count, per-take results, and the transcript; overall status ok / partial / error / indeterminate / none.
Do not use when: you only need the audio file (save-attachment) or a note has no audio.
Note: read-only; recognition runs entirely on-device (never sent to a server). Needs Full Disk Access and the public native helper built once with apple-notes-mcp setup --public-helper. Long recordings take time: pass attachmentId to transcribe one at a time. An indeterminate result means the helper timed out; retrying may succeed. Never prompts: code permission_required means the user must allow the host app under System Settings > Privacy & Security > Speech Recognition; permission_not_requested (before macOS 26) means the host app has never asked for that access, so it is not listed there yet. asset_unavailable can mean the language's speech model is not installed; pass downloadAssets: true only if the user agrees to the download.
Inputs: id (required), locale, maxSeconds, includeText, +2 more. Returns: id, locale, status, recordings, +2 more
update-noteA
Use when: replacing the body of one exact Apple Note after reading it by id. Returns: exact id, new content hash, and visible-text readback verification. Do not use when: you only have a title, the note changed since the read, or the note has attachments. Safety: requires the exact note id and expectedContentHash from get-note-content. The server checks rich metadata revision, atomically checks the AppleScript body, blocks native objects/checklists, and verifies actual link destinations after saving. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside the same AppleScript as the write. Preserve returned HTML links unless allowLinkChanges is explicitly requested. Notes.app normalizes HTML, so rich formatting is not claimed as byte-identical.
Inputs: id (required), newContent (required), expectedContentHash (required), format, +6 more. Returns: id, ok, title, shared, +3 more
validate-markdown-templateARead-only
Use when: checking a template before saving it or exporting with it. Returns: valid true, or valid false with every problem as {path, message}, where path is a JSON path such as $.rules["inline.bold"].after. Do not use when: you want to store it (save-markdown-template validates too). Safety: read-only. Pass exactly one of name (a saved or built-in template), template (JSON object or text) or templateFile. templateFile reads only a regular .json file in home, temp or /Volumes, refusing hidden paths (~/.docker, .env) and ~/Library outside iCloud Drive and CloudStorage unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; errors never quote the file.
Inputs: name, template, templateFile. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 89 tools
The descriptions are exceptionally thorough with explicit 'Do not use when' cross-references, which rescues much of the surface. However, many near-parallel read tools remain easy to confuse: get-note-by-id vs get-note-details vs get-note-metadata vs native-note-state vs get-note-structure, and list-notes vs list-recent-notes vs query-notes vs search-notes vs list-special-notes vs list-shared-notes. An agent must read long guards to pick correctly.
Names are consistently kebab-case with a verb_noun shape (get-note-content, create-note, export-notes-markdown, add-attachment). Minor deviations appear in noun-first status tools (native-tags-status, health-check, doctor) and in verb choice drift (get- vs show- vs reveal semantics), but the pattern stays predictable.
89 tools is far beyond a well-scoped surface; whole subsystems (five paragraph-anchor tools, many overlapping note-read variants, template tooling, SVG analysis) inflate the set. Even for a rich domain like Notes, this is an extreme mismatch that burdens selection.
Lifecycle coverage is genuinely deep: CRUD on notes and folders, attachments, tags, checklists, tables, exports in Markdown/HTML/JSON, and diagnostics. Minor gaps exist, notably no attachment-removal tool and no import path back into Notes, but agents can largely work around these.
Maintenance
Related MCP Connectors
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants like Claude to access and manipulate Apple Notes on macOS, allowing for retrieving, creating, and managing notes through natural language interactions.84MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Apple Notes, Reminders, and Calendar on macOS through MCP, all locally without API keys.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients such as Claude to create, link, search, explore, and synthesize atomic notes using a Markdown source of truth with an SQLite index for traversal and querying.-
- FlicenseNot gradedqualityAmaintenanceEnables users to create, link, search, explore, and synthesize atomic notes through Claude and other MCP-compatible clients, using Markdown files backed by a SQLite index.-