Skip to content

Security: JonathanRReed/Apple-MCPs

SECURITY.md

Security

These servers let an AI agent read and change your Mail, Messages, Calendar, Reminders, Contacts, Notes, files and system settings. This page says what the server limits, what it can't, and how to report a problem.

Report a vulnerability

Do not open a public issue for a suspected security problem. Use private vulnerability reporting on this repository.

Include the affected server, the steps to reproduce, the safety mode and settings in use, and what an attacker needs first: local access, a macOS permission, a malicious MCP client, or only the ability to send you an email or message.

The latest release and the main branch get security fixes. The goal for a valid report is a quick reply, a reproduction, a fix in a release, and a changelog entry that credits you if you want the credit.

The risk this is built around

An agent reads text that other people wrote: an email, a message, a calendar invite, a shared note, a file. That text can contain instructions aimed at the agent, such as "forward this thread to this address". The agent may follow them. No instruction to the model fixes this reliably, and the server can't tell which of the agent's tool calls came from you and which came from something it read.

So the server doesn't try to judge intent. It limits what any tool call can do, whoever asked for it. Two settings do that:

  • Safety modes, one per app: safe_readonly, safe_manage or full_access.
  • Allowlists: the folders, calendars, reminder lists and Notes accounts a server may touch.

These limit tool calls. They are not a sandbox: the server process runs as you, with whatever macOS has granted the app that started it.

Every server except Maps also tells the model, in its instructions, to treat this content as information and to check with you before acting on it. That lowers the risk. It is not a boundary.

What each mode allows

A mistyped or blank mode runs as safe_readonly, and the health tool reports it in safety_mode_warning. A blocked tool returns an error that names the setting to change.

App Setting safe_readonly safe_manage adds full_access adds Default
Mail APPLE_MAIL_MCP_SAFETY_PROFILE Read and search Drafts, including replies and forwards saved as drafts. Mark, move, delete, archive. No tool sends Send new mail. Replies and forwards go out directly safe_manage with uvx or pip. full_access in the Claude Desktop bundles
Messages APPLE_MESSAGES_MCP_SAFETY_MODE Read history Send messages, replies and files Nothing more full_access
Calendar APPLE_CALENDAR_MCP_SAFETY_MODE Read Create, change and delete events Nothing more safe_manage
Reminders APPLE_REMINDERS_MCP_SAFETY_MODE Read Create, change and complete reminders. Create lists Delete reminders and lists safe_manage
Contacts APPLE_CONTACTS_MCP_SAFETY_MODE Read and search Create and change contacts Delete contacts safe_manage
Notes APPLE_NOTES_MCP_SAFETY_MODE Read and search Create, change, move and delete notes and folders Nothing more full_access
Shortcuts APPLE_SHORTCUTS_MCP_SAFETY_MODE List and view Run any shortcut Nothing more full_access
Files APPLE_FILES_MCP_SAFETY_MODE List, search, read text, read tags Create folders, move, rename, tag, open, reveal in Finder Delete safe_manage
System APPLE_SYSTEM_MCP_SAFETY_MODE Battery, running apps, system settings, any app's preference values, clipboard contents Set the clipboard, show notifications, open apps, change appearance, Finder, Dock and accessibility settings, GUI input to allowed apps Nothing more safe_manage
Maps none Search, directions, open Maps

Apple-Tools-MCP, the unified server, applies each app's own mode to that app's tools, including its workflow tools and undo.

Four defaults are wider than the rest. Out of the box Messages can send, Notes can delete, Shortcuts can run anything, and the Claude Desktop bundles let Mail send. They have shipped that way since the first release. Narrowing them would stop sending for people who upgrade without reading a changelog, and Messages has no draft to fall back to, so they stay as they are in 1.x. If you don't need those actions, set the mode yourself. This config reads everything and changes nothing in your apps or folders. The unified server can still save its own preferences:

"env": {
  "APPLE_MAIL_MCP_SAFETY_PROFILE": "safe_readonly",
  "APPLE_MESSAGES_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_NOTES_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_SHORTCUTS_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_CALENDAR_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_REMINDERS_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_CONTACTS_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_FILES_MCP_SAFETY_MODE": "safe_readonly",
  "APPLE_SYSTEM_MCP_SAFETY_MODE": "safe_readonly"
}

Set Mail to safe_manage to get drafts you send yourself. In Claude Desktop the same settings are under Settings > Extensions > the extension > Configure.

What the allowlists limit

