safe-apple-notes-mcp
This server lets an AI safely read, search, create, append to, update, and delete Apple Notes — with human confirmation required for every write/delete action.
Read-only capabilities: list all folders, list notes (optionally by folder), search notes by title/body, and fetch a single note as markdown/plaintext/HTML by id or exact title.
Note creation: create a new note in a chosen folder (or the default account) with a plain-text body.
Note modification: append text to an existing note without replacing content, or replace a note's body (and optionally title) while returning the previous body as undo material.
Note deletion: delete one note by id; it is moved to Recently Deleted and stays recoverable for 30 days.
Folder creation: create a folder in a specified account, refusing duplicates and never deleting/renaming/moving folders.
Safety constraints: no batch operations, password-protected notes are skipped or rejected, and every destructive tool forces human approval via
anthropic/requiresUserInteraction.
Provides tools for interacting with Apple Notes on macOS, allowing listing folders and notes, searching, reading note contents, and creating, appending, updating, and deleting notes (with forced human confirmation for writes).
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., "@safe-apple-notes-mcp search my notes for 'flight itinerary' and show the top match"
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.
safe-apple-notes-mcp
A safety-first MCP server for Apple Notes
on macOS, for people who want to give an AI access to their notes without
handing it the keys to delete or rewrite everything unsupervised. It talks to
Notes.app through AppleScript (osascript) and exposes exactly 9 tools, all
scoped to one note (or one folder) per call, with every write and delete tool
forcing a human confirmation. If you want a bigger surface — tags,
attachments, checklists, tables, batch operations — use
sweetrb/apple-notes-mcp instead;
this project deliberately competes on safety, auditability, and size, not
feature count.
Why it exists
Most Apple Notes MCP servers expose a large surface: batch delete, folder management, arbitrary overwrites. That is a lot of blast radius to hand to an LLM. This server takes the opposite bet: keep the tool list small enough to read in one sitting, make every destructive operation single-note and undo-friendly, and force a human to confirm it — structurally, not just by convention.
Related MCP server: Apple Notes MCP Server
Safety model
Exactly 9 tools, enforced by a test that fails if one is ever added:
list_folders,list_notes,search_notes,get_note(read), andcreate_note,append_to_note,update_note,delete_note,create_folder(write).Every write/delete tool carries
anthropic/requiresUserInteraction. Claude Code (>= 2.1.199) prompts a human before calling any of the four write tools — regardless of permission mode or allow rules, including bypass mode.No batch operations, ever. Every tool acts on exactly one note (or lists/searches). There is no "delete these notes" or "update all notes in folder" tool, and there never will be.
delete_notenever destroys. Notes.app moves the note to Recently Deleted, where it stays recoverable for 30 days.update_notereturns the previous body as undo material. Both the previous and new body come back as markdown, so the caller always has what was overwritten.append_to_notenever replaces. It only ever adds content to the end of a note.Folders are create-only.
create_folderrefuses to create a duplicate (it reports the existing folder's id instead) and never destroys anything. There is no delete, rename, or move for folders, and there never will be.Password-protected notes are skipped in listings (
list_notes,search_notes) and rejected with a clear error everywhere else (get_note,append_to_note,update_note,delete_note). This server never attempts to unlock or bypass a locked note.No network, no shell.
osascriptis invoked directly via stdin (execFileSync, never a shell string), and this server makes no network calls and never writes to the Notes SQLite database directly.
Comparison
Facts about sweetrb/apple-notes-mcp below were verified by reading its
source: it annotates tools with readOnlyHint only (no destructiveHint,
no forced-confirmation metadata) and exposes batch-delete-notes and
delete-folder alongside a body-replacing update-note.
|
| |
Tool count | 9 | 40+ |
Batch delete | No | Yes ( |
Folder management | Create only, no duplicates | Create/delete/rename |
Server-forced confirmation on writes | Yes ( | No |
| Yes | No (only |
Update returns previous body | Yes ( | No |
Tags / attachments / checklists | No | Yes |
SQLite metadata access | No | Optional, with Full Disk Access |
Runtime dependencies | 3 | 3 |
License | MIT | MIT |
Tools
Tool | Confirmation required? | Input | Output |
| No | — |
|
| No |
|
|
| No |
| Same shape as |
| No |
|
|
| Yes |
|
|
| Yes |
|
|
| Yes |
|
|
| Yes |
|
|
| Yes |
|
|
create_note converts the plain-text body to HTML: <h1>title</h1>
followed by one <div> per line (empty lines become <div><br></div>).
append_to_note and update_note follow the same per-line conversion —
append_to_note adds it to the end of the existing body, update_note
replaces the body entirely (rebuilding the <h1> from the given title, or
the note's existing title when omitted).
get_note accepts either id or title (never both) — use title when you
don't have the id handy; the match is exact but case-insensitive. If the title
matches more than one note, get_note reports the candidate ids instead of
guessing, so you can retry with id.
create_folder creates a folder in the given account (the default account
when omitted). It refuses to create a duplicate — if a folder with this exact
name already exists in the target account, it reports the existing folder's
id instead of creating a second one — and fails clearly if account is given
but doesn't exist. There is no delete_folder, rename_folder, or move.
Install
pnpm install
pnpm buildUse with Claude Code
claude mcp add apple-notes -s user -- node /absolute/path/to/dist/index.jsUse with Claude Desktop
Add to your Claude Desktop MCP config:
{
"mcpServers": {
"apple-notes": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}Permissions
The first time this server calls into Notes.app, macOS prompts for Automation permission (System Settings → Privacy & Security → Automation). Grant it to whichever process launches the server (e.g. Claude Desktop or your terminal). Without it, every tool call fails with an AppleScript permission error.
Recommended Claude Code permissions
{
"permissions": {
"allow": [
"mcp__apple-notes__list_folders",
"mcp__apple-notes__list_notes",
"mcp__apple-notes__search_notes",
"mcp__apple-notes__get_note"
],
"ask": [
"mcp__apple-notes__create_note",
"mcp__apple-notes__append_to_note",
"mcp__apple-notes__update_note",
"mcp__apple-notes__delete_note",
"mcp__apple-notes__create_folder"
]
}
}The ask rules are belt-and-braces for older Claude Code versions that
ignore the _meta flag — the five write/delete tools already carry
anthropic/requiresUserInteraction, which forces a prompt on current
versions regardless of permission mode.
Environment variables
Variable | Default | Purpose |
|
| Timeout for each |
| unset | Set to |
Development
This project is built with strict TDD: every module has a test file written
and run to red before its implementation exists. Unit tests live next to
their module as *.test.ts; the end-to-end test lives in test/e2e and is
skipped unless APPLE_NOTES_MCP_E2E=1, since it touches the real Notes.app —
it stays strictly read-only, on purpose, even though delete_note and
update_note exist.
pnpm test # run all unit tests
pnpm test:watch # watch mode
pnpm typecheck # tsc --noEmit over src and test
pnpm lint # eslint
pnpm build # compile src to distArchitecture
Hexagonal / screaming architecture: domain defines the NotesRepository
port and the entities; infrastructure/applescript is the only adapter that
knows osascript exists; interface/mcpServer.ts wires a NotesRepository
into the 9 MCP tools without knowing whether it's talking to AppleScript or a
test fake.
Roadmap
Folder scoping via an
APPLE_NOTES_MCP_FOLDERSenvironment variable, to restrict every tool to an allow-listed set of folders.A local audit log for every write/delete call (what was called, with what arguments, when).
An optional confined "create" folder, so
create_notecan be restricted to a single sandboxed destination.
Credits
AppleScript patterns (escaping, delimiter-based record output, timeout wrapping, password-protected note handling) were informed by reading:
This project is a from-scratch, deliberately smaller reimplementation — not a fork — built around a fixed 8-tool surface.
Available Tools
8 toolsappend_to_noteAppend to noteA
Append plain text to an existing note's body. Never replaces existing content. Fails with a clear error if the note is password protected.
Inputs: id (required), text (required).
create_noteCreate noteA
Create a new note from a plain-text body. Each line becomes its own paragraph; the title is rendered as a heading.
Inputs: body (required), title (required), folder.
delete_noteDelete noteADestructive
Delete one note by id. Notes.app moves it to Recently Deleted, where it stays recoverable for 30 days — this never permanently destroys it. There is no batch or title-based variant.
Inputs: id (required).
get_noteGet noteARead-only
Fetch one note by id or by exact title, rendered as markdown, plaintext, or raw html. Exactly one of id or title must be given. A title match is case-insensitive; if it matches more than one note, the tool reports the candidates instead of guessing. Fails with a clear error if the note is password protected.
Inputs: id, title, format.
list_foldersList foldersARead-only
List every Notes.app folder across every account.
Inputs: no named parameters.
list_notesList notesARead-only
List notes, most recently modified first. Optionally restrict to one folder. Password-protected notes are skipped. Limit defaults to 50, max 200.
Inputs: limit, folder.
search_notesSearch notesARead-only
Case-insensitive search over note title and plaintext body. Password-protected notes are skipped. Limit defaults to 20, max 100.
Inputs: query (required), limit.
update_noteUpdate noteADestructive
Replace an existing note's body, and optionally its title. Unlike append_to_note, this overwrites the note's existing content; the previous body is returned as undo material. Fails with a clear error if the note is password protected.
Inputs: id (required), body (required), title.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct action: listing folders, listing notes, searching, fetching, creating, appending, deleting, and updating. Even the closely related append_to_note and update_note are clearly separated by replace vs. non-destructive append semantics.
All tool names follow a consistent verb_noun pattern in snake_case: list_, search_, get_, create_, append_to_, delete_, update_. The naming is predictable and makes the intent of each tool immediately clear.
Eight tools is well-scoped for an Apple Notes MCP server. The set covers the core note lifecycle plus listing and searching without unnecessary redundancy or bloat.
The core note lifecycle is well covered: create, read, update, append, delete, list, and search. Minor gaps exist around folder management, such as no create/move/restore operations, but these do not block primary note workflows.
Maintenance
Related MCP Connectors
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Personal AI memory: search and read your notes and todos; changes wait for your approval.
Save, search and edit your private notes by talking to your AI assistant.
AI access to your aNotepad online notes: read, search, write, and organize via 22 tools.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables interaction with Apple Notes on macOS through AppleScript, allowing users to list, search, read, create, update, and delete notes across accounts and folders.71-
- AlicenseAqualityDmaintenanceEnables AI assistants to read, create, search, update, and delete Apple Notes through natural language conversation, using JXA to communicate directly with the Notes app.830ISC
- AlicenseAqualityDmaintenanceEnables AI clients to search, read, create, update, move, and delete Apple Notes on macOS via AppleScript automation.102MIT
- AlicenseAqualityDmaintenanceEnables LLMs to create, read, and append notes in Apple Notes through AppleScript, with append-only operations restricted to a single folder for safety.4MIT