Mail MCP logo

Mail MCP

by @1amsheldon

Connects MCP clients to mailboxes and delivery services through IMAP, SMTP, Zimbra, Apple Mail, Microsoft, EWS, and Mailtrap.

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": {
    "1amsheldon-mail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@1amsheldon/mail-mcp@latest"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio 1amsheldon-mail-mcp -- npx -y @1amsheldon/mail-mcp@latest

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

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

Overview

@1amsheldon/mail-mcp connects Codex, Claude, and other MCP clients to multiple mail backends through a local account manager. It supports reading, searching, organizing, composing, sending, and verifying mail, along with backend-specific contacts, calendars, filters, rules, and Mailtrap administration. Credentials stay in the operating-system credential store rather than MCP client configuration. Reach for it when an agent needs controlled access to one or more mail accounts, with optional confirmation, audit logging, and read-only operation.

Use cases

  • Search and organize messages across IMAP mailboxes
  • Send and verify email through SMTP or Mailtrap
  • Manage Zimbra calendars, contacts, filters, and scheduled mail
  • Automate Apple Mail drafts, replies, folders, and rules
  • Read and send Microsoft Graph or EWS messages

Key features

  • IMAP/SMTP mail operations with attachments and threads
  • Zimbra SOAP/REST support for mail and collaboration data
  • Apple Mail integration with native mailbox and rule management
  • Microsoft Graph and Exchange Web Services access
  • Mailtrap testing, sending, and account administration
  • OS credential storage with optional read-only mode and audit logging

Tools3

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

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

What it can do

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

Can delete or modify data · 1Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age93 days
Maintainers1

Observed 2026-11-23 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 13d ago via OSV.dev · @1amsheldon/mail-mcp@latest (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads777Package 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 exposed3Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Mail MCP works

What @1amsheldon/mail-mcp does

@1amsheldon/mail-mcp gives MCP clients a common interface for working with several mail systems. The available backends are IMAP with SMTP, Zimbra SOAP/REST, ManageSieve, Apple Mail, Microsoft Graph, Exchange Web Services, and Mailtrap.

The standard IMAP/SMTP backend covers cursor-based listing and search, stable message locators, folders, threads, flags, copying, moving, trashing, permanent deletion, raw RFC 822 retrieval, contacts, MIME drafts, replies, attachments, sending, and delivery verification. Standards-based providers such as Gmail, Google Workspace, iCloud, Fastmail, Yahoo, Zoho, and Mail.ru can use this backend when they expose IMAP and SMTP.

Backend-specific functions extend beyond ordinary mail. Zimbra includes contacts, groups, filters, settings, sharing, calendars, tasks, invitations, Briefcase items, tags, and scheduled delivery. Apple Mail supports native accounts, mailboxes, messages, drafts, composition, replies, forwarding, flags, movement, trash, and rules. Microsoft Graph and EWS provide provider-specific message search, reading, and sending. Mailtrap exposes email testing and platform administration features including sandboxes, templates, logs, inbound streams, domains, suppressions, webhooks, contacts, lists, campaigns, imports, and exports.

How it works

Accounts are selected through the server rather than by embedding secrets in an MCP client file. Agents should first call list_accounts and inspect the reported backend capabilities, then use backend-appropriate operations. For IMAP, mailbox discovery should precede operations that depend on folder names; Apple Mail uses apple.listMailboxes for the equivalent lookup.

The server publishes an agent workflow through the mail://agent-guide resource and the mail_agent_workflow prompt. Backend contracts and operational guidance are available on demand through mail://reference/<topic> resources and corresponding prompts. Read-only installation flags can expose only read tools, while confirmation and audit-log options support more controlled deployments.

Setup and configuration

Node.js 20.19 or newer and an operating-system credential store supported by cross-keychain are required. Install the package with npm or run it through npx, then add an account with the interactive accounts add wizard. The wizard covers IMAP/SMTP, Zimbra, Apple Mail, Microsoft Graph, EWS, and Mailtrap. Accounts can be listed or removed with the matching account commands.

Account definitions are kept in ~/.config/mail-mcp/accounts.json. Passwords, OAuth2 credentials, and API tokens are stored in the operating-system credential store under com.1amsheldon.mail-mcp. MCP configuration should contain commands and options, not passwords, refresh tokens, client secrets, API tokens, or bearer tokens.

Dedicated installers configure Codex, Claude Desktop, and Claude Code. Codex uses stdio on macOS and Linux; Windows uses a local Streamable HTTP endpoint. Other clients can launch the package over stdio with npx. Apple Mail requires macOS Mail.app and Automation permission. Microsoft Graph and EWS require pre-provisioned OAuth2 credentials, while Mailtrap requires an API token.

Tools and capabilities

  • Read, search, thread, compose, reply, forward, send, move, copy, flag, trash, and delete mail where the selected backend supports each operation.
  • Work with MIME content, raw message source, attachments, drafts, and delivery verification.
  • Manage Zimbra contacts, groups, filters, calendars, tasks, invitations, sharing, Briefcase items, and scheduled messages.
  • Manage Apple Mail mailboxes and rules, subject to the account’s global-rule permission.
  • Use Microsoft Graph message lookup, replies, inline attachments, and large-attachment upload sessions.
  • Operate Mailtrap templates, sandboxes, logs, inbound streams, domains, suppressions, webhooks, contacts, lists, fields, campaigns, imports, and exports.

Limitations and notes

POP3 and JMAP are not implemented. Zimbra compatibility depends on the server edition, enabled features, authentication extensions, and mailbox permissions; SAML/SSO, email OTP, and 2FA enrollment are not implemented. Zimbra login stores the completed local session by default, while trusted-device login can separately request permission to store the main password for reauthentication.

Apple Mail rules are application-global and may affect every native account. Rule access is disabled by default and requires allowGlobalRules: true; duplicate rule names must be resolved in Mail.app before updates or deletion. Existing IMAP/SMTP app-password accounts are separate from Zimbra authentication.

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

@1amsheldon/mail-mcp is an MCP server that connects AI clients to IMAP/SMTP, Zimbra, Apple Mail, Microsoft Graph, Exchange Web Services, ManageSieve, and Mailtrap. Its main tools support listing, searching, reading, composing, sending, organizing, and verifying email, with additional backend-specific mail and collaboration operations.

Install it with npm or run it with npx, then use `accounts add` to configure a backend. Dedicated commands install it for Codex, Claude Desktop, or Claude Code; other MCP clients can launch the package over stdio.

Email credentials are stored in the operating-system credential store, not in MCP client configuration. Account definitions are kept in `~/.config/mail-mcp/accounts.json`, while secrets use the `com.1amsheldon.mail-mcp` credential-store entry.

Yes, when the provider exposes IMAP and SMTP. Gmail and Google Workspace use the IMAP/SMTP backend, along with other standards-based providers such as iCloud, Fastmail, Yahoo, Zoho, and Mail.ru.

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