AI Agents
Email for AI Agents: 20 Docs, MCP Servers and Specs
Email for AI agents starts with an MCP server, an inbound webhook and three specs. Here are 20 docs, servers and guides worth reading, with cost.
Published · Updated
TL;DR: To give an AI agent email you need three things: a tool interface the agent can call (an MCP server or an OpenAPI contract), a way to receive mail (an inbound webhook or an agent inbox), and guardrails so it never mails the wrong person. SendHQ ships all three in one workspace: a 142-tool MCP server with a --read-only mode, inbound email and delivery events. Below are 20 resources, grouped by kind, with who each is for and what it costs.
Start sending with SendHQ and connect your agent through the SendHQ MCP server.
Email for AI agents means an agent can send, receive and inspect email through a scoped API instead of a human mailbox password. The ai agent email api you pick decides how much of that you build yourself. The shortest reading list is: the Model Context Protocol specification (current version 2025-11-25), one provider's MCP server docs, the Standard Webhooks spec for inbound events, and Gmail's sender requirements, in force since February 1, 2024. Everything else on this page fills a specific gap: receiving, testing safely, or stopping an agent from acting on its own. Every link and price was checked on December 2, 2026.

What SendHQ gives an agent for email
SendHQ is an email API with an MCP server built for agents. What it does for this exact job:
- MCP server, local or hosted. Install the
sendhqbinary and runsendhq mcpover stdio, or connect Claude, ChatGPT or Grok to the hosted connector athttps://mcp.sendhq.cc/mcpand sign in instead of pasting a key (docs). - 142 strictly typed tools in 10 groups. Unknown arguments, wrong types and missing fields are rejected locally before anything reaches the API. The catalog is published as tools.json.
- Safety built into the tool list. Every tool that sends real email or destroys data says so in the first words of its description.
--read-onlyhides every sending and mutating tool. There are 0 key-management tools, so an agent cannot create or revoke API keys. - Structured errors with a stable
code, the HTTPstatus, anexplanation, aremedyand whether a retry can help, so the agent can recover instead of looping. - Inbound and outbound in one workspace: inbound addresses, threads, delivery events, bounces, complaints and suppressions.
- Price: Starter Transactional is $9/month for 50,000 emails/month and 25 verified domains; Scale is $39/month for 200,000 (pricing). Sending requires an active subscription; there is no free allowance.
What it does not do: SendHQ does not give an agent a Gmail or Outlook mailbox to read. If your agent must work inside a user's existing Google or Microsoft inbox, use the Gmail API or Microsoft Graph (below).
curl -fsSL https://downloads.sendhq.cc/install.sh | sh
claude mcp add sendhq --env SENDHQ_API_KEY=re_your_key -- sendhq mcpWhich email MCP servers exist?
An MCP email server is a process that turns provider API calls into tools an agent can call. These are the official ones from the providers themselves; community wrappers exist, but an official server tracks the API it wraps.
- SendHQ MCP server: 142 tools for send, receive, domains, templates and deliverability, with
--read-onlymode and a hosted connector. For agent builders who need inbound and outbound in one place. From $9/month. - SendHQ documentation MCP endpoint: a small read-only server for docs and pricing lookup, no account access. Free; useful when a coding agent is writing your integration.
- Mailtrap MCP server: Mailtrap's official server, described in its repo as "over 125 tools", including its Email Sandbox for testing. Good if you already send through Mailtrap.
- Resend MCP server: Resend's official server for sending email from an MCP client. Fits teams already on Resend.
- AgentMail docs: an API that gives each agent its own inbox; the free plan has 3 inboxes and 3,000 emails/month, Developer is $20/month for 10 inboxes and 10,000 emails (pricing). Strong when every agent needs a separate address.
- MCP Inspector: the official tool for testing any MCP server by hand. Free. Use it to see exactly which tools and descriptions your agent receives.
IBM Technology explains how an MCP host, client and server fit together, and how the host sends the user's question plus the available tools to the model, then calls the server the model picks. This is the loop every email MCP server above plugs into.
How do agents receive email?
Agents receive email in one of two ways: the provider posts each inbound message to your webhook as JSON, or the agent polls an inbox through an API. Webhooks are faster and cheaper; polling is simpler when the agent runs on a schedule.
- SendHQ inbound email docs: set up an inbound domain or address and receive messages in the same workspace you send from, so replies thread with the original send.
- Postmark inbound processing: mail sent to a
hash@inbound.postmarkapp.comaddress is delivered to your webhook "in nicely formatted JSON". A clear reference for what a parsed inbound payload looks like. - Cloudflare Email Workers: run a Worker on each message that arrives through Email Routing. Good for agents already deployed on Cloudflare.
- Standard Webhooks spec: defines the
webhook-id,webhook-timestampandwebhook-signatureheaders. The signature header is a space-delimited list so secrets can rotate without downtime. Read it before you write a signature check. - SendHQ guide: inbound email webhooks: design patterns for processing inbound messages without a polling mailbox.

