apple-mcp
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 "Install 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., "@apple-mcpshow 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 consolidated MCP server for native macOS apps — Calendar & Reminders read/write, Messages & Notes content search over the native stores, id-first Mail with draft-and-open replies, plus read-only context and a few actions across Contacts, Photos, Safari, and Shortcuts. Python + FastMCP, managed with uv.
Replaces the pile of Apple MCP servers a life-cockpit otherwise juggles with a single modular adapter layer you own. Every read returns pointers (id + one-line summary + open-in-app deeplink), never full bodies — so it structurally avoids the context-bloat bug of the archived flagship server; bodies are a separate, bounded, opt-in fetch.
macOS only. See DESIGN.md for the rationale and CHANGELOG.md for what's landed.
Install
Requires macOS and Python ≥ 3.11.
From source (works today):
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"]
}
}
}From PyPI (once published — see the CHANGELOG): uvx macos-apps-mcp runs the server with no clone,
and the MCP config becomes "command": "uvx", "args": ["macos-apps-mcp"] (same "macos-apps" key).
Permissions (macOS TCC)
Grant access when macOS prompts — the first call to each app triggers its dialog:
EventKit — Calendar + Reminders (read/write).
Automation (per app) — Mail, Notes, Contacts, Photos, Safari, Messages actions/reads.
Full Disk Access — required for Messages content (
chat.db) and the fast Notes path (NoteStore.sqlite). Notes degrades to Automation without it; Messages content raises a clear, typed error telling you to grant it. Run thedoctortool to see what's granted.
Related MCP server: nucleus-apple-mcp
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 pointers |
| — | containers (id + name) to target writes |
| title, start, end (ISO), calendar, location, notes, |
|
| id, |
|
| title, due, list_name, notes, |
|
| id | marks complete |
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 subset, e.g.
FREQ=WEEKLY;INTERVAL=2;COUNT=10); a recurring reminder needs a due date; unsupported parts
(BYDAY, …) are rejected, not ignored.
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), quoted original, 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 threading headers |
|
| 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 substring | matching notes (id + snippet); diacritic- & smart-punctuation-insensitive |
| — | 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 | media (filename); matches the Photos search field |
| — | 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 → |
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.)
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.
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- MIT
- AlicenseBqualityBmaintenanceA macOS MCP server that provides AI agents with secure access to Calendar, Reminders, Notes, and Health data via native Apple APIs.3018MIT
- Alicense-qualityDmaintenanceMCP server for Apple Calendar via native EventKit API with proper recurring event support.248MIT
- Alicense-qualityAmaintenanceMCP server for Apple Calendar, Mail, Reminders, and Files on macOS using native frameworks.1912MIT
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/elfensky/macos-apps-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server