Skip to content
AddHunt
MCP servers

mail-mcp

Open-source email MCP server written in Rust

Works with Linux, macOS, WindowsOpen source

  • Open source
  • Licence: MIT

In short

mail-mcp is a Rust MCP server, released as open source, that gives AI agents access to email for reading, searching, sending and filing messages over IMAP, SMTP, Microsoft Graph and EWS. It is for users of Claude Code, Claude Desktop, Cursor and other MCP clients with Gmail, Microsoft 365 or iCloud.

What you get

  • 37 email tools for MCP clients
  • IMAP, SMTP, Microsoft Graph and EWS support
  • OAuth2 and multiple accounts
  • Threaded replies and forwards
  • Bulk actions on up to 500 messages
  • Runs locally on Linux, macOS and Windows

The details

mail-mcp runs on the user's own machine and connects directly to the mail provider, so messages and credentials do not pass through a third-party service. Once added to an MCP client, it lets an agent find and summarize threads, draft and send replies with correct threading headers, file messages into folders and clean up large batches in a single call.

Tools

The server offers 37 tools grouped into reading, sending and organizing:

  • Search by sender, subject, date or full text, with pagination and search across all folders
  • Parsed messages with text, sanitized HTML and attachment details
  • Plain text and HTML mail with CC, BCC, attachments from disk, replies and forwards
  • Move, copy, flag and delete, folder management and bulk actions on up to 500 messages

Providers

Gmail, Microsoft 365, Outlook.com and Hotmail, Apple iCloud, Zoho Mail, Fastmail and any standard IMAP and SMTP server are supported. Because personal Microsoft accounts block SMTP, mail-mcp can send through Microsoft Graph or EWS with a single OAuth2 token. Several accounts can be configured at once.

Installation

It installs through Homebrew, a shell installer for Linux and macOS, a PowerShell script for Windows, Docker or a source build with cargo. The project is MIT licensed.

Pricing

Free

As of , from mail-mcp.tecnologicachile.cl. Prices change: check before you buy.

Alternatives to mail-mcp

All alternatives

Questions

Does mail-mcp send email through a hosted service?

No. It runs on the user's machine and talks directly to the mail provider, so credentials and messages stay off third-party servers.

Can it send from a personal Outlook.com account?

Yes. Microsoft blocks SMTP for personal accounts, so mail-mcp sends through Microsoft Graph or EWS using one OAuth2 token.

How is mail-mcp installed?

Through Homebrew, shell or PowerShell installers, Docker, or by building from source with cargo.

More like this