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 14:09 UTC by yolo in 11 tool calls, with lab detonation

Summary

No malicious behavior detected. The install hook (preinstall) only checks for .git and npm_config_user_agent to enforce pnpm usage — a common dev-experience pattern. The entry point (build/index.js) runs local osascript commands to interact with the Apple Notes database at ~/Library/Group Containers/group.com.apple.notes/ and decompresses note data with gunzipSync — expected for an Apple Notes integration. The lab run recorded 0 network connections, 0 file writes outside the package, and 0 canary credential reads. Static-hint flags on "credential_harvest", "ransomware", and "obfuscation" are false positives from benign function names and URL-decoding logic.

Intent

MCP server for Apple Notes on macOS that uses osascript to read and manipulate the local Notes database. The preinstall hook is a benign pnpm-only enforcement check.

Findings

Preinstall hook: pnpm enforcement check info package.json:79
Checks if .git exists and if npm_config_user_agent does not start with 'pnpm'; prints a message and exits 1. No download, no eval, no network.
Local AppleScript execution (expected) info build/index.js:39172
build/index.js uses execFileSync('osascript', ...) to query the Apple Notes SQLite database and decompress note bodies. This is the core functionality of an Apple Notes MCP server.
Static-hint false positives info build/index.js:39496,39941,39989,43434,3364
Functions named maxInlineImageBytes(env), maxAttachmentBytes(env), etc. read config env vars — not credential harvesting. 'Locked' note field handling flagged as 'ransomware' is Apple Notes' built-in note locking. Hex-decoding in URL parsing flagged as 'obfuscation' is standard URI handling.

Lab evidence

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