Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 72%   action allow   analyzed 2026-09-24 16:26 UTC by yolo in 28 tool calls, with lab detonation

Summary

The preinstall hook is a benign lockfile-checker that exits with a message suggesting pnpm when npm/yarn is detected on a git repo. The entry file (build/index.js) is a bundled MCP server that drives macOS Notes.app via AppleScript (execFileSync "osascript"). The lab run produced zero network connections, zero canary reads, and zero files written outside the package. Obfuscation hints are false positives from URL-percent-encoding normalization and ajv's codegen (new Function on JSON-schema source).

Intent

MCP server for Apple Notes that uses AppleScript to create, read, update, and delete notes. The preinstall hook only checks for .git and user_agent to suggest pnpm; the entry file is a bundled Node.js app communicating via the Model Context Protocol.

Findings

Preinstall hook: pnpm lockfile check info package.json:77
Checks for .git directory and npm_config_user_agent; exits with a human-readable message suggesting corepack enable && pnpm install --frozen-lockfile when npm/yarn is detected. No network, no file writes.
AppleScript execution via osascript info build/index.js:38849
build/index.js uses child_process.execFileSync('osascript', ...) to drive macOS Notes.app — expected for this package's stated purpose.
ajv codegen new Function (false-positive obfuscation) info build/index.js:2953
build/index.js:2953 creates a validator function from generated JavaScript source — standard ajv behavior, not hidden payload.
URL percent-encoding normalization (false-positive obfuscation) info build/index.js:3332
build/index.js:3332 decodes %XX sequences — standard WHATWG URL normalization, not concealment.

Lab evidence

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