← Back to directory
A

Apple Mail MCP Server

Community
Manage Apple Mail on macOS through AI assistants.
Category
Other #22 of 678
Stars
★ 128 Popular
Transport
stdio (local process)
Runtime
Node.js 20+
Credentials
No credential needed
License
MIT
Last commit
65FMRS · C

The README describes an MCP server that interacts with Apple Mail through AppleScript and lists email, mailbox, rule, contact, template, and diagnostic capabilities. No manifest was provided, so canonical tool identifiers could not be confirmed from the supplied material.

Strongest · Documentation 17/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
15/20
Maintenance
10/20
Documentation
17/20
Setup experience
13/20
Why each score
Reliability 10/20
The README describes many tools, AppleScript and IMAP backends, timeout behavior, and diagnostics for partial results, while disclosing several failure cases. However, no manifest, CI workflow, or committed test evidence is available to verify MCP initialization, tool-list handshakes, or agreement between declared and actual behavior. The static calibration therefore limits the score.
Security and permissions 15/20
The documentation says passwords stay in macOS Keychain, RFC822 acquisition uses read-only IMAP commands, file writes are confined to allowed roots and create new files, and users should confirm recipients, subject, and body before sending. The server still needs access to email, contacts, and potentially the local mail store, and offers sending, deletion, moving, and rule management; the supplied material does not fully establish confirmation safeguards and data flows for every risky operation. No red-line issue is supported by the supplied evidence.
Maintenance 10/20
The project states an MIT license and provides npm distribution, release synchronization, and update instructions; the repository metadata says it is not archived. The supplied material does not verify recent releases, commits, issue response, dependency updates, or a security response channel. A CI badge in the README alone does not establish sustained maintenance.
Documentation 17/20
The README gives extensive installation and configuration guidance, tool parameters, permission requirements, backend differences, coverage and timeout behavior, data formats, examples, and troubleshooting details. The score is reduced because the server manifest and source files were not supplied for cross-checking, and some operational safeguards and implementation details cannot be verified from this material.
Setup experience 13/20
The README provides concrete installation or configuration examples for Claude Code, Claude Desktop, Codex, and other hosts, and identifies macOS, Node.js, and permission requirements. It is macOS-only; some features require newer Node versions and Full Disk Access, while optional IMAP/SMTP features need additional configuration. Under the static calibration, setup reproducibility is limited because no verifiable execution evidence was supplied.

Static review · not runReviewed 2026-12-04

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkChanges third-party account dataConnects to a database

Best for

  • Users who want to manage macOS Apple Mail through an MCP-compatible assistant.
  • Users who need email search, organization, and composition features and can grant the required macOS permissions.

Not for

  • Users without macOS or Apple Mail.
  • Users who need IMAP-only features without additional configuration, or full Contacts database access without granting Full Disk Access.

Required permissions

  • macOS may ask permission for the server to control Mail.app through automation.
  • search-contacts requires Node.js 22.5+ and Full Disk Access for the app running Node.
  • Optional local mail indexing requires Full Disk Access; optional SMTP/IMAP settings store passwords in the macOS Keychain.

Risks and side effects

  • Sending email has an immediate real-world effect and cannot be undone; confirm recipients, subject, and body before calling the tool.
  • Delete and move operations change mailbox contents; searches may cover only part of the mail due to timeouts, permissions, or large-mailbox limits.
  • The local body index stores search tokens rather than message copies, but those tokens can still reveal email information; protect the index as sensitive data.

Setup

Before you start

Runtime:Node.js 20+

Other optional settings (7)
APPLE_MAIL_MAX_SEARCH_MAILBOX optional Sets the message-count threshold for skipping oversized mailboxes during AppleScript searches; set it in the server environment (default 5000).
APPLE_MAIL_MCP_ENVELOPE_INDEX optional Set to 1 in the server environment to enable read-only Envelope Index searches.
APPLE_MAIL_MCP_BODY_INDEX optional Set to 1 together with APPLE_MAIL_MCP_ENVELOPE_INDEX to enable local message-body index searches.
APPLE_MAIL_MCP_BODY_INDEX_FILE optional Optional path for the body-index database file; set it in the server environment.
APPLE_MAIL_MCP_SEARCH_DEADLINE_MS optional IMAP search deadline in milliseconds; set it in the server environment (default 45000).
APPLE_MAIL_MCP_STALLED_MAILBOXES_FILE optional Path for the file recording stalled mailboxes; set it in the server environment (defaults to the application support directory).
APPLE_MAIL_MCP_MAX_BUFFER optional Output buffer limit in bytes for osascript message reads; set it in the server environment (default 64 MB).

Requires macOS, Node.js 20+, and at least one account configured in Apple Mail. Add the README's example configuration to Claude Desktop's config file and restart the app; allow macOS to automate Mail.app when prompted on first use. Optional IMAP/SMTP features require separate configuration.

claude_desktop_config.json
{
  "mcpServers": {
    "apple-mail": {
      "command": "npx",
      "args": [
        "apple-mail-mcp"
      ]
    }
  }
}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "apple-mail": {
      "command": "npx",
      "args": [
        "apple-mail-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

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

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add apple-mail -- npx apple-mail-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm Apple Mail tools appear in the client's MCP tool list, then ask it to list unread emails. A returned message list confirms the connection is working.

Troubleshooting

  1. Confirm that Apple Mail has at least one configured account and allow access when the first automation prompt appears.
  2. Check the Node.js version; search-contacts and the body index require Node.js 22.5+.
  3. If contact or local-index results are empty or incomplete, check whether the app running Node has Full Disk Access.
  4. Use the doctor tool to check Mail permissions, account state, and configured IMAP/SMTP backends.
  5. For results marked partial, inspect the unsearched or skipped mailboxes and narrow the mailbox or date range.

Things to try

Once connected, you can ask your AI assistant things like:

  • Show me my unread emails.
  • Search for emails from [email protected].
  • Draft an email about tomorrow's meeting, but don't send it.
  • List my mailboxes and their unread counts.

Use cases

Check unread mail and search by sender, subject, or date.
Compose, reply to, and forward messages, or create drafts.
Organize mailboxes, manage rules, look up contacts, and inspect attachments.

Supported clients

Claude Desktop
Claude Code
Codex
Hermes AgentPartial support
AntigravityPartial support

Listed from the project's documentation, not tested by this site.

Overview

Apple Mail MCP Server connects MCP-compatible AI assistants to the macOS Mail app. It uses AppleScript to read, search, send, and manage email; optional IMAP/SMTP configuration enables faster reads and SMTP sending. Mail data stays on the local machine.

Similar servers

Source revision 510cbf3c19d9 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/apple-mail-mcp.svg)](https://followmcp.com/en/servers/apple-mail-mcp)