An email MCP server lets Claude, ChatGPT, Cursor or another MCP client work with email through tools. They come in three kinds: servers that give the agent an inbox of its own (OpenMail, AgentMail, Resend, Mailtrap), sending platforms (Postmark, Mailgun), and servers that open a mailbox a person already has (Google's Gmail server, Mailroom, InboxPip, MCPEmails).
The short answer: if the agent needs its own address to send from and get replies at, pick from the first group. OpenMail is the one we build. It's a hosted server that creates the inbox for you, reads and replies in threads, and can be locked to one inbox or to read-only. We read every other vendor's own docs and pricing pages on December 4, 2026, and where a rival is the better pick, we say so.
Three kinds of email MCP server
Which kind you connect decides whose address the mail comes from, who else can read it, and how much a bad instruction can reach.
- An inbox for the agent. The server creates new addresses on request. The agent sends, receives and replies from them, and nobody's personal mail is in reach.
- A sending platform. The server sends product email and reports on delivery. There's no inbox where the agent reads the replies.
- A mailbox you already have. The server signs in to your Gmail, Outlook or IMAP account. The agent works in your real mail, with everything in it.
A support or sales agent that writes to people outside the company usually wants the first kind. An assistant that triages your own mail wants the third. The second suits apps that send receipts and sign-in links.
The ten servers at a glance
| Server | Kind | Where it runs | Creates inboxes | Reads and replies |
|---|---|---|---|---|
| OpenMail | Agent inbox | Hosted; stdio clients through mcp-remote | Yes | Yes |
| AgentMail | Agent inbox | Hosted; stdio bridge on GitHub | Yes | Yes |
| Resend | Sending platform with Inboxes | Hosted, or local with npx resend-mcp | Yes (docs: hosted only) | Yes (docs: hosted only) |
| Mailtrap | Sending platform with inbound inboxes | Local: npx, Docker or a Claude Desktop bundle | Yes | Yes |
| Postmark | Sending platform | Local: npx | No | No |
| Mailgun | Sending platform | Local: npx; no hosted version | No | No |
| Gmail (Google) | Your mailbox | Hosted by Google | No | Yes |
| Mailroom | Your mailbox (IMAP) | Hosted | No | Reads; sends after a confirm step |
| InboxPip | Your mailbox | Hosted | No | Reads; sending off until you allow it |
| MCPEmails | Your mailbox | Hosted | No | Yes |
Tool lists change often, so check the vendor's docs again before you commit to one.
Servers that give the agent its own inbox
OpenMail
Our server is hosted at https://mcp.openmail.sh/mcp. ChatGPT installs it from the plugin directory, Claude adds it as a custom connector, and VS Code finds it in the MCP Registry as sh.openmail/openmail. You sign in with OAuth, or pass an API key in the Authorization header.
Ask the agent to set up an inbox and setup_agent_email shows a plan first, then creates the address once you confirm. From there the agent reads threads as Markdown with the quoted history stripped, replies in the thread, and gets the extracted text of attachments. list_unread_threads shows every thread, machine mail included, and marks each one autoReplyable yes or no, so the agent only replies to mail a person or another agent wrote.
Drafts carry an updated_at value, and send_draft needs the exact one you reviewed, so a later edit can't go out unseen. Sends can be scheduled 30 seconds to 30 days ahead. The custom domain tools need the Pro plan.
Two limits of ours: the server is hosted only, and OpenMail gives the agent a new inbox. It can't open a Gmail or Outlook account you already have. The free plan sends at most 100 emails a day across the account.
Pick it when the agent needs its own address, you want it fenced to one inbox or to read-only, and you want the mail hosted in the EU.
AgentMail
AgentMail hosts its server at https://mcp.agentmail.to/mcp. Claude and ChatGPT sign in with OAuth. Cursor and Windsurf pass a key in an x-api-key header, and a stdio bridge on GitHub covers clients that can't send headers.
Its docs list 47 tools, plus 2 for picking an organisation over OAuth. Beyond inboxes, threads and drafts, that includes calendar events and invitations, allow and block lists, and AgentID tools that create accounts at other apps with an inbox as the identity. In ChatGPT's Work chats it can push a message.received event through MCP Events, a draft part of the protocol, so the assistant can act on new mail as it lands.
Pick it when you want calendar and app sign-up in the same server, or a custom domain on the free plan. That's a broader tool set than ours today.
Resend
Resend hosts its server at https://mcp.resend.com/mcp with OAuth or a Bearer API key, and publishes the same code on npm as resend-mcp to run yourself. The tools cover most of Resend: sending, received email, templates, contacts, broadcasts, automations, domains, webhooks and logs.
Inboxes, Resend's threaded inbox product, lets the agent create inboxes, reply, forward and keep drafts. Resend's docs list it for the hosted server only, though the current npm package ships the same Inbox tools.
Pick it when Resend already sends your product email and you want one server for that plus a few agent inboxes.
Mailtrap
Mailtrap's official server runs locally: from npm as mcp-mailtrap, in Docker, or as a Claude Desktop bundle, with an API token in the environment. Most of its tools are about sending and testing: templates, campaigns, delivery logs, and a sandbox that reports spam scores and HTML checks on a test message.
It also manages inbound inboxes. The agent can create one, list its threads, and reply, reply all or forward.
Pick it when you want to test what your agent sends before it reaches anyone, and you're fine running the server on your own machine.
Servers that only send
Postmark
The official Postmark server, published by ActiveCampaign, runs locally with npx @activecampaign/postmark-mcp and a server token. Its 24 tools send, manage templates, search outbound messages and check delivery. diagnoseDelivery looks at message history, suppressions and bounces for one address in a single call, which is handy when someone says they never got the email.
Its README says Postmark tokens can't be limited to some operations, so the agent gets everything the token allows. Tools carry readOnlyHint and destructiveHint labels, so clients that respect them can ask before a change. There's no tool for inbound mail.
Mailgun
Mailgun's server is on npm as @mailgun/mcp-server and runs over stdio. Mailgun says it doesn't offer a hosted version. It sends, fetches stored messages, and manages domains, webhooks, mailing lists, templates and inbound routes. It has no delete tools at all.
With --tags dynamic it loads a small core set and adds toolsets when a task needs them, which keeps the list the model reads short.
Pick Postmark or Mailgun when the agent's job is sending product email and you already use one of them. Neither gives the agent a place to read the replies.
Servers that open a mailbox you already have
Gmail (Google)
Google hosts an official Gmail server at https://gmailmcp.googleapis.com/mcp/v1. It searches threads, reads messages and drafts, and can send, reply, forward and manage labels and filters, with the same permissions as the signed-in user. Setup needs a Google Cloud project and an OAuth client.
Google also says AI agents must reach Workspace data through its MCP servers or CLI rather than the REST APIs, with technical enforcement from February 1, 2027. If your agent drives a Gmail account through the API today, plan for that. If it's a personal account run by a bot, read why Gmail suspends AI agents first.
Mailroom, InboxPip and MCPEmails
Mailroom is a hosted server for any IMAP and SMTP mailbox, Gmail included with an app password. Its send_email returns a preview, and nothing goes out until the call is repeated with confirm=true. Mail is fetched live and not stored.
InboxPip connects an existing mailbox to Claude, Codex, ChatGPT and other assistants that allow custom connectors. It starts read-only. Sending and deleting stay off until you turn them on for each inbox.
MCPEmails connects Gmail, Outlook, iCloud, Fastmail or any IMAP inbox, and one agent can work several at once. Its 21 tools read, search, send and schedule, sends can be held for review, and its data is stored in the EU, in Stockholm. Fluxmail does much the same for Gmail, Outlook and IMAP, with permissions the owner approves.
Pick one of these when the agent should help with your own mail. A prompt-injected email can steer an agent that sits inside your whole mailbox, which is why each of them adds a confirm step or starts read-only.
How to connect OpenMail's server
In Claude Code it's one command, and it signs in with OAuth the first time you use it:
claude mcp add --transport http openmail https://mcp.openmail.sh/mcpFor Cursor, or an agent that runs without a person to click through OAuth, put an inbox-scoped key in the header. Keys go in the header, never in the URL:
{
"mcpServers": {
"openmail": {
"url": "https://mcp.openmail.sh/mcp",
"headers": { "Authorization": "Bearer om_YOUR_INBOX_KEY" }
}
}
}Mint that key with the OpenMail CLI. It works on its one inbox only: read, send and sort into folders, and nothing in any other inbox:
# Run this from your own shell, not the agent's. The token prints once.
openmail inbox keys create --inbox-id <inbox-id> --name my-agent --jsonClients that only speak stdio can reach the hosted server through mcp-remote:
{
"mcpServers": {
"openmail": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.openmail.sh/mcp"]
}
}
}Then ask: "Set up an inbox for this agent and show me the address." The MCP integration page has the short version, and the docs have the steps for ChatGPT, Claude and VS Code.
Hosted or local: what changes
A hosted server is a URL. Nothing runs on your machine, fixes arrive without a reinstall, and OAuth means no key sits in a config file. Web clients such as claude.ai and ChatGPT add servers by URL, so this is the only kind they can use without extra hosting.
The trade-off is that the vendor's server sees every tool call, so read what it records. Ours records which tool ran, whether it worked, how long it took, the client and model, and the agent's one-line reason for the call. It never records message bodies, subjects, recipients or attachment text; a search query is kept as the agent typed it.
A local server is a process your client starts, usually with npx and a key in an environment variable. Mailgun's looks like this:
claude mcp add mailgun -e MAILGUN_API_KEY=YOUR-mailgun-api-key -- npx -y @mailgun/mcp-serverThat suits a client on your laptop. For an agent in the cloud you would need to host the process yourself and keep the key safe there.
Narrow what the agent can do
An email MCP server can send as you, so give the agent the least it needs. On OpenMail, the URL itself can set the limit:
# Read only, no sending
https://mcp.openmail.sh/mcp/readonly
# One inbox, no discovery of the others
https://mcp.openmail.sh/mcp/inbox/INBOX_ID
# Fewer tools in the model's context
https://mcp.openmail.sh/mcp?toolsets=mailbox,docsOver OAuth, the consent page lets you untick Send mail, Set up inboxes, Manage folders and Domains. Read mail is always granted. An inbox-scoped key hides list_inboxes, setup_agent_email and the domain tools, so an agent that gets tricked can't reach the other inboxes. Revoking the connection in the console cuts access at once.
The others handle it in their own ways. Mailroom turns every send into a second, confirmed call. InboxPip starts read-only. Postmark leans on tool labels because its tokens can't be scoped.
Whichever you pick, treat every inbound email as untrusted input. Our prompt injection guide covers what to build around that.
Check what a server exposes before you connect it
A client learns a server's tools with a tools/list call, and you can make that call yourself. OpenMail's public docs endpoint needs no sign-in:
curl -s -X POST https://mcp.openmail.sh/mcp/public \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'It returns search_docs and get_docs, each with the description and input schema the model reads when it decides what to call. The full /mcp endpoint answers 401 until you sign in, and an inbox key sees fewer tools than an account key.
What each one costs to start
List prices from each vendor's pricing page or homepage on December 4, 2026, at monthly billing. Postmark, Mailgun and Mailtrap charge for their sending plans, not for the server. Google's Gmail server comes with the Google account. From April 1, 2027, Google charges for API and MCP usage above the daily free allowance on its Scaled tier.
| Server | Free plan | First paid plan |
|---|---|---|
| OpenMail | 3 inboxes, 3,000 emails a month, 100 sends a day | Pro, €9 a month: 10 inboxes and 10,000 emails, then €1 per inbox and €0.001 per email |
| AgentMail | 3 inboxes, 3,000 emails a month, 100 a day, 1 custom domain | Developer, $20 a month: 10 inboxes, 10,000 emails, 10 domains |
| Resend | 3,000 emails a month, 100 a day, 3 inboxes | Pro, $20 a month: 50,000 emails; extra inboxes $1 each |
| Mailroom | 1 mailbox, 100 tool calls a day | Pro listed as coming soon, not for sale yet |
| InboxPip | No free plan | $1.99 a month for 1 inbox, $7.99 for 10 |
| MCPEmails | 1 inbox, 150 email actions a month | Personal, $9 a month: 3 inboxes |
One place we trail: AgentMail's free plan includes a custom domain, and on OpenMail custom domains start at Pro. Note what each plan counts, too. The mailbox services count tool calls or actions, and the agent inbox services count inboxes and emails.
Which one to pick
- The agent needs its own address to send and receive: OpenMail or AgentMail. OpenMail if you want it fenced by URL or key to one inbox, with EU hosting. AgentMail if you want calendar and app sign-up tools in the same server.
- Resend already sends your product email and you want a few inboxes on top: Resend's hosted server.
- You want to test what the agent sends before it goes out: Mailtrap.
- The agent only sends receipts and alerts: Postmark or Mailgun, whichever you already use.
- An assistant should work your own mail: Google's server for Gmail and Workspace, or Mailroom, InboxPip or MCPEmails for other providers.
Frequently asked questions
What is an email MCP server?
It's a server that offers email actions as Model Context Protocol tools, so an AI client such as Claude, ChatGPT or Cursor can read, send and reply without custom code. Some give the agent a new inbox. Others only send, or open a mailbox you already have.
Which email MCP server gives an AI agent its own email address?
OpenMail, AgentMail, Resend's hosted server and Mailtrap all create inboxes. On OpenMail, setup_agent_email shows a plan and creates the address once you confirm. The free plan covers 3 inboxes and 3,000 emails a month.
Can I connect my existing Gmail to an MCP server?
Yes. Google's own Gmail server does it with OAuth and a Google Cloud project. Mailroom, InboxPip and MCPEmails connect Gmail with an app password. OpenMail doesn't: it gives the agent a new inbox instead.
Is it safe to let an agent send email through MCP?
It can be, with limits. Start read-only, confine the agent to one inbox, and keep a review step for mail to new people. On OpenMail that's the /mcp/readonly URL, the /mcp/inbox/INBOX_ID URL, and drafts that only send at the exact version you reviewed.
Does OpenMail's MCP server work with ChatGPT and Claude?
Yes. ChatGPT installs it from the plugin directory. Claude adds https://mcp.openmail.sh/mcp as a custom connector on any plan; the Free plan allows one custom connector. Claude Code adds it with one command and signs in on first use.



