macos-apps-mcp
Local macOS MCP server that reads and acts on Apple apps through pointer-based results, bounded content fetches, and tiered, audited writes.
Calendar: list events, check free/busy, and create/update/delete events with recurrence, alarms, and calendar targeting.
Reminders: list reminders/lists; create/update/complete/delete reminders; handle subtasks safely; tags/subtasks are read-only.
Mail: search and read mail across mailboxes, threads, bodies, attachments, stats, overview, needs-response/awaiting-reply, duplicates; create drafts/replies for review; send only when explicitly enabled; move/trash/undo, flag/read status, export .eml, save attachments, create mailboxes.
Notes: search/list/read bodies, create/update/delete notes.
Contacts: search contacts and create new contacts.
Messages: list chats, search messages, read recent conversations and message bodies (read-only; no sending).
Photos: search photos/albums, get metadata, export one still image.
Safari: list open tabs and open http/https URLs.
Music: search library/playlists, inspect now playing, control playback, play playlists, set volume, shuffle/repeat.
Shortcuts: list shortcuts and run one by name/UUID, with optional input and dry-run preview.
System/diagnostics: ping, current time, permission doctor, write audit log, usage counts.
Safety controls: local-only operation, read-only mode, adapter disabling, dry-run defaults for destructive actions, backups/undo for Mail moves/trashes, and sends off by default.
Provides tools for interacting with Apple Calendar and Reminders (and eventually Mail) through native macOS frameworks, enabling management of events, reminders, and mail.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@macos-apps-mcp show my upcoming calendar events"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
macos-apps-mcp
One local MCP server for Mail, Calendar, Reminders, Notes, Messages, Contacts, Photos, Safari, Music and Shortcuts on macOS. Searches and lists return pointers: an id, a one-line summary and a link that opens the item in its app. Bodies are a separate, capped fetch. Writes are tiered and audited; deletes, moves and sends preview first. macOS only. Python + FastMCP + uv. See DESIGN.md and CHANGELOG.md.
What you can ask
"What is on my calendar this week? When am I free on Thursday afternoon?"
events,free_busy"Which emails need a reply? Draft a reply to the first one."
mail_needs_response,mail_reply. The reply opens as a draft in Mail. It is not sent."Move the newsletters in my inbox to Archive. Show me first."
mail_search,move_mail,mail_undo. The move previews by default.mail_undoreverses it, within the known limits below.
Related MCP server: Apple Mail MCP Server
Safety and privacy
Local. No telemetry, and no network requests of its own: only a local unix socket (shim to daemon) and the dashboard on 127.0.0.1. Three tools reach past the Mac through the apps, when called: the send tools (off by default) send through Mail,
safari_openopens a page, andrun_shortcutruns a Shortcut that can call the web.Three tiers. Read, write and outbound. Send tools are absent until you enable them per app:
macos-apps-mcp allow-send mail(daemon) orMACOS_APPS_ALLOW_SEND=mail(stdio).MACOS_APPS_READ_ONLY=1registers reads only and wins over both.Dry run first.
dry_rundefaults to true fordelete_draft,move_mail,trash_mail,mail_undo,send_mail,reply_all,forward_mail,delete_reminder,delete_event,delete_noteandupdate_note. Other writes act when called.mail_replyopens a draft only.Audit log. Every write goes to
~/.local/state/macos-apps-mcp/audit.jsonl(under$XDG_STATE_HOMEwhen set). An update or delete by id also records the item as it was. Theaudittool reads the log back.Mail recovery. Before a Mail move or delete, each message is copied as
.emlunder~/.local/state/macos-apps-mcp/backup/mail/.mail_undoreverses the batch. No tool empties the Trash.Known limits. A message Mail downloaded only in part is backed up without its attachments. Moves and trashes through a Gmail label folder are refused, because Gmail reverts them about 2 minutes later.
sent: truemeans Mail accepted the message, not that it was delivered. All Mail facts.Dashboard. Under the signed
.appdaemon, a local page (127.0.0.1 only) shows every write, what it changed, and the backup behind each Mail batch. Invented data below:
First 5 minutes
Requires macOS, Python ≥ 3.12 and uv. uv provides uvx. The package is on PyPI. Point your MCP client at uvx. It fetches the package and runs it, so there is no clone and no venv path:
{
"mcpServers": {
"macos-apps": {
"command": "uvx",
"args": ["macos-apps-mcp"]
}
}
}If Claude Desktop cannot find uvx, set "command" to its full path: run which uvx in Terminal (a default uv install prints /Users/you/.local/bin/uvx).
For Claude Code:
claude mcp add macos-apps --scope user -- uvx macos-apps-mcpOr, instead of claude mcp add, install the Claude Code plugin. It starts the same server and adds a skill
that teaches the dry-run workflow. In Claude Code, run /plugin marketplace add elfensky/macos-apps-mcp, then
/plugin install macos-apps@macos-apps-mcp.
The CLI commands further down (allow-send, dedupe-mail) run the same way: uvx macos-apps-mcp allow-send.
Run doctor first. The doctor tool reports what is granted and opens no dialog (each Automation grant is read live; an app that is not running shows not_running). doctor(request=True), with you at the screen, opens the EventKit and Automation dialogs. The server needs:
EventKit: Calendar and Reminders.
Automation, one dialog per app: Mail, Notes, Contacts, Safari, Messages, Music.
Accessibility (optional, no dialog: turn it on in System Settings → Privacy & Security → Device Control and Data Access, called Accessibility before macOS 27, for the app that starts the server):
mail_replyandreply_allput your text above Mail's own quote. Without it, those two refuse and create nothing.doctorand the Health page show whether it is on.Full Disk Access (optional, no dialog: turn it on in System Settings → Privacy & Security → Full Disk Access, for the app that starts the server): Messages content, Photos, Mail's index reads, reminder tags and subtasks, and the fast Notes path. Without it, Notes and some Mail reads use a slower path. The rest return an error or a
coveragenote.
Under stdio, macOS gives each grant to the app that starts the server (Claude Desktop, Terminal, VS Code), so each client needs its own. The signed .app daemon holds one set for all: docs/DAEMON.md.
Load only the apps you use. MACOS_APPS_ADAPTERS_OFF=photos,music registers no tools for those apps, so your client holds fewer tools in its context. Under the daemon, see turn adapters off.
From source (development): use this path to work on the server itself.
git clone https://github.com/elfensky/macos-apps-mcp && cd macos-apps-mcp
uv syncThen point your MCP client at the project's own venv python — deterministic, and it carries the locked PyObjC wheels:
{
"mcpServers": {
"macos-apps": {
"command": "/absolute/path/to/macos-apps-mcp/.venv/bin/python",
"args": ["-m", "macos_apps_mcp"]
}
}
}Why not apple-mcp?
apple-mcp by Dhravya Shah pioneered one MCP server for all Apple apps. It is now archived. It returned full note and email bodies inline. This server returns pointers, fetches bodies only on request, and gates every write by tier. See CREDITS.md.
Something broke? Run doctor and paste its output into a GitHub issue. The report shows process paths, so check them before you post.
Tools
Reads return pointers; results are capped per adapter. Bodies/content are a separate bounded
fetch. Writes/actions are skipped entirely when MACOS_APPS_READ_ONLY is set (see below).
Calendar & Reminders — read/write (EventKit)
Tool | Args | Notes |
|
| list events as pointers |
|
| merged busy intervals + free gaps in the window; no event details |
|
| list reminders as |
| — | containers (id + name) to target writes |
| title, start, end (ISO), calendar, location, notes, |
|
| id, |
|
| title, due, list_name, notes, |
|
| name | new list on the default account; an exact duplicate name is refused |
| id | marks complete; completing a parent lists the subtasks it leaves open under |
| id, | deletes by id and proves it gone; a parent with subtasks is refused unless |
Event and reminder pointers carry folder = the calendar or list id, which
free_busy(calendars=…) and the write tools (calendar=, list_name=) take.
Reminder tags and subtasks (tags, parent = the parent's id) are read from the
Reminders store, read-only, and need Full Disk Access. When that store cannot be read, the
reminders still come back and coverage says why. No public API writes a tag or nests a
reminder, so no tool here does.
A write targets its container by name or Pointer.id; an ambiguous name raises rather than
guessing. Recurrence is an RFC 5545 RRULE: FREQ, INTERVAL, COUNT, UNTIL, BYDAY (with
ordinals such as 2TU or -1FR for monthly and yearly rules), BYMONTHDAY, BYMONTH,
BYYEARDAY and BYSETPOS, e.g. FREQ=MONTHLY;BYDAY=2TU;COUNT=6. A recurring reminder needs a
due date. BYWEEKNO, BYHOUR, BYMINUTE, BYSECOND and WKST are refused by name (EventKit
saves BYWEEKNO but expands only the first date), and so is any value out of range or any
combination RFC 5545 forbids; each part is checked again after the write. A start date that
does not match its rule is accepted — RFC 5545 counts it as the first occurrence — and the
event result says that the first occurrence is an extra one.
Mail — id-first read + draft-and-open (Automation)
Sending is off by default: reads, create_draft, and mail_reply never send — they
open a compose window for you to review. Outbound (send_mail, reply_all,
forward_mail) exists but only runs when the operator opts in via
MACOS_APPS_ALLOW_SEND, and dry_run still defaults to True even then.
Tool | Args | Notes |
| subject-OR-sender substring | inbox matches; id = stable RFC822 message-id, |
| id, mailbox | one message's plaintext, bounded + truncation-marked; |
| subject, from_, to, mailbox, account, since, until, unread, flagged, has_attachments, body, limit | indexed search via Envelope Index (at rest — no Mail launch unless |
| rebuild | builds/refreshes opt-in FTS body index from |
| id, limit (default 100) | whole conversation, oldest-first, includes your sent messages; deduped; over |
| — | every mailbox with total + unread, unread-first; includes Junk/Trash/All Mail; counts live (stored counters go stale) and per distinct message; account names come from Mail (launches it), UUIDs stand in when it's unreachable; On My Mac always named |
| mailbox (a search result's | attachment name/size/downloaded per message; works on Drafts |
| — | inbox mail likely needing your reply, ranked with a |
|
| mail you sent ≥ |
| to, subject, body | opens a draft for review — never sends; returns a locator |
| message_id, mailbox, reply_body, | native threaded reply (sets In-Reply-To/References) that keeps Mail's own quote, your text on top through Accessibility; opens for review — never sends |
| — | list Mail drafts as pointers (id + subject — to recipient) |
| id, | delete one draft by message-id; |
| name ( | creates the folder; missing parents auto-created. No delete counterpart — |
| ids (≤25), from_mailbox, to_mailbox, | file/archive/refile; every message backed up + logged before anything moves, so |
| ids (≤25), mailbox, | soft delete, and the only delete there is — Mail's |
| receipt, | replay a |
| ids (≤25), mailbox, | mark read/unread, flag (+colour). Re-issuing with the opposite value is the undo, so |
|
| report only — per-mailbox redundant-copy counts + worst offenders. Cleanup is the |
|
| gated by |
|
| gated; native reply-all that keeps Mail's own quote, your text on top through Accessibility; sends only after the text is confirmed, then sweeps its own Drafts copy ( |
|
| gated; original + attachments forwarded intact — no covering-note param (writing the body destroys both, device-verified) |
Messages — content via chat.db (read-only; Full Disk Access)
Tool | Args | Notes |
| — | conversation list (id + name); no content, no FDA needed |
| query, | search message text (decodes |
| contact (phone/email), | recent messages with one person; |
| id | full text of one message by guid |
Notes — NoteStore.sqlite reads + opt-in bodies
Tool | Args | Notes |
| title, snippet or body words |
|
| — | every live note (id + "Account / Folder" + snippet), Recently Deleted excluded |
| ids (≤ 50) | opt-in plaintext hydration → |
| title, body, optional | returns the stable x-coredata id; an unknown/ambiguous folder is refused, not guessed |
| id, title, body | full replace of title+body by id; the stable id is preserved and verified after write |
| id, | moves to Recently Deleted; |
Other read-only context
Tool | Args | Returns |
| name substring | cards (name, org, first phone + email) |
| search string |
|
| — |
|
| photo id | dates, location, place, people, EXIF subset, pixel size, kind; never image bytes or thumbnails |
| — | every open tab (url + title) |
| name substring (empty = all) | the user's Shortcuts; id = stable UUID, |
| — ( | health check / time / permission diagnostics |
| optional | recent write audit entries (newest first) — what macos-apps-mcp changed, with before/after pointers (enough to undo by hand) |
| — | per-tool call counts + the never-used list, for pruning rarely-used tools |
Actions (writes)
Tool | Args | Notes |
| given_name, family_name, organization | |
| name or id, optional | runs a Shortcut; returns a bounded output snippet |
| url | opens in a new tab; bare host → |
| photo id, | writes the edited still (the original when there is no edit) as a new file, name |
Read-only mode
Set MACOS_APPS_READ_ONLY=1 (or true / yes) to register reads only — every write and action
tool is skipped, a safe-deploy guard. (Reads may still open apps / read local stores.)
Turning adapters off
Set MACOS_APPS_ADAPTERS_OFF=photos,music (a comma list of adapter names) to register no tools
for those apps. Under the daemon, the file ~/.local/state/macos-apps-mcp/adapters_off holds the
same list and takes effect after a restart. Details: docs/DAEMON.md.
Dashboard
Under the daemon, http://127.0.0.1:47632 shows the audit trail, Health, the adapter switches,
usage and the Mail backups. Open the app, or run macos-apps-mcp dashboard, to open it with its
page key. The first open of the app also installs the daemon and links the CLI. Details:
docs/DAEMON.md. Both screenshots use invented data.
Cleaning up duplicate mail
Mail accumulates redundant copies of the same message — a UI drag copies rather than moves, Gmail
shows one message under both a label and All Mail, migrations leave copies on two accounts. The
read tools already collapse them, so this is only about what is physically on the server. Ask a
session for mail_duplicates() to see the damage, then clean up in a terminal:
macos-apps-mcp dedupe-mail # preview every mailbox — changes nothing
macos-apps-mcp dedupe-mail --verbose # also list the sets it will NOT touch
macos-apps-mcp dedupe-mail --execute --mailbox=<folder-url> # do one mailbox for realA CLI command, not a tool, for the same reason as allow-send: thousands of deletes against a
30-second-capped serialized worker is hours of work a human starts. It only collapses copies that
are byte-identical (size and date sent) — Mail gives no way to address one specific copy, so
the survivor is whichever one Mail leaves, and identical bytes are what make that safe. Sets that
differ are counted, left alone, and listed under --verbose.
Redundant copies go to Trash, in small batches, each its own mail_undo receipt. Emptying the
Trash is yours to do in Mail.app — nothing here can erase a message.
It is slow: ~1 minute per duplicate set against a real IMAP account (Mail's whose lookup scans
the whole mailbox), so a big folder is hours. Run it in a terminal you can leave, one mailbox at a
time. It is resumable — the plan is recomputed from Mail's index on every run, so interrupting it
costs nothing and re-running just finds less to do. A set Mail fails to delete is reported, not
retried silently.
Outbound (send) mode
Sending is off by default — the server creates drafts and never sends. Turn it on with:
macos-apps-mcp allow-send mail # or: messages / mail,messages / all / off
macos-apps-mcp allow-send # print the current settingThat persists the opt-in and restarts the daemon so it re-registers (registration happens at import, so a restart is unavoidable — reconnect your MCP client afterward). It is a CLI command, not a tool: the gate is your consent, so the model can neither grant itself sending nor restart the server out from under your session.
The same choice is available as MACOS_APPS_ALLOW_SEND in the environment, which is what a
stdio server reads (a set variable always wins over the persisted toggle):
Value | Effect |
unset (default) | no send tools are registered at all |
| Mail outbound only ( |
| named adapters (comma list) |
| every adapter's outbound |
MACOS_APPS_READ_ONLY always wins: with both set, no send tools are registered.
Send tools take dry_run, which defaults to True — deliberately inverted from the
id-addressed deletes. A delete targets an item a read already returned; a send constructs its
recipient, and a wrong recipient is the failure that matters. The dry run makes no call into Mail
at all and reports the resolved envelope; pass dry_run=False to actually send. reply_all is
the one exception: its dry run reads (never sends) the original message's actual to/cc
recipients, because that's exactly the recipient set a caller can't predict.
A successful send_mail / reply_all / forward_mail result (sent: True) means Mail
accepted the message — not that it was delivered. Device-verified: a perfectly-formed message
can sit in Mail's Outbox undelivered for minutes after send returns, and a stranded
recipient-less message can jam the outbox so later, valid sends queue behind it and never leave.
Every result also reports outbox_pending, Mail's current outbox count; when it's greater than
zero the result carries a note explaining that delivery is not confirmed and to check Mail ▸
Outbox.
A real reply_all keeps Mail's own quote and takes about a minute: Mail can autosave a copy of the
reply into Drafts that survives the send, so the call waits until 45 seconds after the reply window
opened and deletes that copy only when it is provably its own. The result's drafts_copy
(removed, none, late, unproven or unavailable) and a plain note say what it found; sent
stays true whatever that is, and nothing in Sent or All Mail is touched.
Run the doctor tool to check whether sending is actually enabled — deployment.outbound lists
every adapter currently send-enabled ([] if none), derived from the same registration logic
above rather than a re-read of the raw env var, so it can never disagree with what got registered;
deployment.outbound_note explains the state in prose.
Under the daemon deployment, setting MACOS_APPS_ALLOW_SEND in an MCP client's config is a
silent no-op: the client's env block reaches the shim, not the long-lived daemon process that
reads the variable at import time, and the shipped LaunchAgent plist ships no
EnvironmentVariables key. This is exactly why allow-send exists — it writes state the daemon
can read (~/.local/state/macos-apps-mcp/allow_send, home-pinned so the shell that writes it and
the launchd process that reads it always agree) and survives reboots, unlike launchctl setenv.
See docs/DAEMON.md ("Outbound (send) mode under the daemon").
Develop
uv sync
uv run pytest # unit tests (mock at the adapter boundary)
uv run pytest -m integration # real macOS / EventKit / TCC — run manually, never in CI
uv run ruff check . # lint (config in pyproject.toml)
uv run ruff format . # format
uv run macos-apps-mcp # run the server (stdio)ruff (lint + format, line-length 88) and pytest gate CI — full workflow in CONTRIBUTING.md.
Prior art & credits
macos-apps-mcp builds on prior work — the Apple Mail MCP it draws from, the EventKit/Photos servers it references, the project that pioneered the unified-Apple-MCP pattern, and FastMCP / PyObjC / the MCP spec it depends on. See CREDITS.md.
Available Tools
68 toolsauditAuditARead-only
Recent write audit entries (newest first) — what macos-apps-mcp changed, with
before/after pointers, enough to reverse a change by hand. since optional ISO
datetime (call now() to ground it) drops older entries; bounded to the last 50.
Each entry carries dry_run (resolved from the tool's default when the caller
omitted it, so a preview reads true) and caller (the MCP client's name and
version, plus session for a shim); caller is reported by the client, never an
identity check. Read-only; no permission (reads a local log at
~/.local/state/macos-apps-mcp).
Inputs: since. Returns: result
calendarsCalendarsARead-only
List calendars as pointers (id + name); use a name to target writes. The id
is the folder that events carry. Read-only; needs EventKit (Calendar) access.
See create_event to write.
Inputs: no named parameters. Returns: result
complete_reminderComplete ReminderADestructive
Mark a reminder complete by id. Completing a parent leaves its subtasks open
(Reminders.app hides them under a completed parent); the result lists them under
subtasks. Side effect (completes). Requires EventKit and Full Disk Access:
the subtask check reads the Reminders store first, and when the store cannot be
read the completion is refused and nothing changes. id from reminders.
Inputs: id (required). Returns: object
contactsContactsARead-only
Find contacts by name (substring). Returns pointers (id + name/org). Read-only; needs Automation access for Contacts. See create_contact to write.
Inputs: name (required). Returns: result
create_contactCreate ContactA
Create a contact (given/family name + organization). Side effect (creates); needs Automation access for Contacts.
Inputs: given_name (required), family_name, organization. Returns: object
create_draftCreate DraftA
Create a Mail draft and OPEN it for you to review and send — it NEVER sends on
its own. to a recipient address. Returns a locator dict ({"created", "subject",
"mailbox", "from", "note"}) — a freshly opened compose window has no stable id
yet, so this says where to find it (Drafts) instead of fabricating one; save it
and drafts() resolves it by its stable message-id. If the create FAILS partway,
Mail may still leave a stray autosaved draft behind (#133 — its autosave is
asynchronous and cannot be suppressed); drafts() + delete_draft() clear it.
A new draft is unthreaded; it is sent from from_address (an address one of
Mail's accounts owns, matched case-insensitively, Name <addr> accepted) or
Mail's default account.
An address no account owns is refused before Mail builds anything — Mail would
otherwise use its default account silently. To answer a message use
mail_reply, which is threaded and sent from the account that received it.
THE AUTOSAVE WINDOW: Mail stamps the Message-ID only when it autosaves the draft,
~10-15 SECONDS after this returns — asynchronously, and nothing can hurry it. So
drafts() called immediately shows nothing. That is normal. Wait for the window,
then drafts() resolves it. Do NOT retry this call because the draft has not
appeared: you get two drafts and the first one still arrives.
Additive (creates a draft; does not send/modify/delete); needs Automation access
for Mail (the ownership read is Automation too).
Inputs: to (required), body, subject, from_address. Returns: object
create_eventCreate EventA
Create an event. start/end ISO datetime — naive = local time, call now()
first; recurrence an RRULE with FREQ, INTERVAL, COUNT, UNTIL, BYDAY (ordinals
such as 2TU or -1FR for monthly and yearly), BYMONTHDAY, BYMONTH, BYYEARDAY,
BYSETPOS; BYWEEKNO, BYHOUR, BYMINUTE, BYSECOND and WKST are refused. all_day
takes a DATE
(2026-07-01); a timestamp with a UTC offset is rejected. A start that does not
match its recurrence is accepted (RFC 5545 counts it as the first occurrence) and
the result's summary says so.
alarms are minutes before the start, as in the Google Calendar API. For an all-day
event the offset counts from local midnight: -540 is 09:00 on the day, 900 is
09:00 the day before. On a DST-change day the alert shifts an hour, the same as
Calendar's own alerts. At most 5.
Side effect (creates); needs EventKit (Calendar) access. Target a calendar via
calendar — a calendar name OR a calendar Pointer id (from calendars). An ambiguous
name is refused (with the candidate ids listed), never guessed.
Inputs: end (required), start (required), title (required), notes, +5 more. Returns: object
create_mailboxCreate MailboxA
Create a Mail mailbox (folder) under one account. name may contain "/" to nest
("Projects/2026") — missing parents are created for you. account is a display name
("Personal"), an account UUID, or "On My Mac", and is REQUIRED: a folder has to land
somewhere specific.
Returns {created, mailbox, account, folder, note}. folder is the address token to
pass back verbatim to move_mail/mail_search; it works immediately, and
mail_overview will report Mail's own equivalent spelling of it once the account
syncs — both address the same mailbox. A "%" in the name is rejected (it cannot be
addressed unambiguously). There is no delete counterpart: removing a mailbox is not
scriptable, so do it in Mail. In a Gmail account the new mailbox is a label:
move_mail refuses it at either end (#291), and reads show it empty while Mail's
index does not mark it as a label. Additive (creates a folder; touches no message);
needs Automation access for Mail, plus Full Disk Access to resolve "On My Mac".
Inputs: name (required), account (required). Returns: object
create_noteCreate NoteA
Create a note and return its STABLE x-coredata id (unique in the ecosystem —
immediately usable with note_bodies). title/body are plaintext (escaped, so
markup is inert); folder an existing folder name (across accounts) or omit for the
default folder — an unknown/ambiguous name is refused. Verified after write (#49).
Side effect (creates); needs Automation access for Notes (verify read-back also uses
Full Disk Access, falling back to Automation).
Inputs: title (required), body, folder. Returns: object
create_reminderCreate ReminderA
Create a reminder. due/start ISO datetime — naive = local time, call now()
first; priority 0–9; recurrence an RRULE with FREQ, INTERVAL, COUNT, UNTIL,
BYDAY (ordinals such as 2TU or -1FR for monthly and yearly), BYMONTHDAY,
BYMONTH, BYYEARDAY, BYSETPOS; BYWEEKNO, BYHOUR, BYMINUTE, BYSECOND and WKST are
refused.
This tool cannot set tags or make a subtask (no public API; read-only via
reminders()).
Side effect (creates); needs EventKit (Reminders) access. Target a list via
list_name — a list name OR a list Pointer id (from reminder_lists). An ambiguous
name is refused (with the candidate ids listed), never guessed.
Inputs: title (required), due, notes, start, +3 more. Returns: object
create_reminder_listCreate Reminder ListA
Create a reminder list in the default Reminders account. An exact-name duplicate
is refused (it would make list_name= ambiguous). Returns the list pointer (id +
name); use the id as list_name=. Side effect (creates); needs EventKit
(Reminders) access.
Inputs: name (required). Returns: object
delete_draftDelete DraftADestructive
Delete one Mail draft by its message-id (from drafts()). dry_run DEFAULTS TO
TRUE — previews the draft that WOULD be deleted (pointer, no mutation); pass
dry_run=false to delete. Destructive but LOCAL — this deletes an unsent draft, it
never sends. Needs Automation access for Mail.
Inputs: id (required), dry_run. Returns: object
delete_eventDelete EventADestructive
Delete a calendar event by id. span REQUIRED if the target is recurring:
'this-event' (only this occurrence) or 'future-events' (this + all later); ignored
for single events. dry_run DEFAULTS TO TRUE — previews the event that WOULD be
deleted (pointer, no mutation); pass dry_run=false to delete.
Destructive; needs EventKit (Calendar) access. id from events.
Inputs: id (required), span, dry_run. Returns: object
delete_noteDelete NoteADestructive
Delete a note by id → Recently Deleted (recoverable ~30 days). Destructive.
Pass expect_title to verify the target before deleting (content-verify first).
dry_run DEFAULTS TO TRUE — previews the note that WOULD be deleted (pointer, no
mutation); pass dry_run=false to delete.
Needs Automation access for Notes. id from notes / notes_all.
Inputs: id (required), dry_run, expect_title. Returns: object
delete_reminderDelete ReminderADestructive
Delete a reminder by id. dry_run DEFAULTS TO TRUE — previews the reminder that
WOULD be deleted (pointer, no mutation); pass dry_run=false to delete. A parent
with subtasks is refused unless with_subtasks=true, because deleting a parent
deletes its subtasks too. A subtask indented in Reminders in the last few minutes
may not be visible yet.
Destructive; needs EventKit and Full Disk Access (the subtask check reads the
Reminders store). id from reminders.
Inputs: id (required), dry_run, with_subtasks. Returns: object
doctorDoctorARead-only
Diagnose per-surface macOS permissions + health with exact remediation.
Read-only and prompt-free by default. request=True also triggers permission
prompts (EventKit consent + per-app Automation probes) — use it once to grant.
Inputs: request. Returns: object
draftsDraftsARead-only
List Mail drafts, newest mailbox order. Returns {results, truncated?};
truncated means the 25 cap was reached. Each record is a citable pointer (id,
summary, deeplink, folder = "drafts") PLUS discrete subject and to fields, so
picking out one specific draft is a field comparison, not substring-matching the
summary — which collides whenever two drafts share a subject. The id is the RFC822
message-id: pass it to delete_draft, or to send_mail(draft_id=…) to send a
draft the human has approved.
A compose window Mail has not autosaved yet (~10-15s) is absent here — wait, do not
retry the create. Read-only; needs Automation access for Mail.
Inputs: no named parameters. Returns: object
eventsEventsARead-only
List calendar events as pointers. when: today | week | YYYY-MM-DD.
Each result's folder is its calendar's id (from calendars); pass it to
free_busy(calendars=…) or as calendar=. A read cannot tell that a series'
first occurrence is extra (each result holds its own occurrence start); the
create/update result says so. Read-only; needs EventKit (Calendar) access.
Inputs: when. Returns: result
export_mailExport MailA
Write messages out as importable .eml files (Full Disk Access).
Read AT REST — the same on-disk bytes the undo backups copy — so this never
launches Mail and needs no Automation. ids are RFC822 message-ids from a mail
read, comma-separated, max 25. dest_dir must be inside the allowed root
(~/Downloads by default; MACOS_APPS_FILE_ROOT moves it) and is created if needed;
a path outside it is REFUSED. Filenames are derived, never overwritten. A name that
already exists refuses the whole batch before any file is written; a refusal after
a write names the files already written.
.eml is the only format — it is lossless and opens in Mail and everything else,
and mail_body already covers "give me the text".
Returns {results, written, dest_dir, plane}. A message with no local file is
reported per-id as status: "absent" rather than failing the batch.
fidelity: "partial" means the .eml is missing its ATTACHMENT payloads — the body
is complete (#119). It is lossy for archival, not for reading.
Additive: writes new files, never overwrites or modifies mail.
Inputs: ids (required), dest_dir (required). Returns: object
export_photoExport PhotoA
Write one photo out as a still image file (Full Disk Access).
Writes the edited still, the image as Photos shows it; the original when there is
no edit. id is a photo id from photos (the old
<UUID>/L0/001 form is accepted). dest_dir must be inside the allowed root
(~/Downloads by default; MACOS_APPS_FILE_ROOT moves it) and is created if needed;
a path outside it is REFUSED. The filename is derived from the original name plus
the first 8 characters of the id, and an existing file is never overwritten.
Files over 250 MiB are refused.
Reads the library at rest, so it never launches Photos and needs no Automation. A
photo whose file is only in iCloud comes back status: "absent" with a reason:
nothing is downloaded. Videos are refused; a Live Photo exports its still only and
says skipped: "live photo motion". Hidden and Recently Deleted ids are refused.
Returns {id, status: "written", path, bytes, edited, dest_dir}. Additive: writes a new file, never modifies the Photos library.
Inputs: id (required), dest_dir (required). Returns: object
free_busyFree BusyARead-only
Availability in a window: merged busy intervals + free gaps. start/end are
ISO-8601 datetimes (naive local, e.g. 2026-07-20T09:00:00); calendars optional
Pointer ids (from calendars) to restrict to, else all. Returns {"busy": [...],
"free": [...]} of {start, end} — no event details. Read-only; needs EventKit.
Inputs: end (required), start (required), calendars. Returns: object
mailMailARead-only
Search the Mail inbox by subject OR sender substring. Pointers: id = the stable
RFC822 message-id, summary = subject — sender, deeplink = a message:// URL,
folder = "inbox" (this scans the inbox only) — pass that folder straight to
mail_body. Prefer mail_search, which reaches every mailbox and reports the
account. Returns {results, truncated?} — truncated means the 25-message cap was
reached and there may be more. Read-only; needs Automation access for Mail. Bodies
are never fetched.
Inputs: query (required). Returns: object
mail_attachmentsMail AttachmentsARead-only
List attachments on messages in a Mail mailbox, or on ONE message (Automation).
mailbox: the folder value from a mail_search result passed back VERBATIM (an
opaque imap://<uuid>/<path> token, not a name to retype), or a canonical system
mailbox — "inbox" | "sent" | "drafts" | "trash" | "junk" (resolved via Mail's
unified, cross-account accessors). query: optional
subject substring — an empty/omitted query lists ALL messages in the mailbox
(bounded), unlike mail/get_pointers which rejects an empty query. Use this to
confirm an attachment landed on a DRAFT before it's saved (a freshly opened compose
window has no stable id yet — once saved to Drafts it does, see drafts()).
message_id: address ONE message instead of scanning; with no mailbox the id
resolves on its own (Full Disk Access), and query is then ignored. Prefer it when
you know the message — a mailbox scan stops at 25 records, so the one you meant is
often past the cap. Either mailbox or message_id is required.
Returns {results, truncated?} over
[{id, deeplink, folder, summary, attachments: [{name, size, downloaded}]}].
id/deeplink identify the carrying message and folder names the mailbox read,
so a row is actionable on its own. An unsaved draft has no message-id yet:
its id is "" and it carries no deeplink — it is still listed.
Inputs: query, mailbox, message_id. Returns: object
mail_awaiting_replyMail Awaiting ReplyARead-only
Messages YOU sent more than days ago (1–365, default 3) with no reply, ranked
oldest-first, reason awaiting-reply. Uses real In-Reply-To/References threading. A
group send is cleared once any recipient replies. Each pointer carries
folder = "sent" — ready for mail_body/reply_all; no account (the scan spans
every account, see mail_needs_response). Returns {results, truncated?}; truncated
means the 25 cap was reached. Read-only. Fast path reads Mail's index at rest
(needs Full Disk Access; never launches Mail); without it, degrades to an
AppleScript scan — Automation access is the floor, and that path is SLOW on a
large store.
Inputs: days. Returns: object
mail_bodiesMail BodiesARead-only
Plaintext bodies for up to 20 message ids in ONE call — the bulk read behind
"catch me up on this thread". Opt-in and bounded: reading a thread stays
mail_search -> mail_thread -> mail_bodies, three calls total, and with
mail_thread(snippets=True) often only two.
Returns {"results": [{"id", "body"}], "missing": [ids]}. An id whose message can't
be read off disk is listed in missing — it is NEVER returned with an empty body,
so "unreadable" is never mistaken for "the sender wrote nothing". Each body is
truncated at the usual per-body budget with an explicit marker; if the batch total
is too large the call REFUSES (output_overflow) rather than dumping — ask for fewer
ids.
Reads Mail's message files at rest: fast, no Mail launch, and it sees messages that arrived seconds ago (unlike the mail_search(body=) FTS index, which only knows what mail_index_bodies last swept). Read-only. Needs Full Disk Access.
Inputs: ids (required). Returns: object
mail_bodyMail BodyARead-only
Full plaintext body of one message by id (bounded + truncation-marked).
id is a message-id from mail/mail_search — or from a note written months ago:
an id resolves ON ITS OWN, so a stored citation still works after the message was
filed or moved. mailbox is OPTIONAL and is the disambiguator: pass the folder
value from the SAME search result back VERBATIM — it is an opaque round-trip token
(imap://<uuid>/<path>), not a folder name to retype — or one of the five canonical
names ("inbox"/"sent"/"drafts"/"trash"/"junk"). With it the read is Automation-only
and an id absent from that mailbox raises; without it the id is resolved through
Mail's index (Full Disk Access) to the same copy every other read cites. Read-only.
Inputs: id (required), mailbox. Returns: result
mail_duplicatesMail DuplicatesARead-only
Where Mail is storing redundant copies of the same message — a REPORT, read-only.
Mail accumulates duplicate rows (a UI drag copies rather than moves, Gmail shows one
message under a label and All Mail, migrations leave copies on two accounts). The
read tools already hide them — mail_search/mail_thread/mail_overview report
result per Message-ID — so this exists to show what is still physically there.
Returns {redundant, mailboxes, worst, cross_account, note}: mailboxes is
{mailbox_url, total, distinct_, redundant} per mailbox worst-first, worst names
individual messages with the most copies ({mailbox_url, id, subject, copies}), and
cross_account counts rows whose Message-ID also exists under another account.
This tool CANNOT delete anything. Cleaning up is macos-apps-mcp dedupe-mail, run
a terminal by the user — thousands of deletes is a job a human starts, not a tool
call. Tell them that command rather than proposing per-message deletes.
Fast and read-only, straight from Mail's index at rest (so it may lag Mail by a few
minutes and never launches Mail). Needs Full Disk Access.
Inputs: limit. Returns: object
mail_index_bodiesMail Index BodiesARead-only
Build/refresh the opt-in FTS body index used by mail_search(body=…). Reads every
.emlx file at rest, .partial ones included (never launches Mail, never writes in
Mail's data). Resumable and size-capped — safe to re-run; a re-run continues where
it left off. rebuild=True re-indexes from scratch. Returns {indexed, skipped,
total_emlx, capped, indexed_this_run}. Read-only for Mail; the one thing it writes
is this server's own FTS sidecar. Needs Full Disk Access (it reads .emlx at rest),
NOT Automation.
indexed_this_run is THIS RUN's progress, NOT coverage: a resumable indexer's own
counters cannot say how much of the store is searchable (a fully-indexed store
re-runs as "14 newly indexed"). mail_search(body=…) is the one place that answers
"is body search usable?", and it does so on the path that needs it — an empty
result.
A .partial.emlx is missing its ATTACHMENTS, not its body, so partials are indexed
like any other message (#119). The residual unsearchable tail is ~0.5%: messages
Mail never stored a text part for.
Inputs: rebuild. Returns: object
mail_index_idsMail Index IdsARead-only
Build/refresh the Message-ID sidecar that enables the sqlite mail plane on
macOS 15 (Sequoia) and earlier (#201). Those systems' Envelope Index never stored
the RFC822 Message-ID (#199); this harvests it headers-only from the .emlx files
at rest into this server's own sidecar — never launches Mail, never writes in
Mail's data. On macOS 26+ the index has the column natively and this build is
unnecessary. Safe to re-run: a re-run harvests only what is missing and retries
messages whose files had not been downloaded yet; rebuild=True starts from
scratch. A full first build reads every message's headers — about a minute per
35k messages on a slow disk. Returns {harvested, mapped, total_ids, coverage,
skipped_no_file, skipped_no_message_id, rows_without_local_store,
high_water_rowid, index_rebuilt}. coverage is the number that matters:
messages it could not map stay uncitable, exactly as they would be on macOS 26
until Mail backfills its own column. Read-only for Mail; needs Full Disk Access
(it reads .emlx at rest), NOT Automation.
Inputs: rebuild. Returns: object
mail_needs_responseMail Needs ResponseARead-only
Inbox messages that likely need your response, ranked with a machine-readable
reason (flagged / unread-direct / unanswered-direct). Heuristic over headers +
message properties — no body is read; keeps direct-addressed, not-yet-replied mail.
Each pointer carries folder = "inbox", so an id from here goes straight into
mail_body/mail_reply with no second lookup. No account: this reads Mail's
unified inbox across every account, so the owning account is genuinely unknown —
use mail_search when you need it. Returns {results, truncated?}; truncated
means the 25 cap was reached. Read-only; needs Automation access for Mail.
Inputs: no named parameters. Returns: object
mail_overviewMail OverviewARead-only
Every mailbox with its message total and unread count, unread-first — the triage
entry point ("what's unread where?"). Rows are {account, account_id, mailbox,
folder, total, unread}: account_id is the same uuid every mail Pointer reports as
account, so ONE call here is the whole uuid -> name map; folder is the exact
mailbox url, so a mailbox picked here round-trips into mail_search/mail_body
without going back through name matching. Includes Junk/Trash/All Mail so you can
see what they are rather than having them silently filtered. Counts are computed
live, not read from Mail's own stored counters, which go stale, and each message is
counted ONCE even when it is filed in the same mailbox twice.
Account NAMES are looked up through Mail, so this tool does contact Mail (launching
it if it isn't running); when Mail is unreachable the account UUID stands in and
the counts — which never needed Mail — are still correct. An account Mail answers
but does not list (for example a removed one) shows "(account not in Mail)" as its
account; account_id keeps the uuid. The On My Mac store is
always shown as "On My Mac": Mail never lists it as an account.
Fast and read-only. Needs Full Disk Access for the counts and Automation access for
Mail for the account names.
Inputs: no named parameters. Returns: result
mail_replyMail ReplyA
Reply to a message, opening a threaded draft for review (Automation + Accessibility).
NEVER sends. message_id: the RFC822 id from a mail read. mailbox is REQUIRED: the
folder value from the SAME search result, passed back VERBATIM (an opaque
imap://<uuid>/<path> token; the five canonical names also work). Mail builds its
normal reply and sets the threading headers natively. include_quote (the default)
keeps Mail's own quote of the original — quote bar, Mail's attribution line,
formatting, inline images, the whole message — with your text put on top through
Accessibility. include_quote=False replaces the whole body with your text alone
(also through Accessibility), so no quote at all.
Accessibility is needed for macos-apps-mcp (System Settings > Privacy & Security >
Device Control and Data Access; called Accessibility before macOS 27). Mail comes
to the front for about a second, and the clipboard is borrowed and restored. The
call REFUSES when Accessibility is off, when Mail's reply window cannot be
confirmed, when the text does not land first, or when Mail's own reply has no quote
(Mail's setting "Quote the text of the original message" is off, or a text
selection is left in Mail's message viewer). A refusal before the reply window
opened leaves nothing. A refusal after it opened takes about 45 seconds: the call
discards the reply, waits for Mail's autosave, and deletes a Drafts copy only when
that copy is provably its own (it sits in the Drafts of the account the reply is
sent from, it landed between the reply verb and the discard, the text above Mail's
quote is exactly yours, the quote is still there with nothing below it, and no other
reply window to that message was open when the call started). A copy it cannot
prove, or cannot look for (not exactly your text, a localized Drafts, no Full Disk
Access), is left alone: the error then says a copy MAY be left. Look in the Drafts
of the account the reply is sent from, and again after a minute, because Mail saves
its copy late. Only "nothing was created" is clean.
Returns a locator dict — save the draft to Drafts and drafts() resolves it by a
stable message-id.
THE AUTOSAVE WINDOW: that message-id is stamped only when Mail autosaves the draft,
~10-15 SECONDS after this returns — asynchronously, and nothing can hurry it. So
drafts() called immediately shows nothing; that is normal, not a failed create.
Wait for the window, then drafts() resolves it. Do NOT retry this call
because the draft has not appeared: you get two drafts and the first still arrives.
Note a reply draft cannot be sent with send_mail(draft_id=…) — rebuilding it
would drop the threading headers, so that call refuses and points you at
reply_all(dry_run=False) instead.
Inputs: mailbox (required), message_id (required), reply_body (required), include_quote. Returns: object
mail_searchMail SearchARead-only
Indexed search across ALL mailboxes via Mail's Envelope Index — fast and
read-only. All filters optional and ANDed:
subject/from_/to substrings, mailbox a mailbox NAME exactly as mail_overview
reports it ("Junk E-mail" — case-insensitive substring; the encoded spelling also
works; a name that matches nothing RAISES — it is a typo, not an empty mailbox —
while a stale folder url just returns no results), since/until (epoch seconds on
received date),
unread/flagged. body searches message TEXT via the FTS index and is BEST-EFFORT —
it only sees messages already indexed by mail_index_bodies (run that first;
incomplete coverage is normal). At least one filter required. Returns citable
Pointers, newest first. Falls back to AppleScript inbox search on missing Automation
access / schema drift.
has_attachments means a real DOCUMENT — inline signature/newsletter images are
excluded, so it will not match a mail whose only attachment is a logo. account
takes a display name ("Personal") or a raw account UUID; the UUID form stays pure
sqlite, while a NAME has to be resolved through Mail and therefore LAUNCHES Mail if
it isn't running (an unknown name raises rather than guessing). Every other filter
reads the index at rest and never launches Mail.
Read-only; needs Full Disk Access, plus Automation access for Mail on the
account-name path and the AppleScript fallback.
Each Pointer carries folder (the round-trip mailbox token) and account (the
owning account's uuid — map it to a name with one mail_overview call), so a hit
is complete on its own: no second read to work out where it lives.
Returns {results, truncated?, plane?, coverage?}. truncated means the answer came
back AT limit (25 max) and there may be more — do NOT report such a search as
exhaustive. plane = "applescript-inbox" means the sqlite index was unreachable and
this scanned the INBOX ONLY. coverage explains an empty body= answer: bodies are
only matchable once mail_index_bodies has indexed them.
Inputs: to, body, from_, limit, +8 more. Returns: object
mail_statsMail StatsARead-only
Mail volume, read ratio and top senders over the last days (Full Disk Access).
Pure Envelope Index — never launches Mail. Counted per DISTINCT message, not per
row: the same message filed twice is one message (raw rows overcount by up to 3.6x
on a real store). account takes a raw account UUID — the account field every
mail Pointer and mail_overview row carries — not a display name.
Returns a compact aggregate: {window_days, since, messages, unread, read_ratio,
flagged, with_attachments, per_day, busiest_day, top_senders[10],
top_mailboxes[10], plane}. Deliberately token-bounded: top-N only, no per-day
series. top_mailboxes carries the decoded name plus folder (the round-trip url)
and the account uuid — map the uuid to a name with one mail_overview call.
Read-only.
Inputs: days, account. Returns: object
mail_threadMail ThreadARead-only
Every message in the conversation containing id, oldest-first — the transcript,
including messages YOU sent. Deduped: a message filed in several mailboxes appears
once. Returns {results, truncated?} of citable Pointers. Over limit messages the
OLDEST are dropped (and truncated says so), since a thread is usually read to
reply to it. Unknown id returns no results.
snippets=True adds a short snippet (first ~200 chars of the body) to each
pointer, read off disk in one pass — no Mail launch and no extra calls. Use it to
see WHO SPOKE LAST and roughly about what before deciding which messages are worth
hydrating; then mail_bodies(ids) for the few that are. A message whose body can't
be read carries no snippet key at all (absent, not empty). Leave it off for a
long thread you only need to enumerate.
Fast, read-only, no Mail launch. Needs Full Disk Access.
Inputs: id (required), limit, snippets. Returns: object
mail_undoMail UndoADestructive
Undo one recoverable Mail operation by its receipt id (from move_mail's
result, or from audit). A move is undone by moving the messages back to the exact
mailbox each came from — recorded per message before the original ran.
dry_run DEFAULTS TO TRUE: preview which messages would be restored, then pass
dry_run=False. The undo is itself backed up, logged and verified, and returns its
own receipt — so an undo can be undone. A receipt for an operation with no
destination mailbox cannot be replayed; the error names the directory holding the
preserved message bytes for manual re-import.
Undoing a batch moved into a mailbox that already held pre-existing copies of the
same Message-ID moves those copies back too — the by-ID act moves every copy of a
Message-ID, and undo is an ordinary move. A receipt whose targets recorded
unknown (a timeout mid-act) is replayed the same as ok.
A move into a Gmail label folder or a unified mailbox name cannot be replayed; the
error names the source folder and how to restore by hand.
Destructive (it moves mail); needs Automation access for Mail and Full Disk Access.
Inputs: receipt (required), dry_run. Returns: object
message_bodyMessage BodyARead-only
Full text of one Message by id (chat.db, read-only). Decodes the attributedBody
typedstream when message.text is NULL (the modern norm); returns "" for a message
with no text. Needs Full Disk Access. id is a message guid from messages_search or
messages_with.
Inputs: id (required). Returns: result
messages_chatsMessages ChatsARead-only
List Messages conversations (id + name). No content; sending isn't supported. Read-only; needs Automation access for Messages.
Inputs: no named parameters. Returns: result
messages_searchMessages SearchARead-only
Search Messages by text content (chat.db, read-only), newest first. Pointers:
id=message guid, summary=[date] sender: snippet. Needs Full Disk Access (raises a
typed error if not granted). Text-only for now; sending isn't supported.
Inputs: query (required), limit. Returns: result
messages_withMessages WithARead-only
Recent Messages by phone or email (chat.db, read-only), newest-first.
contact a phone number or email; country an optional calling code or 2-letter
region (e.g. '+32' or 'BE') to resolve a national number — default from the Mac's
locale, never +1. Needs Full Disk Access (raises a typed error if not granted).
Inputs: contact (required), limit, country. Returns: result
move_mailMove MailADestructive
Move messages between Mail mailboxes — archive, file, or refile. DESTRUCTIVE but
recoverable: every message's bytes are copied to a backup directory and its source
mailbox is logged BEFORE anything moves, so mail_undo puts the batch back.
dry_run DEFAULTS TO TRUE — the preview reads Mail and reports, per id, whether it
is actually present in from_mailbox. Pass dry_run=False to move.
ids are RFC822 message-ids from a mail read, comma-separated; max 25 per call and
the cap is not overridable. BOTH mailboxes are required and are address tokens.
from_mailbox must be the folder value from the read that produced the ids,
passed back VERBATIM (an opaque imap://<uuid>/<path> token, not a name to
retype); a canonical name there is refused. to_mailbox may also be one of the
canonical "inbox"/"sent"/"drafts"/"trash"/"junk", which files into the SOURCE
message's own account (it names Mail's cross-account accessor, not one mailbox),
so it is refused for an On My Mac source — that store has none of the five. A
Gmail label folder is refused as either end (a move out of a label left a copy
on device, so mail_undo cannot reverse a move into one), and a canonical
to_mailbox is refused when the source account has Gmail label folders. Pass a
folder url from mail_overview when in doubt. To archive, move into a mailbox
named Archive — there is no separate archive tool.
Cross-account moves are supported and leave exactly ONE copy (out of a Gmail label
they do not, which is why a label is refused). Verification is
by-ID (#206): each copy's internal reference must go dead after the move, and the
destination's count of that Message-ID must rise — presence alone can't tell a
landed copy from a pre-existing one. A Message-ID with several copies in the
source gets every one of them moved; ok means every copy left. A per-id
status reports what really happened rather than assuming success. If the call
times out mid-batch, the error names the receipt — re-run the same batch, or
mail_undo it.
Returns {op, receipt, count, succeeded, targets, destination, backup_dir, undo} —
keep receipt to undo the batch. Needs Automation access for Mail,
plus Full Disk Access to locate each message's file for the backup.
Inputs: ids (required), to_mailbox (required), from_mailbox (required), dry_run. Returns: object
music_controlMusic ControlA
Control Music playback: action in play|pause|playpause|next|previous. Additive, reversible player-state change; needs Automation access for Music. Returns the resulting now-playing state.
Inputs: action (required). Returns: object
music_searchMusic SearchARead-only
Search the Music library + playlists as pointers. query optional
name/artist/album substring (empty lists all, bounded). Read-only; needs Automation
access for Music. Pointers only (id = persistent ID); no audio plays.
Inputs: query. Returns: result
note_bodiesNote BodiesARead-only
Hydrate plaintext bodies for up to 50 note ids (opt-in; search stays pointer-only). Returns [{"id", "body"}]; unknown ids are silently skipped. Read-only; needs Automation access for Notes. Get ids from notes / notes_all.
Inputs: ids (required). Returns: result
notesNotesARead-only
Search Notes by title, snippet and note body. Returns {results, truncated?, plane?, coverage?}: results are pointers (id + snippet); title/snippet hits come first, body-only hits after. Body words split at spaces and punctuation only, so a word inside unspaced Chinese or Japanese text is found in a title or snippet, never in a body. Read-only. Fast path reads NoteStore.sqlite (needs Full Disk Access) and searches bodies in memory, never on disk, skipping locked notes; without it, degrades to an Automation (Notes) title search, and plane/coverage say so. Automation access is the floor. See notes_all, note_bodies.
Inputs: title (required). Returns: object
notes_allNotes AllARead-only
List the 25 newest notes as pointers (id + "Account / Folder" + snippet), excluding Recently Deleted. Read-only. Fast path reads NoteStore.sqlite (needs Full Disk Access); degrades to Automation (Notes) enumeration without it (very large libraries can hit the osascript timeout, all-or-nothing). See note_bodies.
Inputs: no named parameters. Returns: result
nowNowARead-only
Current local date, time, timezone, UTC offset, weekday. No permission needed.
Call this FIRST to ground any relative date ("today", "tomorrow", "next Friday") — never guess the date from memory. Every date parameter on the write tools is interpreted in THIS timezone (naive ISO = local time).
Inputs: no named parameters. Returns: object
now_playingNow PlayingARead-only
Current Music player state + track (name/artist/album/id/position/duration), or {"state": "stopped"}. Read-only; needs Automation access for Music.
Inputs: no named parameters. Returns: object
photo_albumsPhoto AlbumsARead-only
List Photos albums as pointers: id = the album uuid, summary = title (n photos), folder = the album's folder path (/ joined) when it sits in a folder.
Returns
{results, truncated?}, at most 100, ordered by folder then title; same-title
albums stay separate. Needs Full Disk Access (osxphotos reads the library at rest).
Read-only; the albums' photos are not listed — search with photos.
Inputs: no named parameters. Returns: object
photo_infoPhoto InfoARead-only
Metadata for one photo by id: id, filename, title, description, kind (photo,
video, live photo), edited, taken/added/modified (ISO-8601), latitude, longitude,
place, persons, camera_make, camera_model, lens, focal_length, aperture,
shutter_speed, iso, width, height. Photo ids come from photos; the old
<UUID>/L0/001 form is accepted too. Reads the Photos library at rest through
osxphotos, so it needs Full Disk Access (not Automation). Read-only; never returns
image bytes, thumbnails or file paths. An unknown or Recently Deleted id raises; a
Hidden one is refused (unhide it in Photos first).
Inputs: id (required). Returns: object
photosPhotosARead-only
Search Photos by one string, matched (case, accent and smart-quote blind)
against original filename, filename, title, description, keywords, place name,
person names and labels. Returns {results, truncated?}: pointers (id = the Photos
uuid, summary = title · filename · date), newest first, at most 25; truncated
means the 25 cap was reached and there may be more. Hidden and Recently Deleted
photos never match. Pass the id to photo_info or export_photo. Reads the library at
rest through osxphotos, so it needs Full Disk Access (not Automation). Read-only;
never returns image bytes or thumbnails.
Inputs: query (required). Returns: object
pingPingARead-only
Health check — confirms macos-apps-mcp is alive. No permission needed.
Inputs: no named parameters. Returns: result
play_playlistPlay PlaylistA
Play a Music playlist by its persistent id (from music_search). Additive, reversible; needs Automation access for Music. Returns the resulting now-playing state.
Inputs: id (required). Returns: object
reminder_listsReminder ListsARead-only
List reminder lists as pointers (id + name); use a name to target writes. The
id is the folder that reminders carry. Read-only; needs EventKit (Reminders)
access. See create_reminder to write.
Inputs: no named parameters. Returns: result
remindersRemindersARead-only
List reminders as pointers in {results, coverage?}. due: today | overdue |
this-week | a list name. Each result may carry folder (its list's id, from
reminder_lists; pass it as list_name=), tags and parent (the parent
reminder's id, for a subtask). Requires EventKit and Full Disk Access (tags and
parent links come from the Reminders store). Tags and subtasks are read-only:
macOS has no public API that writes them, so no tool here can add a tag or nest a
reminder — do that in Reminders.app. If the Reminders store cannot be read, results
still come back and coverage says why tags and parent links are missing.
Read-only. Hydrate none — pointers only.
Inputs: due. Returns: object
run_shortcutRun ShortcutADestructive
Run a Shortcut by name OR its UUID id (from shortcuts — the id is unambiguous
across renames/duplicate names); optional input_text piped in. Returns a pointer
citing the run + a bounded output snippet. dry_run=True resolves the shortcut
and reports what WOULD run without running anything. Side effect (runs arbitrary
automation the user owns, which may reach beyond this machine — a shortcut can
call web services); uses the Shortcuts CLI (no TCC prompt).
Inputs: name (required), dry_run, input_text. Returns: object
safari_openSafari OpenA
Open a URL in a new Safari tab; adds https:// if no scheme (http/https only). Side effect (opens a tab); needs Automation access for Safari. See safari_tabs.
Inputs: url (required). Returns: object
safari_tabsSafari TabsARead-only
List open Safari tabs as pointers (url + title). Bounded to 50. Read-only; needs Automation access for Safari. See safari_open to open a URL.
Inputs: no named parameters. Returns: result
save_mail_attachmentSave Mail AttachmentA
Save ONE attachment to disk (Automation, plus Full Disk Access to resolve a bare message_id).
List them with mail_attachments first, then address one by name or — when
several on the same message share a name, which is ordinary — by its
attachment_id (the id field on the attachment row). An ambiguous name RAISES
and lists the ids rather than picking one.
dest_dir must be inside the allowed root (~/Downloads by default;
MACOS_APPS_FILE_ROOT moves it) and is created if needed; a path outside it is
REFUSED. The filename is DERIVED from the attachment's name — an attachment name
comes from whoever sent the mail, so it is treated as hostile — and an existing
file is never overwritten. Writes are capped at 25 MiB.
mailbox is optional: the folder value from the read that produced message_id,
verbatim. Omitted, the id resolves on its own through the index.
Saving an attachment Mail has not downloaded makes Mail FETCH the message first, so this can take much longer than a read; if the account is offline the file lands empty, and it is then removed and reported as a failure rather than left behind. Returns {saved, name, original_name, bytes, reported_size, was_downloaded, id, folder}. Additive: writes a new file, never modifies mail.
Inputs: dest_dir (required), message_id (required), name, mailbox, +1 more. Returns: object
set_modeSet ModeA
Set Music shuffle or repeat: mode in shuffle|repeat, on=true/false (repeat on→all, off→off). Additive, reversible; needs Automation access for Music. Returns the resulting now-playing state.
Inputs: on (required), mode (required). Returns: object
set_volumeSet VolumeA
Set the Music app sound volume (0–100). Additive, reversible; needs Automation access for Music. Returns the resulting now-playing state.
Inputs: level (required). Returns: object
shortcutsShortcutsARead-only
List/search Shortcuts by name (empty lists all). Pointers: id = the shortcut's stable UUID (survives renames), summary = name, deeplink = shortcuts://run-shortcut. Read-only; uses the Shortcuts CLI (no TCC prompt). See run_shortcut to invoke.
Inputs: name. Returns: result
trash_mailTrash MailADestructive
Move Mail messages to Trash — soft delete, and the ONLY delete there is.
Mail's scripting layer cannot permanently erase a message: delete moves it to the
owning account's Trash, and nothing in the dictionary empties Trash from a script.
Emptying Trash is something the user does in Mail.app. So this is always
recoverable, and there is no permanent-delete tool to ask for.
DESTRUCTIVE but recoverable: every message's bytes are copied to a backup directory
and its source mailbox logged BEFORE anything is deleted, so mail_undo moves the
batch back out of Trash. dry_run DEFAULTS TO TRUE — the preview reports, per id,
whether it is actually present in mailbox. Pass dry_run=False to delete.
ids are RFC822 message-ids from a mail read, comma-separated; max 25 per call and
the cap is not overridable. mailbox is REQUIRED and must be the folder url from
the read that produced the ids, passed back VERBATIM — not one of the canonical
names: Mail files a deleted message in its OWNING account's Trash, and a unified
name ("inbox") cannot say which account that is. A Gmail label folder is refused
(a delete there is not a delete of the message, #287); use the message's
[Gmail]/All Mail folder.
Returns {op, receipt, count, succeeded, targets, destination, backup_dir, undo} —
keep receipt to undo the batch. Each copy is deleted by Mail's internal id and
verified by the account Trash's count rising, or every one of its copies' source
reference going gone within a bounded wait (12 checks, 0.5s apart — up to 5.5s) —
Mail's delete clears the source ASYNCHRONOUSLY, so "gone from the source" alone is
not a signal that can be read straight after the call. A message with several
stored copies gets every one of them trashed. If the call times out mid-batch,
re-run the same batch or
mail_undo the receipt. Needs Automation access for Mail, plus Full Disk Access
to locate each message's file for the backup.
Inputs: ids (required), mailbox (required), dry_run. Returns: object
update_eventUpdate EventADestructive
Update an event by id (full replace). Omit calendar to keep the event in its
calendar; name one to move it. start/end ISO — naive = local time.
recurrence an RRULE with FREQ, INTERVAL, COUNT, UNTIL, BYDAY (ordinals such as
2TU or -1FR for monthly and yearly), BYMONTHDAY, BYMONTH, BYYEARDAY, BYSETPOS;
BYWEEKNO, BYHOUR, BYMINUTE, BYSECOND and WKST are refused. all_day takes a
DATE (2026-07-01); a timestamp with a UTC offset
is rejected. A start that does not match its recurrence is accepted (RFC 5545
counts it as the first occurrence) and the result's summary says so.
alarms are minutes before the start, as in the Google Calendar API. For an all-day
event the offset counts from local midnight: -540 is 09:00 on the day, 900 is
09:00 the day before. On a DST-change day the alert shifts an hour, the same as
Calendar's own alerts. At most 5. Omit alarms to keep the event's alarms; []
removes them all.
span REQUIRED if the target is recurring: 'this-event' (only this occurrence) or
'future-events' (this + all later); ignored for single events.
recurrence='none' on a repeating event is refused and changes nothing:
update_event cannot stop a series. To end it, use
delete_event(span='future-events'), which deletes this occurrence and all later
ones. On a single event 'none' changes nothing about recurrence.
Side effect (full-replace update); needs EventKit (Calendar) access. id from
events.
Inputs: id (required), end (required), start (required), title (required), +7 more. Returns: object
update_mail_statusUpdate Mail StatusADestructive
Mark Mail messages read/unread and flag/unflag them, optionally with a colour.
ids are RFC822 message-ids from a mail read, comma-separated; max 25 per call.
mailbox is OPTIONAL and is the disambiguator: pass the folder value from the
SAME read back VERBATIM (an opaque imap://<uuid>/<path> token) and the whole batch
is addressed directly; omit it and each id is resolved through Mail's index (Full
Disk Access), which also lets one call span several mailboxes.
At least one of read, flagged or flag_color is required. flag_color is a
name — red/orange/yellow/green/blue/purple/grey — and setting one implies flagged.
dry_run defaults to FALSE: this changes two booleans, destroys nothing, and
re-issuing it with the opposite value is the undo — so it does not use the backup
plane that move_mail does. Each message is re-read after the write, so the per-id
results report what actually persisted. Destructive (it modifies stored messages);
needs Automation access for Mail.
Inputs: ids (required), read, dry_run, flagged, +2 more. Returns: object
update_noteUpdate NoteADestructive
Update a note by id (full-replace title+body); the stable id is preserved and
verified (#49). dry_run DEFAULTS TO TRUE — previews the CURRENT title and body
size against the NEW ones (reads Notes; makes no write); pass dry_run=false to
overwrite. title/body plaintext (escaped). folder must be omitted — update
cannot move a note between folders and refuses a non-None folder loudly.
Side effect (full-replace update); needs Automation access for Notes. id from
notes / notes_all / create_note.
Inputs: id (required), title (required), body, folder, +1 more. Returns: object
update_reminderUpdate ReminderADestructive
Update a reminder by id (full replace). Omit list_name to keep the reminder in
its list; name one to move it. due/start ISO (naive = local).
recurrence: RRULE to set ('none' to stop repeating) with FREQ, INTERVAL, COUNT,
UNTIL, BYDAY (ordinals such as 2TU or -1FR for monthly and yearly), BYMONTHDAY,
BYMONTH, BYYEARDAY, BYSETPOS; BYWEEKNO, BYHOUR, BYMINUTE, BYSECOND and WKST are
refused. REQUIRED (rule or 'none')
when the target reminder repeats — omitting it is refused so a rename can't
silently kill the series.
This tool cannot set tags or make a subtask (no public API; read-only via
reminders()).
Side effect (full-replace update); needs EventKit (Reminders) access. id from
reminders.
Inputs: id (required), title (required), due, notes, +4 more. Returns: object
usageUsageARead-only
Per-tool call frequency, for pruning rarely/never-used tools. Returns tools
(each {tool, count, first, last}, busiest first), never_used (registered tools
with zero calls — the pruning list), and total_calls. Read-only; no permission
(reads a local log at ~/.local/state/macos-apps-mcp).
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 68 tools
Most tools are domain-distinct, but Mail contains several overlapping boundaries: mail vs mail_search, move_mail vs trash_mail, mail_body vs mail_bodies, and two similarly scoped response-oriented tools. The detailed descriptions help, but an agent still faces many closely related Mail read/search/body choices and legacy alternatives.
All names are snake_case, but conventions are mixed: verb_noun (create_reminder), noun_verb (mail_search, safari_open), and bare resource nouns (contacts, notes, photos). Mail and Photos also prefix inconsistently, so names are readable but not reliably predictable.
68 tools is far beyond the well-scoped 3-15 range and exceeds the rubric's 50+ heavy threshold; Mail alone exposes roughly 20-plus tools plus indexing and utility maintenance. The broad macOS-app scope explains some of the count, but not enough to justify this surface size for an agent.
Coverage is broad across apps, but Mail has a critical dead end: drafts and threaded replies can be created, yet no send_mail or reply_all tool exists despite descriptions referencing them. Contacts also lack update/delete, and several read/export workflows are present while their corresponding lifecycle operations are absent.
Maintenance
Related MCP Connectors
Read, search and manage iCloud Mail, Calendar and Contacts from Claude and other MCP clients.
A MCP server that works with Google Calendar to manage event listing, reading, and updates.
A MCP server that works with Outlook Calendar to manage event listing, reading, and updates.
MCP server for Nylas — read email, calendars, events and contacts, and send email or create events.
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.7153 npm3,114MIT
- AlicenseBqualityAmaintenanceEnables AI assistants to interact with Apple Mail through natural language, providing comprehensive email management including reading, searching, composing, organizing, and analyzing emails across all configured accounts. Includes an expert skill system that teaches intelligent email workflows and productivity strategies.28257MIT
- AlicenseNot gradedqualityAmaintenanceProvides native integration with Apple Reminders and Calendar on macOS, enabling full CRUD operations and smart task management through the Model Context Protocol. It allows users to search, create, and organize reminders and calendar events using natural language via the macOS EventKit framework.237MIT
- AlicenseBqualityDmaintenanceA macOS MCP server that provides AI agents with secure access to Calendar, Reminders, Notes, and Health data via native Apple APIs.3023MIT