notes-mcp
notes
Tools for working with Apple Notes: bulk export to markdown and an MCP server for LLM access.
Install
bun installExport
Bulk-export all Apple Notes to markdown files with images and folder structure preserved.
bun export-notes.tsBy default notes are exported to ./exported. Use -o to specify a custom output folder:
bun export-notes.ts -o ~/Documents/my-notesFetches all notes from Apple Notes (all accounts, nested folders)
Converts HTML to markdown
Extracts embedded images to an
images/subfolderPreserves folder hierarchy (e.g.
Row/Test/folder note.md)Adds YAML frontmatter (title, dates, folder, account)
MCP Server
An MCP server that lets LLMs read and write Apple Notes directly.
bun mcp-server.tsTools
list_notes— list all notes with metadata; optionalsearchfilter (matches name and folder)get_note— fetch a single note as markdown with YAML frontmattercreate_note— create a new note from markdownadd_to_note— append markdown to an existing note (preserves existing formatting)
Usage with Claude Code
Add to .claude/settings.json:
{
"mcpServers": {
"apple-notes": {
"command": "bun",
"args": ["mcp-server.ts"],
"cwd": "/path/to/notes"
}
}
}Testing
npx @modelcontextprotocol/inspector bun mcp-server.ts