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:42 UTC by yolo in 17 tool calls, with lab detonation

Summary

Install hook is a pnpm lockfile-enforcement check (fs.existsSync('.git') + user-agent comparison) — benign. Entry file build/index.js is a bundled TypeScript app that calls osascript to drive Notes.app; env-var reads are configuration caps (APPLE_NOTES_MCP_*), not credential harvesting. Lab run: no network, no outside file writes, no canary reads.

Intent

MCP server for Apple Notes — reads and writes notes via AppleScript (osascript). The preinstall hook only enforces pnpm usage; no network egress, no credential access, no persistence.

Findings

Preinstall: pnpm lockfile enforcement info package.json:79
Checks for .git dir and rejects npm/yarn user-agents with a console.error. Does not download or eval remote code.
osascript calls to drive Notes.app info build/index.js:39172
Multiple execFileSync("osascript", [...]) invocations (10 imports) are the core AppleScript bridge — legitimate for an Apple Notes MCP server.
Env-var reads are configuration, not credentials info build/index.js:39496,39941,39989,44758
Functions read APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES, APPLE_NOTES_MCP_MAX_ATTACHMENT_BYTES, etc. — all application-level config caps.
Encrypted note body decoding (not ransomware) info build/index.js:43672
gunzipSync on hex-encoded row.data for locked notes is reading Apple Notes' on-disk encrypted format, not encrypting user files.
URL-scheme hex decoding (not obfuscation) info build/index.js:3364
String.fromCharCode(parseInt(hex, 16)) decodes unreserved URI characters — bundled from json-schema / ajv, not hiding malicious payloads.
New Function for JSON-schema codegen info build/index.js:2953
ajv's runtime schema compiler — standard, not dynamic code execution.

Lab evidence

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