Apple Mail MCP logo

Apple Mail MCP

Fast local Apple Mail MCP: indexed search, full-text bodies, verified sends, triage. macOS.

Install Apple Mail MCP

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for apple-mail-mcp, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

5/5 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars34Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

βœ‰οΈ apple-mail-mcp

Your Apple Mail, fully agent-operable.

Runs locally on your Mac. It opens the Mail store read-only, returns only what a client asks for, and sends only when the client explicitly calls the send tool. No third-party relay, no cloud copy of your mail.

Code
uvx apple-mailbox-mcp setup

Measured on a 300k-message store: addressing one message 0.1 ms via Mail's own index, against 7 to 10 s for the AppleScript whose-clause; full-text search p95 under 1 ms. Method and script: docs/benchmarks.md.

Use Claude Code, Claude Desktop, Codex, Cursor, VS Code, or any local MCP client to search, read, triage, and send email through Apple Mail β€” your mailbox becomes something you can ask, search and delegate to β€” find anything in seconds, file hundreds of messages through a reviewed plan, send polished mail as the right identity, and let Exchange deliver scheduled messages even while your Mac is asleep.

ci tools platform python mcp contract


demo: uvx install, status, and a Claude search over a 298k-message store

✨ What you can do

πŸ” Ask your mailbox questions. "What did Maria send me about the memo last week?" Search runs at database speed β€” sender, mailbox, dates, unread, attachments β€” and reconstructs whole conversations.

πŸ•³οΈ Find what Mail itself can't. Mail's built-in search only skims the first line of most messages. apple-mail-mcp indexes every message body on your Mac β€” and for Exchange accounts it even fetches the bodies Mail never downloaded, straight from your own mailbox on the server. Queries that returned nothing return twenty.

🎭 Send as the right you. Work mail through the work lane, personal through Gmail β€” one parameter picks the identity. Every message is composed from scratch as clean, standards-correct email that renders everywhere, including Outlook (the AppleScript compose path that arrives blank in Outlook is the reason this project exists).

⏰ Schedule like "Send Later", but scriptable. A scheduled message is frozen in full β€” attachments, identity, exact text, and since 1.8.2 the threading headers, so a scheduled reply lands in the conversation it answers. Exchange can execute it server-side at the requested time, lid closed; other providers use a local background sender and deliver on its next pass (or just after the Mac wakes).

πŸ—‚οΈ Triage at scale, without fear. "File these 40 newsletters" becomes a reviewable plan: nothing moves until it is approved, every message is re-checked before it is touched, and the result is verified against Mail's own records afterward. Delete means Mail's Trash β€” nothing is ever erased.

πŸ“ Draft where your drafts live. Compose into your real Exchange Drafts folder, ready to open in Outlook or OWA β€” created, never auto-sent.

⚑ Why it's different

Every other Apple-Mail MCP drives AppleScript for both finding and acting. This one doesn't β€” and it shows:

OperationAppleScript whose-clauseapple-mailbox-mcp
πŸ” Search 300k messagesseconds-to-timeoutmilliseconds
🎯 Address one message in a 71k mailbox7–10 s (measured)< 0.1 ms
βœ‰οΈ Send mailbody renders blank in Outlookrenders everywhere, plain+HTML
⏰ Schedule mailβ€”server-side on Exchange; reliable local queue everywhere else
πŸ—‚οΈ Bulk triageone call per message, fire-and-forgetone reviewed plan, one apply, verified

Every number above was measured on a live ~300,000-message store; the script and full method are in docs/benchmarks.md.

If the benchmarks hold up on your mailbox, a ⭐ helps others find this.

πŸ›‘οΈ Built to be trusted

  • βœ… Plan β†’ review β†’ apply β†’ verify. Bulk actions are frozen into a plan you can read before anything happens; the outcome is confirmed against Mail's own store afterward β€” never assumed.
  • πŸ—‘οΈ Nothing is ever erased. "Delete" files into Mail's Trash, and destructive plans have their own separate, capped door.
  • πŸ‘“ Read-only mail mode. Set EMAIL_MCP_READ_ONLY=1 and only the 11 non-mutating mail tools exist in the session. Search may still maintain its local body index, and attachment retrieval writes the requested file to the configured temporary directory.
  • πŸ’Ύ A crash-safe scheduled queue. Manifest updates are flushed and atomically replaced, so an interrupted rewrite keeps the last valid record. If a file is damaged independently, diagnostics name it instead of claiming the queue is empty, while healthy scheduled messages keep moving.
  • 🧾 A local, best-effort activity ledger. Sends, schedules, cancellations and triage runs are recorded without making an unwritable log block mail. For reconciliation, the message itself, its Message-ID and its scheduled record remain authoritative.
  • πŸ”’ No third-party mail relay. Mail content stays local except for mail you send and optional access to your own provider for Exchange/IMAP body backfill, drafts and server-side scheduling. SMTP passwords stay in the macOS Keychain or 1Password; Microsoft OAuth tokens live in a private 0600 cache under ~/.email-mcp/graph/.
  • πŸ“œ A written contract. Since v1.0 every tool's shapes, error codes and caps evolve additively, held in place by 800+ automated tests.
  • 🀝 Clear to every MCP client. All 21 tools identify what they do, explain every input, and declare whether they read, change or can remove data. Newer clients receive structured results; older clients keep the same JSON text. MCP SDK 2.2 and newer 2.x releases are tested, with support for older clients.
  • 🧱 Built to evolve without breaking your workflow. Email rules are isolated from MCP, Mail.app, Exchange, delivery, and local storage. Provider or SDK changes stay at the edge while the 21-tool contract remains stable. The dependency rules are enforced in CI and explained in the architecture guide.
  • πŸ“¦ Releases you can verify. Every tagged release is built and installed in a clean environment before publishing. GitHub includes the wheel, source archive, SHA-256 checksums and signed build provenanceβ€”not just source code.
  • 🩺 Self-diagnosing. apple-mail-mcp status gives one readable readiness, scheduling and recovery screen. apple-mail-mcp doctor provides the complete diagnostic detail and an exact fix for anything red.

