A local MCP server for macOS that lets AI agents work with Apple Notes
Apple Notes MCP
Apple Notes MCP is a local MCP server for macOS that lets AI agents work with Apple Notes through a safe, explicit tool surface.
It is designed for agents such as Codex, Claude Desktop, Cursor, Continue, and other MCP clients that can launch a local stdio server.
What It Does
- Lists Apple Notes accounts and folders
- Reads notes as normalized plaintext with optional raw Apple Notes HTML
- Creates, updates, moves, and deletes notes
- Creates, renames, and deletes folders
- Exposes read-only resources and reusable prompts for note review and rewrite workflows
Requirements
- macOS
- Node.js 22 or newer
- Apple Notes enabled locally
- macOS Automation permission for the host app that launches the MCP server
Install For AI Agents
Use npx. You do not need to clone this repository to use the published package.
npx -y @rnto1/apple-notes-mcp
That command starts the MCP server over stdio.
MCP Client Configuration
Use the published npx package in your MCP client config.
Codex
Add this to ~/.codex/config.toml:
[mcp_servers.apple-notes]
command = "npx"
args = ["-y", "@rnto1/apple-notes-mcp"]
Claude Desktop
Add this to your Claude Desktop MCP config:
{
"mcpServers": {
"apple-notes": {
"command": "npx",
"args": ["-y", "@rnto1/apple-notes-mcp"]
}
}
}
Other MCP Clients
Use the same command/args pair:
{
"command": "npx",
"args": ["-y", "@rnto1/apple-notes-mcp"]
}
Environment Variables
These can be set in the environment of the MCP host.
NOTES_MCP_ALLOW_WRITES=0|1- Default:
1 - Set to
0for read-only mode.
- Default:
NOTES_MCP_ALLOW_DELETES=0|1- Default:
0 - Set to
1to allow destructive deletes without interactive confirmation.
- Default:
NOTES_MCP_WARMUP=0|1- Default:
1 - When enabled, the server proactively activates Notes and triggers the macOS Automation prompt on startup so the first real tool call does not have to discover permissions the hard way.
- Default:
Example with writes disabled:
[mcp_servers.apple-notes]
command = "env"
args = [
"NOTES_MCP_ALLOW_WRITES=0",
"npx",
"-y",
"@rnto1/apple-notes-mcp"
]
Tool Surface
Tools
server_statusaccounts_listfolders_listfolders_getfolders_ensurefolders_renamefolders_deletenotes_listnotes_searchnotes_getnotes_createnotes_updatenotes_movenotes_delete
Resources
applenotes://policyapplenotes://accountsapplenotes://foldersapplenotes://notes/{id}
Prompts
review-noterewrite-note
Content Model
Reads return structured note metadata plus normalized content:
idtitleaccountIdaccountNamefolderIdfolderPathcreatedAtmodifiedAtcontent.textcontent.formatcontent.htmlonly when explicitly requested
Writes are explicit:
notes_create- accepts
title - accepts
content - accepts
folderIdorfolderPath
- accepts
notes_update- accepts
title - accepts exactly one of
replaceText,replaceHtml, orappendText
- accepts
notes_move- accepts
toFolderId
- accepts
Safety Model
- Writes are enabled by default for trusted local use.
- Destructive deletes are disabled by default.
- If the MCP client supports elicitation, the server can request delete confirmation.
- If the client does not support elicitation, destructive deletes require
NOTES_MCP_ALLOW_DELETES=1.
Limitations
- This server is
stdio-only. - Apple Notes automation is limited by the Notes scripting interface on macOS.
- Rich range formatting, attachments, collaboration controls, locking, and other UI-only Notes features are intentionally out of scope.
- If the same folder path exists in multiple accounts, provide
accountId.
Troubleshooting
- On first launch, the server proactively activates Notes so macOS can show the Automation prompt early. Approve it before retrying tool calls.
- If tools fail, open Notes.app once and let sync finish.
- If a delete is rejected, either confirm it through a client that supports MCP elicitation or restart the MCP host with
NOTES_MCP_ALLOW_DELETES=1. - If your MCP client caches server metadata, restart the client after upgrading the package.
Contributing
Local Development
Clone the repository and install dependencies:
npm install
Run the full checks:
npm run ci
Useful commands:
npm run build
npm run test
npm run lint
npm run format
Development Server
For local development you can run the TypeScript entrypoint directly:
npm run dev
For a local packed-package check:
npm pack
Release Process
Releases are automated through GitHub Actions and Changesets.
- Changes merged to
maintrigger the release workflow. - The workflow prepares a release via Changesets.
- npm publishing uses provenance.
Repository maintainers must ensure the required Git
Tools (14)
server_statusCheck the status of the MCP server.accounts_listList all Apple Notes accounts.folders_listList all folders in Apple Notes.folders_getRetrieve details for a specific folder.folders_ensureEnsure a folder exists, creating it if necessary.folders_renameRename an existing folder.folders_deleteDelete a folder.notes_listList notes within the application.notes_searchSearch for notes based on criteria.notes_getRetrieve the content of a specific note.notes_createCreate a new note.notes_updateUpdate an existing note.notes_moveMove a note to a different folder.notes_deleteDelete a note.Environment Variables
NOTES_MCP_ALLOW_WRITESSet to 0 for read-only mode.NOTES_MCP_ALLOW_DELETESSet to 1 to allow destructive deletes without interactive confirmation.NOTES_MCP_WARMUPProactively activates Notes and triggers macOS Automation prompt on startup.Configuration
{"mcpServers": {"apple-notes": {"command": "npx", "args": ["-y", "@rnto1/apple-notes-mcp"]}}}