Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 16:27 UTC by yolo in 23 tool calls, with lab detonation

Summary

Legitimate macOS MCP server. The preinstall hook is a harmless pnpm enforcement check. The bundled entry (build/index.js) uses osascript and sqlite3 to query the local Apple Notes database (NoteStore.sqlite) — exactly what this package claims to do. No network egress, no credential stores read, no persistence. Static pre-screen flagged many false positives: percent-encoding normalization (uri-js) as "obfuscation", Apple Notes per-note encryption handling as "ransomware", documentation examples as "download_execute", and user-facing behavior descriptions as "prompt_injection".

Intent

MCP server for Apple Notes on macOS. Uses AppleScript and direct SQLite reads of the local NoteStore database to create, search, update, and manage notes. Nothing else.

Findings

preinstall: pnpm enforcement info package.json:79
Exits with error if a .git directory exists and the user agent does not start with 'pnpm'. No network, no file writes.
AppleScript execution for Notes.app automation info build/index.js:39188
execFileSync('osascript', ['-'], { input: preparedScript }) runs AppleScript against Notes.app (build/index.js:39188). Expected for this package.
Local SQLite database read info build/index.js:39438
execFileSync('/usr/bin/sqlite3', ['-readonly', dbPath, sql]) queries the local Apple Notes store at ~/Library/Group Containers/group.com.apple.notes/NoteStore.sqlite (build/index.js:39438, 39457, 39744). Read-only. No credential stores.
Handling of password-encrypted notes info build/index.js:46613
Throws NoteBlocksError('encrypted') when a note row has row.encrypted=true. This is Apple Notes' built-in per-note encryption; the server cannot decrypt it. Not ransomware.
Percent-encoding normalization (uri-js) info build/index.js:3364
String.fromCharCode(parseInt(hex, 16)) in normalizePercentEncoding is standard URI percent-decoding, not obfuscation.
Documentation examples (not executable code) info docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:60
curl -O https://nodejs.org/dist/... lines in docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md are user-facing installation instructions, not package code.
User-facing behavior descriptions (not prompt injection) info README.md:986,1689
Phrases like 'silently skipping the others' and 'silently taking the first prefix match' describe the tool's behavior to the human user, not instructions to an AI agent.

Lab evidence

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