MCP Mail logo

MCP Mail

by @annseraf

Self-hosted MCP access to IMAP/SMTP mailboxes for reading, searching, organizing, drafting, sending, and optional calendar actions.

Install MCP Mail

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

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

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

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

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

Overview

@annseraf/mcp-mail connects MCP clients to existing IMAP/SMTP mailboxes, exposing tools for reading, searching, organizing, drafting, and sending email. It supports stdio for local clients and Streamable HTTP for remote access, with per-client permissions, audit logging, and optional OAuth. Reach for it when an agent needs controlled access to one or more mailboxes without moving mail into a separate service. Optional CalDAV support adds calendar reading, availability searches, and event creation.

Use cases

  • Search several mailbox folders for messages matching a sender or date range
  • Draft and send replies with attachments and configured signatures
  • Review complete email threads across Inbox and Sent
  • Give an agent read-only access to selected mailboxes
  • Create calendar events through a CalDAV account

Key features

  • IMAP and SMTP mailbox access
  • Stdio and Streamable HTTP transports
  • Per-client permissions and mailbox scopes
  • OAuth 2.1, token controls, and audit logging
  • Attachment, thread, flag, and draft handling
  • Optional CalDAV calendar tools

Tools19

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

5/5 checks healthy over the last 20d

What it can do

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

Can delete or modify data · 2Makes changes · 8Handles credentials · 1Makes network requests · 5Read-only tools · 11
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age29 days
Maintainers1

Observed 2026-12-02 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 2d ago via OSV.dev · @annseraf/mcp-mail (npm)

Adoption & maintenance

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

npm downloads1.9kPackage downloads in the last 30 days.
Last commit5d 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 exposed19Callable tools this server registers over MCP.

How MCP Mail works

What @annseraf/mcp-mail does

@annseraf/mcp-mail gives MCP-compatible agents access to existing email accounts over IMAP and SMTP. It can inspect folders and messages, search across one or more folders, reconstruct conversations, download capped attachments, create drafts, send mail, and apply common mailbox changes. Sent messages are copied to the Sent folder, and outgoing mail can include attachments and a configured signature.

The server also supports optional CalDAV calendars. Calendar tools can list calendars, read events, find an available time, and create an event. Mail providers can be any service exposing IMAP and SMTP, including Fastmail, iCloud, Gmail, Google Workspace, Yahoo, Zoho, Mailbox.org, Migadu, Mailcow, and Dovecot/Postfix deployments.

How it works

Local integrations can launch the server through stdio with npx -y @annseraf/mcp-mail stdio. Streamable HTTP is available for clients connecting to a hosted instance. The project lists Claude Desktop, Claude Code, Cursor, VS Code, ChatGPT developer mode and deep research, Meta Muse, and other MCP clients as supported connection targets.

Access can be constrained per client. Presets include read-only, read-and-draft, and organize-oriented access; tools can also be allowed or denied individually. Mailbox scope, recipient allowlists, and send-rate limits provide additional controls for agents that are permitted to send. OAuth 2.1 with dynamic client registration and PKCE, per-client tokens, and shared-token access are supported for HTTP deployments.

Setup and configuration

A system-wide installation is available through the repository’s installer:

Terminal
curl -fsSL https://raw.githubusercontent.com/Annseraf/mcp-mail/main/install.sh | sudo bash -s -- --auto-update

For a local client, use the stdio command above. ChatGPT connections use developer mode; its documented read-only setup enables OAuth and assigns a read-only preset. Mailbox credentials are stored in accounts.json, with an option to encrypt them at rest using mcp-mail secrets encrypt. Gmail, iCloud, Yahoo, and Fastmail accounts generally require provider-issued app passwords rather than normal account passwords.

Tools and capabilities

  • Discover mailboxes, folders, sender identities, and signatures.
  • List recent messages, search by sender, subject, body, date, read state, or flag, and group messages into threads.
  • Read headers, bodies, attachment lists, and threading identifiers; download individual attachments within the size limit.
  • Create drafts, including replies populated from an existing message, and send messages with attachments and signatures.
  • Mark messages read or unread, set flags and keywords, move messages, and send messages to Trash or permanently delete them when authorized.
  • Change a mailbox sender name or signature and create calendar events.
  • Record audit entries in JSONL without message content, while fencing untrusted email content and removing hidden HTML text.

Limitations and notes

Deleting normally moves a message to Trash. Permanent deletion requires permanent: true and a client with the destructive capability. Agents that do not need outbound mail should use a preset without the send capability; the send tool is then unavailable and rejected if called.

The server is designed for self-hosting, so mailbox credentials and the server’s security configuration remain under the operator’s control. Calendar features depend on an available CalDAV service. ChatGPT-specific search and fetch adapters require CHATGPT_COMPAT=true.

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

@annseraf/mcp-mail is an MCP server that connects AI clients to IMAP/SMTP mailboxes and optional CalDAV calendars. Its main tools read, search, thread, draft, organize, and send email, with calendar event creation also available. It supports controlled client permissions, audit logging, stdio, and Streamable HTTP access.

Install it system-wide with the project’s one-line shell installer, or run `npx -y @annseraf/mcp-mail stdio` for a local MCP client. The installer supports an `--auto-update` option, while local clients can launch the package directly through stdio.

Any provider that supports IMAP and SMTP works, including Fastmail, iCloud, Gmail, Google Workspace, Yahoo, Zoho, Mailbox.org, Migadu, Mailcow, and Dovecot/Postfix. Gmail, iCloud, Yahoo, and Fastmail commonly require an app password.

Assign a preset without the send capability, such as `read-only`, `read-draft`, or `organize`. The send tool is hidden from that client and calls to it are rejected; recipient allowlists and send-rate limits can further restrict permitted senders.

Normally, `delete_message` moves the message to Trash. Permanent removal requires `permanent: true` and a client authorized with the destructive capability.

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