---
title: "Email for AI Agents: 20 Docs, MCP Servers and Specs | SendHQ"
description: 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.
canonical: https://sendhq.cc/blog/email-api-resources-for-ai-agents
last-updated: 2026-12-02
author: Dhrumil Barot
author_bio: Dhrumil is an email marketing expert. Dhrumil built SendHQ so developers and AI agents can send, receive and track email without fighting deliverability on their own.
published: 2026-12-02
updated: 2026-12-02
---
# Email for AI Agents: 20 Docs, MCP Servers and Specs

By [Dhrumil Barot](https://sendhq.cc/about.md#founder), Founder

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 December 2, 2026 · Updated December 2, 2026

**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](https://sendhq.cc/app) and connect your agent through the [SendHQ MCP server](https://sendhq.cc/docs/mcp.md).

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](https://modelcontextprotocol.io/specification/2025-11-25) (current version 2025-11-25), one provider's MCP server docs, the [Standard Webhooks spec](https://github.com/standard-webhooks/standard-webhooks/blob/main/spec/standard-webhooks.md) for inbound events, and [Gmail's sender requirements](https://support.google.com/a/answer/81126), 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.

![The four parts an agent needs to use email safely](https://cdn.sanity.io/images/l4lj7ros/production/7b97b4268445dc6c0760660e4684dfa789bb7b40-1344x326.png?w=1280&auto=format)

Accepted is not delivered: the agent checks the event before it reports success.

## 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 `sendhq` binary and run `sendhq mcp` over stdio, or connect Claude, ChatGPT or Grok to the hosted connector at `https://mcp.sendhq.cc/mcp` and sign in instead of pasting a key ([docs](https://sendhq.cc/docs/mcp.md)).
- **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](https://sendhq.cc/docs/mcp/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-only` hides 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 HTTP `status`, an `explanation`, a `remedy` and 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](https://sendhq.cc/pricing.md)). 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 mcp
```

## Which 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](https://sendhq.cc/docs/mcp.md): 142 tools for send, receive, domains, templates and deliverability, with `--read-only` mode and a hosted connector. For agent builders who need inbound and outbound in one place. From $9/month.
- [SendHQ documentation MCP endpoint](https://sendhq.cc/api/mcp): 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](https://github.com/mailtrap/mailtrap-mcp): 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](https://github.com/resend/resend-mcp): Resend's official server for sending email from an MCP client. Fits teams already on Resend.
- [AgentMail docs](https://docs.agentmail.to/): 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](https://www.agentmail.to/pricing)). Strong when every agent needs a separate address.
- [MCP Inspector](https://github.com/modelcontextprotocol/inspector): the official tool for testing any MCP server by hand. Free. Use it to see exactly which tools and descriptions your agent receives.

Video: [What is MCP? Integrate AI Agents with Databases & APIs](https://www.youtube.com/watch?v=eur8dUO9mvE) (IBM Technology)

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.

1. [0:00](https://www.youtube.com/watch?v=eur8dUO9mvE) MCP host, client and server defined
2. [0:53](https://www.youtube.com/watch?v=eur8dUO9mvE&t=53s) The protocol as the layer between host and servers
3. [2:13](https://www.youtube.com/watch?v=eur8dUO9mvE&t=133s) Host retrieves tools and sends them to the LLM
4. [2:43](https://www.youtube.com/watch?v=eur8dUO9mvE&t=163s) Server executes the call against an API and returns the result

## 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](https://sendhq.cc/docs/inbound.md): 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](https://postmarkapp.com/developer/user-guide/inbound): mail sent to a `hash@inbound.postmarkapp.com` address is delivered to your webhook "in nicely formatted JSON". A clear reference for what a parsed inbound payload looks like.
- [Cloudflare Email Workers](https://developers.cloudflare.com/email-routing/email-workers/): run a Worker on each message that arrives through Email Routing. Good for agents already deployed on Cloudflare.
- [Standard Webhooks spec](https://github.com/standard-webhooks/standard-webhooks/blob/main/spec/standard-webhooks.md): defines the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers. 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](https://sendhq.cc/guides/inbound-email-webhooks.md): design patterns for processing inbound messages without a polling mailbox.

![A reply to an agent's email flows back through an inbound webhook](https://cdn.sanity.io/images/l4lj7ros/production/051f4cbfe240e8ccf028f207fe0a21d81af2e61e-1344x326.png?w=1280&auto=format)

Verify the webhook signature before the agent acts on the message.

## 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](https://modelcontextprotocol.io/specification/2025-11-25): tools, transports and the annotations that mark a tool as destructive. Free.
- [RFC 5322, Internet Message Format](https://www.rfc-editor.org/rfc/rfc5322): what `From`, `Reply-To`, `Message-ID` and `In-Reply-To` mean. Threading replies correctly depends on the last two.
- [RFC 7489, DMARC](https://www.rfc-editor.org/rfc/rfc7489): 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](https://www.rfc-editor.org/rfc/rfc8058): the `List-Unsubscribe-Post` header required of bulk senders.
- [Gmail email sender guidelines](https://support.google.com/a/answer/81126): 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](https://sendhq.cc/agents.md): a short checklist written for agents: confirm workspace, verified From domain, recipients, subject and content before a send; use an `Idempotency-Key` for any send that might be retried.
- [Amazon SES mailbox simulator](https://docs.aws.amazon.com/ses/latest/dg/send-email-simulator.html): addresses such as `success@simulator.amazonses.com` that return a delivery, bounce or complaint without reaching a person. Point agent tests here.
- [SendHQ errors and retries](https://sendhq.cc/docs/errors.md): 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](https://sendhq.cc/guides/email-api-for-ai-agents.md): 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-only
```

And 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

1. Read the [MCP spec overview](https://modelcontextprotocol.io/specification/2025-11-25) and watch the video above (30 minutes).
2. Verify one sending domain; our [SPF, DKIM and DMARC guide](https://sendhq.cc/guides/email-dkim-spf-dmarc.md) walks through the records.
3. Connect the [SendHQ MCP server](https://sendhq.cc/docs/mcp.md) in `--read-only` mode and let the agent list domains and events.
4. Remove `--read-only`, send one message to the SES simulator, and have the agent read the delivery event back.
5. Add inbound with the [receive email with an API guide](https://sendhq.cc/guides/receive-email-with-api.md) 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](https://sendhq.cc/app) and read the [MCP server docs](https://sendhq.cc/docs/mcp.md).

## Related articles

[HTML Email Resources: 20 Tools, Frameworks and Specs](https://sendhq.cc/blog/html-email) [How to Give an AI Agent Safe Email Sending Access](https://sendhq.cc/blog/safe-email-access-for-ai-agents) [AgentMail vs Nylas: Agent Inboxes or Connected Mailboxes](https://sendhq.cc/blog/agentmail-vs-nylas)
