npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rnto1/apple-notes-mcp

v0.3.0

Published

MCP server for Apple Notes on macOS (local stdio)

Readme

Apple Notes MCP

Local-only MCP server for Apple Notes on macOS. It is designed for stdio clients such as Claude Desktop, Codex, Cursor, Continue, and similar local MCP hosts.

This server is built around a simple rule set:

  • read Apple Notes using normalized plaintext plus optional raw Apple Notes HTML
  • mutate notes and folders only through explicit tools
  • block destructive deletes by default unless the process is started with delete permission or the client supports MCP elicitation confirmation
  • avoid brittle formatting helpers that depend on string surgery over Notes HTML

Requirements

  • macOS
  • Node 22+
  • Apple Notes enabled locally
  • Automation permission for osascript / your MCP host to control Notes

Install

npm install
npm run build

Run

node dist/index.js

Run with npx

Once published to npm, you can launch it directly:

npx @rnto1/apple-notes-mcp

The package exposes the apple-notes-mcp bin and ships prebuilt dist/ output in the tarball.

For local verification before publishing:

npm pack
npx -y ./rnto1-apple-notes-mcp-0.3.0.tgz --help

For GitHub-based installs, prepare and prepack rebuild the package automatically so the CLI entrypoint still resolves.

CLI flags

  • --help
  • --version

Environment

  • NOTES_MCP_ALLOW_WRITES=0|1
    • Default: 1
    • Set to 0 for read-only mode.
  • NOTES_MCP_ALLOW_DELETES=0|1
    • Default: 0
    • Set to 1 to allow notes_delete and folders_delete without an interactive MCP confirmation flow.

Client configuration

Claude Desktop example:

{
  "mcpServers": {
    "apple-notes": {
      "command": "node",
      "args": ["/absolute/path/to/apple-notes-mcp/dist/index.js"]
    }
  }
}

For development, you can point a client at tsx instead:

{
  "mcpServers": {
    "apple-notes": {
      "command": "node",
      "args": [
        "/absolute/path/to/apple-notes-mcp/node_modules/tsx/dist/cli.js",
        "src/index.ts"
      ]
    }
  }
}

Public MCP surface

Tools

  • server_status
  • accounts_list
  • folders_list
  • folders_get
  • folders_ensure
  • folders_rename
  • folders_delete
  • notes_list
  • notes_search
  • notes_get
  • notes_create
  • notes_update
  • notes_move
  • notes_delete

Resources

  • applenotes://policy
  • applenotes://accounts
  • applenotes://folders
  • applenotes://notes/{id}

Prompts

  • review-note
  • rewrite-note

Content contract

Reads return note metadata with canonical content:

  • id
  • title
  • accountId
  • accountName
  • folderId
  • folderPath
  • createdAt
  • modifiedAt
  • content.text
  • content.format
  • content.html only when explicitly requested

Write operations are explicit:

  • notes_create
    • accepts title
    • accepts content as either { "format": "plain_text", "text": "..." } or { "format": "apple_html", "html": "..." }
    • accepts folderId or folderPath
  • notes_update
    • accepts title
    • accepts exactly one of replaceText, replaceHtml, or appendText
  • notes_move
    • accepts toFolderId

Safety model

  • writes are enabled by default for trusted local use
  • destructive deletes are not enabled by default
  • if your client supports MCP elicitation, the server can request confirmation for deletes
  • if your client does not support elicitation, deletes require NOTES_MCP_ALLOW_DELETES=1

Testing

npm test
npm run lint
npm run typecheck

npm test builds the server first, then runs Node’s native test runner.

Limitations

  • This server is stdio-only in this release.
  • Apple Notes automation is limited by the Notes scripting interface.
  • Rich range-based formatting, attachments, collaboration controls, locking, and other UI-only behaviors are intentionally out of scope.
  • Folder paths are slash-delimited; if the same path exists in multiple accounts, provide accountId.

Troubleshooting

  • On first use, macOS may ask for Automation permission to control Notes.
  • If the server starts but 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 with NOTES_MCP_ALLOW_DELETES=1.