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

Summary

The package installs a CLI server (build/index.js) that communicates over stdin/stdout using the MCP protocol. It executes osascript and sqlite3 to interact with macOS Notes.app — legitimate for its stated purpose. The preinstall hook enforces pnpm usage in git repos (exit 1 on npm/yarn) but does nothing malicious. The lab recorded zero network connections. Static-hint false positives on new Function() and atob() trace to the bundled ajv and regex libraries, not package logic.

Intent

MCP server for Apple Notes on macOS that uses AppleScript and the Notes.app SQLite store to create, read, update, and delete notes via the Model Context Protocol.

Findings

pnpm-only install enforcement info package.json:78
preinstall checks for .git and rejects npm/yarn user agents with exit 1. Annoying but not harmful.
AppleScript execution for Notes.app automation info build/index.js:39172
execFileSync('osascript', ...) runs AppleScript to create, read, update, delete notes and folders. Expected behavior.
SQLite access to Apple Notes store info build/index.js:39343
execFileSync('sqlite3', ...) reads the Apple Notes database at ~/Library/Group Containers/group.com.apple.notes/NoteStore.sqlite. macOS-only, expected.
Environment variable reading for configuration info build/index.js:38997
Reads specific vars like APPLE_NOTES_MCP_MAX_BUFFER, APPLE_NOTES_MCP_MAX_ATTACHMENT_BYTES from process.env. Does not dump or exfiltrate the environment.
Dynamic code generation from ajv library info build/index.js:2953
new Function() at line 2953 is from the bundled ajv JSON-schema validator, not package logic.
URL encoding utilities info build/index.js:3364
unescape() and hex decoding at lines 3364, 3386, 3513 are from the bundled regex URL-matching library.

Lab evidence

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