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 17:59 UTC by yolo in 10 tool calls

Summary

Legitimate Apple Notes MCP server. Bundled esbuild output (~1.5 MB) includes JSON Schema validator (ajv) with new Function() for dynamic validation codegen (line 2953), URL percent-encoding utilities misidentified as obfuscation (lines 3332, 3353), and execFileSync("osascript", ...) for AppleScript-driven Notes automation (line 38665). Preinstall hook (package.json:77) exits with an error if npm/yarn is used in a git repo — a benign developer-enforcement check. Documentation files contain user-facing setup instructions (downloading Node.js, configuring Claude Desktop) but no executable malicious code. No credential theft, no unexpected network egress, no persistence.

Intent

MCP server for Apple Notes on macOS that reads/writes notes via AppleScript (osascript). The preinstall hook enforces pnpm usage. All flagged capabilities are legitimate library code or expected macOS automation.

Findings

Preinstall enforces pnpm (benign) info package.json:77
package.json:77 runs node -e that checks for .git/ and user_agent; exits 1 with a hint to use pnpm. No network, no file writes.
AppleScript execution for Notes automation info build/index.js:38665
build/index.js:38665 imports execFileSync from child_process; build/index.js:38835 calls execFileSync('osascript', ...) to drive macOS Notes.app. Expected for this package's purpose.
Dynamic codegen from ajv (JSON Schema validator) info build/index.js:2953
build/index.js:2953 uses new Function(self, scope, sourceCode) to compile runtime validation functions. Standard behavior of the ajv library.
URL percent-encoding utilities (false positive for obfuscation) info build/index.js:3332
build/index.js:3332, 3353 decode hex pairs via String.fromCharCode(parseInt(hex, 16)). Part of standard URL parsing library, not code obfuscation.
Environment variable reading for configuration info build/index.js:39182
build/index.js:39182, 41776, 41930 read process.env keys like APPLE_NOTES_MCP_MAX_ATTACHMENT_BYTES for tunables, not credential harvesting.

Lab evidence

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