Mailmcp logo

Mailmcp

Connects ChatGPT and Claude to multiple IMAP/SMTP mailboxes for reading, drafting, sending, and attachment handling.

Install Mailmcp

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for mailmcp, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

mailmcp MCP server connects ChatGPT, Claude, and other MCP clients to multiple email accounts through IMAP and SMTP. It issues encrypted tokens from a browser-based setup flow, then exposes mailbox access over an MCP endpoint or as a Claude Desktop package. Use it when you need several providers, unsupported IMAP services, outbound email, or attachments. Supported hosting options include Vercel, Docker, Node.js 22 hosts, and local Claude Desktop deployment.

Use cases

  • Search several mailboxes in one request
  • Read messages and retrieve their attachments
  • Draft replies across different email providers
  • Send approved messages with attachments
  • Connect unsupported IMAP/SMTP mail services

Key features

  • Multi-mailbox IMAP and SMTP access
  • Browser-encrypted mailbox credentials
  • Attachment download and sending
  • Draft and send permissions
  • Hosted and stdio deployment modes
  • Microsoft sign-in for Outlook and Microsoft 365

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.

13/13 checks healthy over the last 63d

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.

How Mailmcp works

What mailmcp does

mailmcp gives MCP clients access to multiple mailboxes through IMAP and SMTP. It can work with Gmail, Outlook.com, Microsoft 365, iCloud, Fastmail, Yahoo, Zoho, Seznam.cz, and other mail services that support password-based IMAP/SMTP authentication. Microsoft mailboxes use Microsoft sign-in instead of a mailbox password.

The service is designed for accounts spanning different providers. An assistant can list configured accounts, find and read messages, work with attachments, create drafts, and send mail when those permissions are enabled. Attachments can be downloaded through time-limited links, sent from the connected mailbox, provided from an uploaded file, or forwarded.

How it works

A self-hosted deployment provides an HTTPS MCP endpoint at /mcp. Users visit /setup, select a provider, enter mailbox details, and choose permissions. The browser encrypts app passwords before sending them to the server and returns a token used by the MCP client. Reading is enabled by default; drafting and sending can be granted separately, with recipient allowlists available for sending.

The server keeps one master key and does not use a database for token storage. Changing MAILMCP_KEY invalidates all issued tokens. It can run on Vercel, in Docker, or directly with Node.js 22. Claude Desktop can also load the downloadable .mcpb package and run without a separately hosted server.

Setup and configuration

A deployment needs a master key and an HTTPS address for ChatGPT or Claude connections. Set an invite code of at least eight characters before issuing user tokens, or deliberately enable open signup with MAILMCP_OPEN_SIGNUP=1. MAILMCP_LICENSE selects the paid licence or the free tier.

Use MAILMCP_PUBLIC_URL when a reverse proxy hides the public address. Microsoft sign-in on a self-hosted deployment requires an Entra application ID in MAILMCP_MS_CLIENT_ID; MAILMCP_MS_REDIRECT=1 enables a registered callback-based popup flow. Private mail hosts require MAILMCP_ALLOW_PRIVATE_MAIL_HOSTS=1. The stdio mode can restrict attachment access with MAILMCP_ATTACHMENT_DIRS.

After deployment, connect ChatGPT through its custom app URL or add the endpoint as a Claude custom connector. For local use, open the .mcpb file in Claude Desktop and supply the generated configuration values.

Tools and capabilities

  • List configured mail accounts.
  • Search and read messages across connected mailboxes.
  • Retrieve attachments as downloadable links.
  • Create drafts and prepare replies.
  • Send messages with configured permissions and recipient controls.
  • Send attachments from a mailbox or an assistant-uploaded file.

Limitations and notes

ChatGPT and Claude require HTTPS for hosted connections. Gmail app-password setup requires 2-Step Verification and may be restricted by organisational policies or Advanced Protection. Outlook.com and Microsoft 365 generally require Microsoft sign-in rather than password authentication.

A shared deployment operator can technically see configuration while serving requests, so organisations can run their own instance. The repository is a prebuilt distribution under a commercial licence; the free tier operates without a licence key. Usage statistics, update checks, Microsoft routes, and private-host access can be controlled with environment variables.

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 Mailmcp

mailmcp is an MCP server that connects ChatGPT, Claude, and other MCP clients to IMAP and SMTP mailboxes. Its main tools let assistants list accounts, search and read messages, handle attachments, create drafts, and send email when the configured permissions allow it.

Deploy it with Vercel, Docker, or Node.js 22, then configure the master key and invite settings. You can also download the `.mcpb` package and open it in Claude Desktop for a local deployment.

Connect the deployed HTTPS endpoint at `/mcp` as a custom app in ChatGPT or as a custom connector in Claude. Create a mailbox token at `/setup`, then authenticate the client with that token.

Yes, mailmcp supports Gmail, iCloud, Fastmail, and other providers that expose password-based IMAP and SMTP access. Gmail requires an app password, while Outlook.com and Microsoft 365 use Microsoft sign-in.

Yes, mailmcp can send attachments from a connected mailbox, from a file uploaded by the assistant, or by forwarding. Sending must be enabled for the mailbox, and recipient allowlists can restrict outbound messages.

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