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 15:40 UTC by yolo in 24 tool calls, with lab detonation

Summary

The preinstall hook is a benign pnpm-usage reminder (exits with a hint, does nothing else). The entry file (build/index.js) spawns osascript and sqlite3 to interact with Apple Notes — consistent with the package's stated purpose. The lab observed zero network connections, zero file writes outside the package, and zero canary credential reads. Static pre-screen hits on "encryption", "obfuscation", and "agent_config_tamper" are false positives (URL percent-encoding normalization, Apple Notes encrypted note data handled transparently, config paths mentioned in docs but never written by code).

Intent

MCP server that reads and writes Apple Notes via AppleScript and the internal NoteStore SQLite database on macOS.

Findings

preinstall hook — pnpm reminder only info package.json:79
Checks for .git and user-agent; prints an error and exits 1 if using npm/yarn on a git repo. No network, no file writes.
AppleScript via osascript for Notes operations info build/index.js:39172
execFileSync('osascript', ...) drives Apple automation of Notes.app. Expected for this package's purpose.
NoteStore.sqlite read (requires Full Disk Access) info build/index.js:39441
execFileSync('sqlite3', ['-readonly', NOTES_DB_PATH, query]) where NOTES_DB_PATH = ~/Library/Group Containers/group.com.apple.notes/NoteStore.sqlite. Legitimate Apple Notes database; reads only.
Gunzip + decode of note bodies from NoteStore info build/index.js:44760
Decompresses and decodes hex-encoded note data from the SQLite database. Transparent handling of Apple Notes compression, not user-facing encryption.
URL unreserved-character hex normalization (false-positive obfuscation) info build/index.js:3364
String.fromCharCode(parseInt(hex, 16)) normalizes percent-encoded characters for URL scheme validation (ajv internal). Not code obfuscation.
Config paths in docs but never written by code (false-positive agent_config_tamper) info README.md:76-88
README mentions ~/Library/Application Support/Claude/claude_desktop_config.json and .mcp.json but the server code does not write these files.
Download Node.js from nodejs.org in docs (benign) info docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:60-61
NODE-RUNTIME-AND-TCC-PERMISSIONS.md documents downloading an official Developer-ID-signed Node runtime from nodejs.org. Not executed by the package.

Lab evidence

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