PluginBench
MCP Server
Active
MIT

io.github.parasxos/apple-mail-mcp MCP Server

io.github.parasxos/apple-mail-mcp

Fast local Apple Mail MCP with indexed search, full-text bodies, verified sends, and triage—runs on your Mac.

What is the io.github.parasxos/apple-mail-mcp MCP server?

The apple-mail-mcp server is an MCP that gives AI agents like Claude and Cursor full access to Apple Mail on macOS, with 21 tools for searching, reading, sending, and triaging email. It runs locally without cloud relay, indexes message bodies for fast full-text search, and verifies all bulk actions before applying them.

apple-mail-mcp lets you ask questions of your mailbox, search message bodies that Mail's built-in search misses, send email as the correct identity, schedule messages for later delivery, and triage hundreds of messages through a reviewed plan. Everything runs locally on your Mac with no third-party relay—your mail stays private, and you control every action before it happens.

How to install io.github.parasxos/apple-mail-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "apple-mail-mcp": {
      "command": "uvx",
      "args": [
        "apple-mailbox-mcp"
      ]
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • search_emails — Full-text search across all messages, indexed by sender, mailbox, dates, unread status, and message bodies
  • get_email — Retrieve a single email message with full content
  • get_emails_batch — Retrieve multiple email messages in one call
  • get_thread — Reconstruct and retrieve a complete email conversation thread
  • list_mailboxes — List all available mailboxes in Apple Mail
  • list_recent — List recently received messages
  • get_attachment — Download and retrieve email attachments
  • refresh_mail — Refresh the mail store to pick up new messages
  • send_email — Send an email message with specified identity and content
  • reply_email — Send a threaded, quoted reply to an existing message
  • create_draft — Compose a draft message in your Drafts folder
  • schedule_email — Schedule an email to be sent at a specified time, with server-side execution on Exchange
  • list_scheduled — List all scheduled messages pending delivery
  • cancel_scheduled — Cancel a scheduled message before it is sent
  • triage_plan — Create a reviewable plan for bulk email actions before applying them
  • triage_plan_delete — Create a reviewable plan for bulk deletion (to Trash) before applying
  • triage_apply — Apply a reviewed triage plan and verify the result
  • mailbox_create — Create a new mailbox in Apple Mail
  • mailbox_delete — Delete an existing mailbox
  • doctor — Run full diagnostics with fix-it strings for any configuration issues

Use cases

  • Search your entire mailbox by sender, date, or full message body text in milliseconds—find conversations Mail's built-in search misses
  • Send email as the correct identity (work vs. personal) with clean HTML+plain-text rendering that works in Outlook and all clients
  • Schedule emails to be sent later, with server-side execution on Exchange or reliable local delivery on other providers
  • Triage hundreds of messages at once: create a plan, review it, apply it, and verify the result against Mail's own records
  • Retrieve attachments, read threads, and compose drafts all through Claude or Cursor without leaving your AI agent

io.github.parasxos/apple-mail-mcp MCP server FAQ

What is apple-mail-mcp?

It's an MCP server that runs locally on your Mac and gives AI agents like Claude and Cursor 21 tools to search, read, send, and triage Apple Mail. Everything stays on your Mac—no cloud relay, no third-party mail copy.

Is it free?

Yes. apple-mail-mcp is open source and free to install via pip, Homebrew, or uvx.

How do I install it in Claude Desktop or Cursor?

Run `uvx apple-mailbox-mcp setup`, then add one JSON block to your client's config file (claude_desktop_config.json, .cursor/mcp.json, or .vscode/mcp.json) with the command `uvx apple-mailbox-mcp`.

What authentication is required?

You need Full Disk Access granted to your terminal app (System Settings → Privacy & Security → Full Disk Access). For sending, SMTP passwords stay in macOS Keychain or 1Password, and Microsoft OAuth tokens are cached locally. No third-party API keys needed.

How fast is the search?

Full-text search across 300,000 messages runs in under 1 millisecond (p95). Addressing a single message takes less than 0.1 ms via Mail's index, compared to 7–10 seconds with AppleScript.

Can I use it in read-only mode?

Yes. Set `EMAIL_MCP_READ_ONLY=1` to enable only the 11 non-mutating tools (search, read, get attachments). No sends, schedules, or triage actions are available in read-only mode.

README (reference)

Source of truth, from the repository.

<!-- mcp-name: io.github.parasxos/apple-mail-mcp --> <div align="center">

✉️ 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.

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

</div>

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:

    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:

    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):

    {
      "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. 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:

{
  "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

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

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{ "mcpServers": { "apple-mail": { "command": "uvx", "args": ["apple-mailbox-mcp"] } } }

Cursor

Add the same block to ~/.cursor/mcp.json (or per-project .cursor/mcp.json).

VS Code (Copilot MCP)

Add the same block under "servers" in .vscode/mcp.json.

Codex CLI

# ~/.codex/config.toml
[mcp_servers.apple-mail]
command = "uvx"
args = ["apple-mailbox-mcp"]

Any stdio MCP client

Point it at uvx apple-mailbox-mcp. The wire contract is additive-only since v1.0.

🔧 Troubleshooting

SymptomFix
Client says the server failed to start, but uvx apple-mailbox-mcp works in your terminalGUI apps don't inherit your shell PATH. Use the absolute path: "command": "/opt/homebrew/bin/uvx" (find yours with which uvx).
database is locked or empty resultsFull Disk Access is missing for the app that launches the server (the client, not the terminal). Grant it, then fully quit and reopen that app.
Search finds recent mail but not bodies of old mailThe body index is still building — first build on a 100k+ mailbox takes minutes. status shows progress.
Send fails with transport_unavailableRun doctor: it names the failing lane (Keychain item missing, SSH socket cold, SMTP host unreachable) and prints the exact fix.
Triage does nothing the first timeGrant Automation → Mail when macOS asks; the prompt appears on first use, not at install.

🧰 The 21 tools

GroupTools
🔍 Read (8)search_emails (full-body search) · get_email · get_emails_batch · get_thread · list_mailboxes · list_recent · get_attachment · refresh_mail
✉️ Send (6)send_email · reply_email (threaded, quoted) · create_draft · schedule_email (threaded on request) · list_scheduled · cancel_scheduled
🗂️ Triage (5)triage_plan · triage_plan_delete · triage_apply · mailbox_create · mailbox_delete
🩺 Meta (2)doctor (full diagnostics with fix-it strings) · audit (the local ledger)

Attachments both ways, size-budgeted. Replies thread correctly in every client. Scheduling survives sleep — a message due while the lid was closed goes out on the first tick after wake, or exactly on time via Exchange.

🎭 Your addresses, your lanes

The From: address decides how mail travels. ~/.email-mcp/identities.toml:

default = "work"

[work]                    # sent through a host you already trust, over SSH
from_addr = "you@example.org"
driver    = "ssh_sendmail"
host      = "bastion.example.org"   # any login host you already SSH to

[gmail]                   # classic SMTP — the app password stays in 1Password
from_addr = "you@gmail.com"
driver    = "smtp"
host      = "smtp.gmail.com"
op        = "op://Personal/gmail app password/password"

Exchange identities can add one sign-in to unlock the extras: drafts filed in your real Drafts folder, and scheduled sends executed by the server itself — lid closed, Mac asleep. setup offers it in one plain question. Reading needs no sending configuration at all.


<div align="center">

21 tools · over 1,200 tests · additive wire contract since v1.0 Live-calibrated end-to-end on a 305k-message store.

Built for one Mac — and for anyone else whose Mac runs Mail.app.

</div>

Related MCP servers

Monad blockchain gateway for AI agents: balances, transfers, swaps, DeFi, with Privy signing.

2
TypeScript
MIT
View repository →

Fragrance encyclopedia: note pyramids, accords, perfumers and dupes (parfica.com).

0
JavaScript
MIT
View repository →

Sourced answers to everyday "why is my…" questions — health, pets, home, plumbing, tech, cars.

View repository →

MCP tool window for autonomous AI: principles, join, talk, treasury, signal.

0
View repository →
SASafe Kaggle MCP logo

Safe Kaggle MCP

Maintained

Safety-first Kaggle MCP — confirm-gated destructive ops, submission budget, injection-fenced.

0
Python
MIT
View repository →

Pay-per-call x402 API for AI trading agents: pre-trade security checks, Polymarket & HIP-4 odds.

0
Python
MIT
View repository →