Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 15:02 UTC by yolo in 16 tool calls, with lab detonation

Summary

This package is a macOS-only MCP server for Apple Notes. Its preinstall hook checks for a .git directory and npm/yarn user-agent, printing an error and exiting 1 to enforce pnpm — a developer-experience hook, not malicious. The entry file (build/index.js, ~1.5 MB bundled) uses execFileSync("osascript") and execFileSync("sqlite3") to query Apple Notes' database and UI, which is the stated purpose. The lab run recorded zero network connections and zero canary credential reads. Static pre-screen flags for obfuscation (hex-decoding) are false positives (URL percent-encoding normalization); prompt-injection flags on README.md are also false positives (technical documentation about behavior). Confidence is moderate because the ESM entry file could not be require()-d in the lab (top-level await).

Intent

MCP server for Apple Notes — creates, searches, updates, and manages notes via AppleScript and a read-only SQLite database query. The preinstall hook enforces pnpm usage in git-checked-out repos (developer DX). No network egress, no credential access, no payload decryption.

Findings

preinstall enforces pnpm info package.json:78
Checks for .git directory and npm/yarn user-agent; prints an error and exits 1 if detected. Developer-experience enforcement, not malicious.
AppleScript execution for Notes UI info build/index.js:38891
execFileSync('osascript', ['-'], ...) runs AppleScript to create, read, update, and delete notes via Notes.app UI. Expected for this package's purpose.
Read-only SQLite access to Notes database info build/index.js:39062
execFileSync('sqlite3', ['-readonly', NOTES_DB_PATH, ...]) queries group.com.apple.notes NoteStore.sqlite for checklist state, note metadata, and sync status. Read-only.
URL percent-encoding normalization (false-positive obfuscation) info build/index.js:3332
normalizePercentEncoding decodes %XX sequences for URL normalization (whatwg-url library). Not obfuscation.
Environment variables for configuration (not credential harvest) info build/index.js:38746
process.env.DEBUG and process.env.VERBOSE control logging verbosity. Not credential access.

Lab evidence

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