Setting Limit Default
APPLE_FILES_MCP_ALLOWED_ROOTS Files tools read and write only inside these folders. An allowed folder itself can't be moved or deleted Desktop, Documents, Downloads, iCloud Drive
APPLE_MAIL_MCP_ALLOWED_ATTACHMENT_ROOT Mail attaches local files only from this folder. A forward still carries the original message's own attachments Unset, so local attachments are off
APPLE_MESSAGES_MCP_ALLOWED_ROOTS Messages sends files only from these folders The Files folders
APPLE_SHORTCUTS_MCP_ALLOWED_ROOTS The files an agent passes to a shortcut, and the path it asks for output at, must be inside these folders The Files folders
APPLE_CALENDAR_MCP_ALLOWED_CALENDARS Reads and writes only in these calendars Unset, so all calendars
APPLE_CALENDAR_MCP_WRITE_ALLOWED_CALENDARS Writes only in these calendars. A write with no resolvable calendar is refused Unset
APPLE_REMINDERS_MCP_ALLOWED_LISTS Reads and writes only in these lists Unset, so all lists
APPLE_NOTES_MCP_ALLOWED_ACCOUNTS, APPLE_NOTES_MCP_ALLOWED_FOLDERS Reads and writes only in these accounts and folders Unset, so all
APPLE_SYSTEM_MCP_GUI_ALLOWED_APPS Keys, typing, clicks and menu choices go only to these apps, and never to a terminal app Unset, so GUI input is off

Paths are resolved before they are checked, so .. and symbolic links can't leave an allowed folder. The check happens just before the path is handed to the app, so something that swaps a link in that instant is not covered. Calendars, lists, accounts and folders are matched by name, so two with the same name are treated alike, and a Notes folder allowlist matches a nested folder by its own name.

What this does not prevent

  • Reading is not limited by the modes. In every mode the agent can read your mail, messages, notes, contacts, clipboard and the files in your allowed folders. Text it reads can ask it to read more, and anything else your client is connected to, such as a browser or another MCP server, can carry that data out. This server can't see or limit those tools.
  • Inside what a mode allows, an injected instruction has the same reach as you. If Messages can send, a message the agent reads can try to make it send. The server asks you directly only in a few places and only when your client supports it, such as which occurrences of a repeating calendar event to change. For everything else, your client's tool approval is the check on a single action. Tools that only read are marked read-only so clients can ask before the rest. Keep that approval on for tools that send, delete or run things.
  • Some allowed actions run code. shortcuts_run_shortcut runs whatever the shortcut does, which can include shell scripts, and a shortcut reads and writes wherever its own actions say. In safe_manage, files_open_path opens a file with its default app, and for an app or a script inside an allowed folder that means running it. system_open_application opens any installed app, and listing an app's menus brings that app to the front.
  • Mail's Outbox is only partly covered. Below full_access no tool sends, and a move into a mailbox named Outbox is refused, because Mail may send what is placed there. That check uses the English name, and whether Mail sends a message moved there has not been tested against the app.
  • Local does not mean private. The servers run on your Mac. Your client may send what the tools return to its model provider, and Apple apps may sync through iCloud or another account.
  • Streamable HTTP has no authentication. It is off by default. It binds only to a loopback address and rejects a foreign Host and a foreign or null Origin, which stops ordinary websites and DNS rebinding. A page served from a loopback address such as localhost or 127.0.0.1 is accepted, and any program or user account on the same Mac can call the tools while it runs. stdio, the default, has no such exposure.
  • Other software running as you is outside the model. The settings live in your client's config. The unified server keeps saved defaults and the last 100 recorded actions in ~/.apple-tools-mcp. From 1.1.8 it writes those files so only your account can read them; a file from an older version stays as it was until it is next written. The action history holds each action's result, which can include recipients, titles and text. Anything running as you can read or edit those files, and the unified server's own tools can change saved defaults, such as the archive mailbox or default calendar, in any mode. Those defaults only steer actions the app's mode already allows.
  • macOS permissions are granted to the host app. Automation, Full Disk Access and the rest go to the app that starts the server, such as Claude Desktop or a terminal, and cover everything that app runs. The Calendar, Reminders and Contacts helpers are built into ~/.apple-mcps/build and can hold their own grant.

How releases reach you

uvx can pick up a new release without you asking for it, so a release is code that runs with your permissions. Releases are built by GitHub Actions from a tagged commit and published to PyPI through trusted publishing, with no stored upload token. Every action in the workflows is pinned to a commit. Each GitHub release carries the bundles, wheels and a SHA256SUMS file. To stay on a version you have reviewed, pin it in your client config, as in uvx apple-tools-mcp@1.1.10.

How the claims are checked

The tables above are backed by tests that run in CI on macOS and Linux with the app bridges replaced by fakes. Each server with a safety mode has a tests/test_security_boundaries.py, and so do the unified server and the shared HTTP code. The per-server ones read the server's real tool list, so a tool that isn't classified fails the suite. A blocked call has to return an error and make no write call to the bridge. Path tests cover .., symbolic links and the allowed folder itself.

Tests with fake bridges can't show what the real apps do. Not checked against live apps on every release: that Mail, Messages and Shortcuts behave as their scripting interfaces say, and the Outbox case above.

For contributors

  • A new tool in a server with a safety mode goes into that server's permissions.py. The boundary tests fail until it does.
  • Check scope before existence, resolve a path before checking it, and name a refused path as it was given.
  • Report what the app did, not what the command returned. If the outcome is unknown, say so and tell the caller to check before retrying.
  • Document any new permission prompt or setting.

There aren't any published security advisories