πŸš€ Quick start

  1. Grant Full Disk Access to your terminal app (System Settings β†’ Privacy & Security β†’ Full Disk Access), then quit and reopen the terminal. This is Apple's one manual toggle β€” there is no pop-up for it.

  2. Install and set up:

    bash
    uvx apple-mailbox-mcp setup     # or: pipx install apple-mailbox-mcp
    # or via Homebrew:
    brew install parasxos/tap/apple-mail-mcp && apple-mail-mcp setup
    
  3. Register with your client β€” one line for Claude Code:

    Terminal
    claude mcp add --transport stdio --scope user apple-mail -- uvx apple-mailbox-mcp
    

    or the same JSON block for Claude Desktop / Cursor / VS Code (claude_desktop_config.json / .cursor/mcp.json / .vscode/mcp.json):

    config.json
    {
      "mcpServers": {
        "apple-mail": { "command": "uvx", "args": ["apple-mailbox-mcp"] }
      }
    }
    
  4. Verify: uvx apple-mailbox-mcp status prints one readiness screen β€” or just ask your client to run the doctor tool; every red line comes with its exact fix. uvx apple-mailbox-mcp --version prints the installed version (apple-mailbox-mcp, apple-mail-mcp and email-mcp are three names for the same command). The first body-index build on a large mailbox runs in the background and can take a few minutes; search works immediately and completes as the index fills.

Before running setup, grant your terminal app Full Disk Access (System Settings β†’ Privacy & Security β†’ Full Disk Access) β€” that is how reading stays fast and local. There is no pop-up for this one; it is Apple's one manual toggle, and setup walks you to the exact pane if it finds it missing.

setup asks everything in plain words (bare Enter accepts the recommended answer), offers a sending identity, builds the body-search index, verifies the nightly refresh actually runs, and ends by printing the one block you paste into your MCP client:

config.json
{
  "mcpServers": {
    "apple-mail": { "command": "apple-mail-mcp" }
  }
}

Setup ends with a clear ready verdict or numbered recovery steps. Grant Automation β†’ Mail when triage first asks for it. Check the installation, the next scheduled message, and failed scheduled sends anytime with apple-mail-mcp status; use apple-mail-mcp doctor for the full technical detail.

πŸ’‘ New to the terminal? Three things that look wrong and aren't: brew install pipx wants a typed y (Enter alone is rejected); pipx ensurepath may print a ⚠️ β€” the "pipx is ready to go!" line after it is the verdict; and after ensurepath, close and reopen the terminal once so apple-mail-mcp is found.

πŸ”Œ Works with

Every client below speaks stdio MCP; the command is always uvx apple-mailbox-mcp.

Claude Code

Terminal
claude mcp add --transport stdio --scope user apple-mail -- uvx apple-mailbox-mcp

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about Apple Mail MCP

apple-mail-mcp is an MCP server that runs locally on macOS and connects agents to Apple Mail for indexed mailbox search, full-text message-body retrieval, conversation reconstruction, triage, drafting, scheduling, and explicit sending. It reads the Mail store read-only, returns requested data, and avoids third-party relays or cloud copies of mail.

apple-mail-mcp searches Apple Mail using indexed data for senders, mailboxes, dates, unread status, attachments, and full message bodies. It can reconstruct conversations, and for Exchange accounts it can fetch bodies that Mail has not downloaded from the mailbox server.

apple-mail-mcp sends email only when its send tool is explicitly called. It composes messages from scratch, supports selecting the sending identity, and produces standards-correct plain-text and HTML email intended to render across clients, including Outlook.

apple-mail-mcp supports reviewable triage plans for bulk actions. Messages are not moved until the plan is approved, each message is re-checked before being touched, and results are verified against Mail’s records; delete operations move messages to Mail’s Trash rather than erasing them.

apple-mail-mcp can create drafts in the real Exchange Drafts folder without sending them and can schedule messages with their text, identity, attachments, and threading headers frozen. Exchange can deliver scheduled messages server-side, while other providers use a local background sender.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewApple Mail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/apple-mail-mcp-2?style=directory)](https://allmcps.com/mcp/apple-mail-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/apple-mail-mcp-2"><img src="https://allmcps.com/api/badge/apple-mail-mcp-2?style=directory" alt="Apple Mail MCP on AllMCPs" /></a>