Mail MCP logo

Mail MCP

Searches, reads, sends, and manages Mail.app messages across configured macOS accounts through MCP.

Install 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": {
    "mail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@p-l-ta/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 mail-mcp -- npx -y @p-l-ta/mail-mcp

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @p-l-ta/mail-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mail-mcp MCP server connects MCP hosts to Mail.app on macOS, covering configured iCloud, Exchange, IMAP, and other accounts. It searches the Envelope Index database for structured results, while AppleScript handles reading, sending, replying, flagging, moving, and trashing messages. Use it when an agent needs local access to mailbox contents and email actions without connecting to an external mail API. macOS Mail.app, Node.js 20+, and host-level permissions for Mail automation and Mail data are required.

Use cases

  • Search messages across configured Mail.app accounts
  • Read and reply to email by RFC message ID
  • Send mail from a selected configured account
  • Organize messages by moving, flagging, or marking them read
  • Extract unsubscribe links from message content

Key features

  • Envelope Index search with rich filters
  • Mail.app account and mailbox discovery
  • Email sending and replies through AppleScript
  • Message flags, moves, trashing, and bulk read status
  • Mailbox creation and emptying
  • Unsubscribe URL extraction

Tools24

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

Verified live~3.9k 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.

16/16 checks healthy over the last 89d

What it can do

From the 24 tools this server returned when we ran it; 24 declare their own safety hints.

Can delete or modify data · 7Read-only tools · 17
Network at startup3 connections
Files written at startup1
Install scriptsNone
npm provenanceSigned build
Package age176 days
Maintainers1

Observed 2026-10-31 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 5d ago via OSV.dev · @p-l-ta/mail-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads301Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed24Callable tools this server registers over MCP.

How Mail MCP works

What the mail-mcp MCP server does

The mail-mcp MCP server exposes macOS Mail.app through MCP so an agent can work with email across the accounts configured in Mail.app. Supported account types mentioned by the project include iCloud, Exchange, and IMAP accounts. The server can discover accounts and mailboxes, inspect unread totals, search messages, retrieve message content, and perform common mailbox and message operations.

Search results come from Mail.app's local Envelope Index SQLite database. This provides structured filtering across accounts without requiring the server to implement separate integrations for each mail provider. Message bodies and actions use Mail.app itself: AppleScript automation reads messages, sends new mail, replies, changes flags, moves messages, and sends messages to Deleted Messages.

The server runs locally on the Mac. It does not use its own backend, telemetry, or external API requests. Email data remains on the device and is returned to the MCP host only through normal tool responses.

How it works

The mail-mcp MCP server uses two local access paths:

  • Database queries search Mail.app's Envelope Index for messages and mailbox metadata.
  • AppleScript controls Mail.app for operations that need the application, including sending, replying, reading bodies, flag changes, moves, and trashing.

This arrangement also supports accounts whose messages are not available as local files, because action requests are delegated to Mail.app. The server communicates with an MCP host over stdio.

Setup and configuration

The host computer must run macOS with Mail.app configured, and Node.js 20 or newer is required. Claude Desktop users can install the released .mcpb package by downloading it and opening the file. For other stdio hosts, run the package with npx @p-l-ta/mail-mcp, or install it globally with npm and point the host at the mail-mcp executable.

The application launching the MCP server must have Full Disk Access and Automation permission for Mail. These permissions are granted in System Settings under Privacy & Security. Permission inheritance comes from the MCP host, so granting access to a different terminal or application may not be sufficient.

Tools and capabilities

Available operations include:

  • Search messages using rich filters and read a full message by RFC message ID.
  • List configured accounts, mailboxes, unread counts, recent messages, and grouped sender totals.
  • Send new messages and reply to existing messages by RFC message ID.
  • Set read or flagged status, move messages, or move them to Deleted Messages.
  • Create mailboxes and mark messages read in bulk by mailbox or sender.
  • Extract unsubscribe URLs from message headers and bodies.
  • Empty an entire mailbox, including folders such as Junk or Trash.

Limitations and notes

This tool requires macOS Mail.app and cannot be used as a provider-neutral mail service on systems without Mail.app. Its operations depend on the permissions granted to the host application. The server itself does not connect to external mail APIs or servers, but it can access local Mail.app data and control Mail.app through AppleScript.

Destructive operations need particular care: trash_email moves a message to Deleted Messages, while empty_mailbox removes every message in a selected mailbox. The project identifies the latter as suitable for folders such as Junk and Trash, so an agent should request a precise mailbox before invoking it. Message-specific reading and replying use the RFC message ID rather than a provider-specific identifier.

The project is licensed under MIT.

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 Mail MCP

mail-mcp is an MCP server that connects AI hosts to Mail.app on macOS across configured iCloud, Exchange, IMAP, and other accounts. Its main tools search and read messages, list mailboxes, send and reply to email, change flags, move or trash messages, create mailboxes, and extract unsubscribe links.

Install it by opening the released `.mcpb` package in Claude Desktop, or run `npx @p-l-ta/mail-mcp` for another stdio MCP host. You can also install it globally with npm and configure the host to execute the `mail-mcp` binary.

It needs Full Disk Access and Automation permission for Mail for the application that launches the MCP host. Grant both in macOS System Settings under Privacy & Security; the server inherits permissions from that host application.

It describes mail-mcp as a stdio server for Claude Desktop, Amazon Quick, and other MCP hosts that support stdio transport.

No. Sending, replying, and other mailbox actions are performed through Mail.app using AppleScript. The server makes no network requests of its own and has no backend or telemetry.

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 PreviewMail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mail-mcp?style=directory)](https://allmcps.com/mcp/mail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mail-mcp"><img src="https://allmcps.com/api/badge/mail-mcp?style=directory" alt="Mail MCP on AllMCPs" /></a>