Apple Mail MCP logo

Apple Mail MCP

Control Apple Mail locally through MCP to read, search, organize, compose, reply to, and manage email.

Install Apple Mail MCP

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "apple-mail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jdot6/apple-mail-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio apple-mail-mcp -- npx -y @jdot6/apple-mail-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 22 tools correctly ().

Overview

Apple Mail MCP connects MCP clients to Apple Mail through Node.js, AppleScript, and macOS's `osascript` command. It supports reading, searching, composing, replying to, organizing, flagging, and deleting messages across configured mail accounts. Optional local AI tools can summarize, classify, triage, or draft replies using LM Studio or another OpenAI-compatible endpoint. Reach for Apple Mail MCP when email is managed in Apple Mail, including iCloud accounts, and direct web APIs are unavailable or unsuitable.

Use cases

  • Search messages by sender, subject, or date range
  • Read and organize iCloud or Apple Mail messages
  • Draft and review replies before sending
  • Archive, flag, label, or delete matching messages
  • Triage incoming mail with a local language model

Key features

  • AppleScript control of Apple Mail
  • Mailbox discovery and paginated message browsing
  • Search, read, compose, and reply operations
  • Message organization, rules, and bulk moves
  • Optional MailKit new-mail events
  • Optional local-AI email processing

Tools22

What Apple Mail MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.4k tokens of context

Security & health

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

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 84d

What it can do

From the 22 tools this server returned when we ran it.

Can delete or modify data · 2Writes files · 3Read-only tools · 17
Tool definitions changed on 2026-11-13. Review them if you approved this server earlier.
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age194 days
Maintainers1

Observed 2026-11-13 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @jdot6/apple-mail-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads516Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed22Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Apple Mail MCP works

What Apple Mail MCP does

Apple Mail MCP exposes Apple Mail operations as MCP tools for an AI client. It can enumerate accounts and mailboxes, list messages with pagination, read complete headers and bodies, and search by sender, subject, or date range. Messages can be moved, archived, flagged, marked read or unread, sent to junk, or moved to the trash. Mailboxes and native Mail rules can also be created, listed, and removed, and matching messages can be moved in bulk.

Email creation supports both reviewable drafts and immediate sending. Replies work the same way: the tool can open a reply in Mail or send it directly. The repository also includes optional local-AI operations for summarizing messages, classifying them, drafting replies, and triaging up to 20 messages by priority.

How it works

The MCP process runs under Node.js and communicates with the client over standard input and output. For mail operations, it invokes AppleScript files through osascript, which controls the Apple Mail application on the Mac. Apple Mail must be open and have at least one configured account.

Message operations use a composite message_ref rather than relying on a changing list position. The reference combines the account, mailbox, and RFC 2822 Message-ID. list_emails and search_emails return these references for later calls to tools such as get_email, reply_email, and move_email.

An optional MailKit extension can send new-message notifications to a local HTTP listener on 127.0.0.1:27182. The get_pending_events tool drains those queued events. The listener starts even without the extension, but then returns no extension-generated events.

Setup and configuration

The supported environment is macOS with Apple Mail configured, plus Node.js 18 or newer. The simplest installation adds npx -y @jdot6/apple-mail-mcp to Claude Desktop's MCP configuration. A repository checkout can instead be installed with npm install, built with npm run build, and launched using the resulting dist/index.js file. Claude Desktop must be restarted after changing its configuration.

macOS requests Automation permission the first time the Node.js process controls Mail. Allow the request, or re-enable the terminal or Node.js runtime under System Settings → Privacy & Security → Automation if access was denied.

Optional AI behavior is configured with APPLE_MAIL_AI_PROVIDER, APPLE_MAIL_AI_ENDPOINT, APPLE_MAIL_AI_MODEL, APPLE_MAIL_AI_API_KEY, APPLE_MAIL_AI_ENRICH_EVENTS, and APPLE_MAIL_AI_ALLOW_REMOTE. The default provider is LM Studio at http://localhost:1234; any OpenAI-compatible server can be used. Remote endpoints are blocked unless APPLE_MAIL_AI_ALLOW_REMOTE=1 is set, and sending email content to such an endpoint exposes that content to the remote service.

The MailKit extension is built from the included Xcode project, launched once to register it, and enabled under Mail → Settings → Extensions.

Tools and capabilities

  • Discover accounts and mailbox names with list_folders.
  • Browse, search, and read messages with list_emails, search_emails, and get_email.
  • Draft or send new messages and replies with compose_email and reply_email.
  • Move, archive, flag, mark, junk, or delete messages.
  • Create, inspect, and remove Mail rules with create_rule, list_rules, and delete_rule.
  • Bulk-move filtered messages with move_matching.
  • Process new-mail notifications with get_pending_events.
  • Summarize, classify, draft, and triage messages using the optional local-AI tools.

Limitations and notes

The server depends on macOS, Apple Mail, AppleScript automation permissions, and a configured Mail account. Immediate sending is available when a tool's send option is enabled and does not add a confirmation step. The companion Email Compose Review skill uses a separate review workflow for LLM-drafted messages and keeps final sending in Mail.

The local HTTP bridge binds only to loopback. AI features can remain local with LM Studio, but configuring a remote OpenAI-compatible endpoint sends full email content there after remote access is explicitly enabled.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

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 connects AI clients to Apple Mail on macOS through AppleScript. Its main tools list folders and messages, search and read email, compose and reply, move or archive messages, manage flags and read status, and delete or send mail.

Install it by adding `npx -y @jdot6/apple-mail-mcp` as an MCP server command in Claude Desktop's configuration, then restart Claude Desktop. You can also clone the repository, run `npm install && npm run build`, and point the configuration at `dist/index.js`.

Yes. Apple Mail MCP operates through the Apple Mail application, including configured iCloud accounts. It uses the account's Archive, Junk, and deleted-message mailbox names for iCloud when those operations are requested.

Allow the macOS Automation prompt shown the first time a mail tool runs. If permission was denied, open System Settings → Privacy & Security → Automation and re-enable access for the terminal or Node.js runtime.

Yes. Configure the optional AI tools to use LM Studio or another OpenAI-compatible server, with LM Studio as the default provider and `http://localhost:1234` as the default endpoint. Summarization, classification, reply drafting, and inbox triage use this configuration.

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?style=directory)](https://allmcps.com/mcp/apple-mail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/apple-mail-mcp"><img src="https://allmcps.com/api/badge/apple-mail-mcp?style=directory" alt="Apple Mail MCP on AllMCPs" /></a>