Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 21:19 UTC by yolo in 18 tool calls, with lab detonation

Summary

Package installs cleanly; the preinstall hook only checks for a .git directory and pnpm user-agent, exiting with an error message if mismatched (exit 1) — no downloads, no egress, no file writes outside the package. The entry file (build/index.js) is a ~2 MB bundled ESM server that uses execFileSync("osascript") and execFileSync("sqlite3", ["-readonly", NoteStore.sqlite, …]) to read and manipulate Apple Notes — this matches the stated purpose. The static pre-screen capability hits are largely false positives: "ransomware" matches Apple Notes "locked" notes, "obfuscation" matches a URL-encoding validator in the ajv library, "credential_harvest" matches process.env config helpers. The lab run produced zero network connections, zero canary reads, zero external file writes.

Intent

MCP server that controls Apple Notes on macOS via AppleScript (osascript) and direct SQLite reads from the NoteStore database. The preinstall hook enforces pnpm usage but performs no other actions.

Findings

preinstall enforces pnpm info package.json:79
Checks for .git directory and npm_config_user_agent; exits 1 with a helpful message if not using pnpm. Benign developer-tooling enforcement.
AppleScript execution for Apple Notes control info build/index.js:39188
execFileSync("osascript", ["-"], { input: preparedScript }) runs AppleScripts against Notes.app. This is the core functionality matching the package's stated purpose.
Direct SQLite read of Apple Notes database info build/index.js:39449
execFileSync("sqlite3", ["-readonly", ~/Library/Group Containers/group.com.apple.notes/NoteStore.sqlite, query]) reads the Apple Notes store. Requires Full Disk Access on macOS.
Static pre-screen false positive: 'ransomware' on 'locked' notes info build/index.js:45232
Matches Boolean(row.locked) in Apple Notes database schema — 'locked' refers to Apple Notes' password-protected notes feature, not file encryption.
Static pre-screen false positive: 'obfuscation' on URL validator info build/index.js:3364
hex decoding logic is part of ajv's URL-format validation regex, not code obfuscation.
Static pre-screen false positive: 'credential_harvest' on process.env info build/index.js:39574
Functions like maxInlineImageBytes(env=process.env) read config env vars (APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES), not secrets.

Lab evidence

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