Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 17:02 UTC by yolo in 20 tool calls, with lab detonation

Summary

Install hook only enforces pnpm (exits with an error if npm/yarn is used in a git repo). The entry point is an MCP server that reads/writes Apple Notes via osascript (AppleScript) and, when Full Disk Access is granted, a direct read-only sqlite3 query on the local NoteStore.sqlite database. No network egress, no credential access, no persistence. The static "prompt-injection" flags are false positives stemming from the word "silently" in technical documentation (e.g., "silently skipping duplicate titles").

Intent

MCP server that bridges AI assistants to Apple Notes on macOS via AppleScript and a direct SQLite query on NoteStore.sqlite. Nothing runs at install time beyond a pnpm-enforcement check; the entrypoint speaks MCP stdio and invokes osascript/sqlite3 locally.

Findings

preinstall enforces pnpm info package.json:79
If .git exists and user-agent doesn't start with 'pnpm', prints an error and exits 1. Does not download or execute anything.
osascript invocation for Apple Notes info build/index.js:39188
execFileSync('osascript', ['-'], ...) passes AppleScript snippets to the Notes app. Expected for an Apple Notes automation tool.
Direct read-only SQLite access to NoteStore.sqlite info build/index.js:39438
execFileSync('sqlite3', ['-readonly', NoteStore.sqlite, ...]) reads Apple Notes data from the local database for performance. Requires Full Disk Access on macOS.
Dynamic Function compilation from ajv info build/index.js:2953
new Function(...) at build/index.js:2953 is from the ajv JSON-schema-validation dependency, which compiles validators at runtime. Standard behavior.
Password-protected note encryption info build/index.js:46769
Notes marked encrypted throw 'encrypted' errors rather than attempting to decode. This is Apple's note-locking behavior, not ransomware.
False-positive prompt-injection flags info README.md:1017,1720,1967
The word 'silently' in documentation (e.g., 'silently skipping duplicate titles', 'silently taking the first prefix match') was flagged as 'asks the agent to hide actions'. These are technical descriptions of behavior, not instructions.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 6. Hooks: preinstall (exit 0), require (exit 0).