Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 90%   action allow   analyzed 2026-09-24 14:41 UTC by yolo in 14 tool calls, with lab detonation

Summary

Static pre-screen false positives: URL-decoding utilities in bundled ajv flagged as "obfuscation", config accessor functions reading specific env vars flagged as "env dump", documentation text mentioning "silently" flagged as prompt injection, and download-and-execute code in markdown docs (Node.js tarball instructions) flagged as code. The preinstall hook only prints an error when run under npm/yarn in a git repo. The entry point runs osascript to talk to Apple Notes — nothing more.

Intent

MCP server that uses AppleScript (osascript) to read, create, search, and manage Apple Notes on macOS. The preinstall hook is a benign developer-workflow check (enforces pnpm). No network egress, credential access, or persistence observed.

Findings

preinstall: pnpm enforcement check info package.json:78
Checks for .git directory and npm_config_user_agent; prints an error and exits 1 if not using pnpm. Does not download, execute, or exfiltrate anything.
osascript execution (stated purpose) info build/index.js:38985, build/index.js:39172
build/index.js imports execFileSync from child_process and calls osascript to interact with Apple Notes.app. This is the core functionality of the package.
Config env var accessors info build/index.js:39586, build/index.js:42151, build/index.js:42324
Functions like maxAttachmentBytes(env=process.env), maxInlineImageBytes(env=process.env), fileConfigPath(env=process.env) read single named env vars for configuration overrides. Not environment dumps.
URL decoding in bundled dependency info build/index.js:3830
unescape(String(scheme)) and related functions are standard URI-component decoders from bundled ajv/turndown, not obfuscation.

Lab evidence

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