What specs should agent builders read?
Agent builders should read four specs: the MCP spec, RFC 5322, DMARC (RFC 7489) and one-click unsubscribe (RFC 8058). The agent never writes raw MIME, but these decide what your tools must validate.
- MCP specification 2025-11-25: tools, transports and the annotations that mark a tool as destructive. Free.
- RFC 5322, Internet Message Format: what
From,Reply-To,Message-IDandIn-Reply-Tomean. Threading replies correctly depends on the last two. - RFC 7489, DMARC: why the visible From domain must align with SPF or DKIM. An agent sending "as" a domain you have not verified fails here.
- RFC 8058, one-click unsubscribe: the
List-Unsubscribe-Postheader required of bulk senders. - Gmail email sender guidelines: SPF or DKIM for all senders since February 1, 2024, with extra rules above 5,000 messages a day to Gmail accounts.
How do I stop an agent sending to the wrong person?
Stop an agent from mailing the wrong person with limits the agent cannot talk its way past: a key scoped to one workspace, a verified From domain, a read-only mode for agents that only need to look, idempotency keys on every send, and a test destination that cannot reach a customer.
- SendHQ agent operating guide: a short checklist written for agents: confirm workspace, verified From domain, recipients, subject and content before a send; use an
Idempotency-Keyfor any send that might be retried. - Amazon SES mailbox simulator: addresses such as
success@simulator.amazonses.comthat return a delivery, bounce or complaint without reaching a person. Point agent tests here. - SendHQ errors and retries: which errors are safe to retry and which mean stop. Feed this to the agent so a 4xx does not turn into a retry loop.
- SendHQ guide: email API for AI agents: how to give agents a constrained, observable path to send and receive without mailbox credentials.
In practice, the read-only switch is the cheapest guardrail:
# An agent that only investigates bounces never sees a send tool
claude mcp add sendhq-readonly --env SENDHQ_API_KEY=re_your_key -- sendhq mcp --read-onlyAnd every send_email tool call carries an idempotency_key, so a retried call cannot send twice:
{
"from": "support@mail.example.com",
"to": ["success@simulator.amazonses.com"],
"subject": "Your ticket #4821 was updated",
"text": "We replied to your ticket.",
"idempotency_key": "ticket-4821-update-1"
}Start here: a reading path for your first agent
- Read the MCP spec overview and watch the video above (30 minutes).
- Verify one sending domain; our SPF, DKIM and DMARC guide walks through the records.
- Connect the SendHQ MCP server in
--read-onlymode and let the agent list domains and events. - Remove
--read-only, send one message to the SES simulator, and have the agent read the delivery event back. - Add inbound with the receive email with an API guide and verify webhook signatures per Standard Webhooks.
FAQ
What is the best email API for AI agents?
The best email API for AI agents is one with an official MCP server, inbound email, delivery events and a way to restrict what the agent can do. SendHQ covers all four, including a --read-only mode. If each agent needs its own separate inbox, AgentMail is built for that.
Which email MCP servers exist?
Official email MCP servers include SendHQ (142 tools, local or hosted), Mailtrap (over 125 tools per its repo) and Resend. AgentMail provides an agent-inbox API. Test any of them with MCP Inspector before giving them to an agent.
How do AI agents receive email?
AI agents receive email through an inbound webhook that posts each parsed message as JSON, or by polling an inbox API. SendHQ, Postmark and Cloudflare Email Workers all support webhook-style inbound. Always verify the webhook signature first.
Can an AI agent use my Gmail account?
An AI agent can use a Gmail account through the Gmail API with OAuth, but that gives it a human mailbox. For product email from your own domain, a send-and-receive API with a scoped key keeps the agent away from personal mail.
How do I test an email agent without emailing real people?
Send to Amazon SES simulator addresses like success@simulator.amazonses.com, which return a delivery, bounce or complaint event without reaching anyone, and start the agent in read-only mode.
Do I need DKIM and DMARC for an agent that sends email?
Yes. Gmail requires SPF or DKIM from every sender since February 1, 2024, and DMARC alignment decides whether your From domain is trusted. An agent sending from an unverified domain will fail.
Give your agent email it can't misuse: start sending with SendHQ and read the MCP server docs.