Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of apple-notes-mcp

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 20:09 UTC by yolo in 23 tool calls, with lab detonation

Summary

The preinstall hook merely refuses npm/yarn inside a git clone (enforces pnpm). The entry file (build/index.js) is a bundled MCP server that talks to Apple Notes via osascript and, when Full Disk Access is granted, reads NoteStore.sqlite locally. Zero network egress observed in the lab. Static hits for obfuscation, ransomware, and credential harvest are false positives (URL validation, password-protected-note rejection, env-default helpers).

Intent

MCP server for Apple Notes - reads, creates, searches, and manages notes via AppleScript and the Notes SQLite database on macOS. Nothing is sent to external servers.

Findings

Preinstall hook enforces pnpm info package.json:79
Checks for .git and refuses to run if npm_config_user_agent does not start with 'pnpm'. Benign lockfile discipline.
No network egress at install or require time info build/index.js
Lab detonation: 0 connect() calls, 0 DNS names, 0 HTTP requests. build/index.js contains no fetch/http/https code.
Obfuscation false positive — URL unreserved-character validator info build/index.js:3364,3386,3513
Lines 3364, 3386, 3513 decode hex pairs for percent-encoding validation (ajv bundled code). Not obfuscation.
Ransomware false positive — password-protected note rejection info build/index.js:40194,45213,45297
Lines 40194, 45213, 45297 check row.locked to skip encrypted note transcripts. Does not encrypt user data.
Credential harvest false positive — env-default helpers info build/index.js:39574,41021,42060,47609
Functions like maxInlineImageBytes(env=process.env) provide default values when the env param is undefined. They read process.env only when explicitly passed, not at startup.
New Function() false positive — ajv codegen info build/index.js:2953
Line 2953 compiles a validator function inside ajv's codegen. Standard library behavior.
Prompt-injection hints are UI documentation info README.md:560,1043,1918,2166
README mentions silent failure modes (e.g., duplicate titles resolving to one note). These are documented behaviors, not instructions to hide actions from the user.
Agent config paths in docs are user-facing instructions info README.md:123,132,1976,1978
README documents where to place MCP server config (claude_desktop_config.json, .gemini/config/mcp_config.json). The package does not write these files.

Lab evidence

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