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 13:53 UTC by yolo in 28 tool calls, with lab detonation

Summary

[email protected] is a macOS-only MCP server that drives Apple Notes via osascript and /usr/bin/shortcuts. The preinstall hook (package.json:79) exits with error code 1 only when a .git directory exists and the npm user-agent doesn't start with 'pnpm' — a developer-experience lock, not payload. Lab detonation: hook exited 0, zero network connections, zero files written outside the package, zero canary reads. The bundled build/index.js (46 K lines) contains standard AppleScript execution, shortcut invocation, URL/ JWT parsing utilities, and config writes to ~/Library/Application Support/apple-notes-mcp/ — all consistent with the stated purpose.

Intent

MCP server that automates macOS Notes.app via AppleScript and Shortcuts. The preinstall hook enforces pnpm usage when a .git directory is present. No network egress or credential access observed.

Findings

Preinstall pnpm-enforcement hook info package.json:79
package.json:79 — node -e checks for .git and npm_config_user_agent; exits 1 with a message when not using pnpm. Benign developer-experience measure.
AppleScript execution via osascript info build/index.js:39172
build/index.js:39172 — execFileSync('osascript', ['-'], {input: preparedScript, timeout: attemptTimeoutMs, killSignal: 'SIGKILL'}) runs AppleScript against Notes.app. Expected for this package.
macOS Shortcuts invocation info build/index.js:42828
build/index.js:42828 — execFileSync('/usr/bin/shortcuts', ['run', status.identifier, '--input-path', path4]) runs packaged .shortcut workflows. Expected.
Config write to app support directory info build/index.js:42827
build/index.js:42827/43005 — writeFileSync to ~/Library/Application Support/apple-notes-mcp/config.json and temp files. Own app data, not other tools' config.
URL hex-decode utilities info build/index.js:3364
build/index.js:3364,3386,3513,3830 — String.fromCharCode(parseInt(hex, 16)) used for percent-decoding in URL parsing (bundled url-parse library). Not obfuscation.
JWT header base64 decoding info build/index.js:25499
build/index.js:25499 — atob() on JWT header for alg validation. Legitimate.

Lab evidence

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