Back to Blog
🤖
/5 min read/By SMTPfast Team

Email APIs With an MCP Server: Which Ones Let AI Agents Send Email (2026)

Yes. SMTPfast and Resend run hosted MCP servers that an AI agent can connect to with OAuth or an API key, Brevo runs a hosted server with a token, and Postmark and Mailgun publish official local servers you start with npx. This page compares where each runs, how it signs in, and what the agent can do, checked on 21 November 2026.

mcpai-agentscomparisonemail-apiclaude
Share:𝕏in

The short answer: yes. Several email APIs have an MCP server, and they differ in where the server runs and how it signs in.

  • Hosted, with OAuth or an API key: SMTPfast (https://smtpfa.st/api/mcp) and Resend (https://mcp.resend.com/mcp). Nothing to install.
  • Hosted, with a token: Brevo (https://mcp.brevo.com/v1/brevo/mcp), mostly for contacts and campaigns.
  • Local, started with npx: Postmark (@activecampaign/postmark-mcp) and Mailgun (@mailgun/mcp-server).

We build SMTPfast. The details for the other servers come from their own documentation, checked on 21 November 2026, and the sources are at the end.

Which email APIs have an MCP server?

Provider Where it runs Sign-in Send email Read received email Notes
SMTPfast Hosted OAuth 2.1 or API key Yes Yes, and reply in thread Over 100 tools; drafts for human review; each tool marked read-only or not
Resend Hosted, or local (npx -y resend-mcp) OAuth (hosted) or API key Yes Yes Inboxes only on the hosted server
Postmark Local (@activecampaign/postmark-mcp) Server token (full access to that server) Yes No inbound tools listed 24 tools; Postmark suggests a dedicated server for MCP
Mailgun Local (@mailgun/mcp-server, Node.js 18+) API key Yes Inbound routes only "50+ operations"; no delete tools
Brevo Hosted MCP token in a header Not stated in the docs Not stated Contacts, campaigns and transactional templates; one URL per module

MailerSend also lists an MCP server on its pricing page. We did not check its details for this page.

Hosted or local: why it matters

A hosted server is a URL. The client connects over HTTP, so it works in desktop, web and mobile clients and you install nothing. With OAuth, you sign in once in the browser and pick what the agent may do; no key is pasted into a config file.

A local server is a program the client starts on your machine, usually with npx. It needs Node.js, keeps the API key in an environment variable, and does not work in clients that cannot start processes. It is a good fit when you want the key to never leave your machine's config.

What an agent can do with the SMTPfast MCP server

The SMTPfast server exposes the same operations as the REST API, as over 100 tools. The ones agents use most:

  • send_email, send_email_batch and send_template_email to send.
  • check_before_send: sender domain, display name, spam patterns, client compatibility and link reputation in one pass-or-fix list.
  • explain_email: what happened to one email, with the bounce or complaint detail and the next step.
  • deliverability_report and find_problem_recipients for a domain's bounce and complaint rates.
  • add_domain, get_domain and verify_domain to set up a sending domain and read its DNS records.
  • list_received_emails, get_received_email and reply_to_received_email for inbound mail.
  • save_inbox_draft to write a reply that a person reviews and sends.
  • Broadcasts, contacts, segments, templates, webhooks and suppressions.

The full list is in the MCP server docs.

Connect an agent in one command

Claude Code, with OAuth (no key; you sign in when it asks):

claude mcp add --scope user --transport http smtpfast https://smtpfa.st/api/mcp

Or with an API key:

claude mcp add --scope user --transport http smtpfast https://smtpfa.st/api/mcp \
  --header "Authorization: Bearer sf_your_api_key"

Cursor, in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "smtpfast": {
      "url": "https://smtpfa.st/api/mcp",
      "headers": { "Authorization": "Bearer sf_your_api_key" }
    }
  }
}

Any client can also call the server directly. This lists the tools:

curl -sS https://smtpfa.st/api/mcp \
  -X POST \
  -H "Authorization: Bearer $SMTPFAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

For Claude Desktop and Codex, with real runs and what they looked like, see how to send email from your AI agent.

Keep the agent from sending what you did not approve

An agent with an email tool can send to anyone. Set it up so it cannot surprise you:

  1. Scope the key. Create a key with only the scopes the agent needs: email:send and email:read for sending and checking what it sent, domain:read if it should run check_before_send, and no key or team management. With OAuth, approve only those scopes on the consent page.
  2. Keep approval on for changes. Each SMTPfast tool is annotated as read-only or not, so a client can run lookups freely and ask before a send.
  3. Use drafts. For replies, let the agent call save_inbox_draft and send the draft yourself. save_inbox_draft needs only inbound:read, so a key without email:send makes this a rule the server enforces, not only a habit of the client.
  4. Send from a subdomain. Agent mail from agent.yourdomain.com lowers the risk that a mistake hurts your main domain's reputation. It does not remove it: the sending IPs and your account's reputation are shared.

SMTPfast also has a Claude Skill that teaches Claude when to use which tool, and every send goes through the same checks as an API send: suppressions, plan limits and the first-week ramp for new accounts.

Sources

Checked on 21 November 2026:

Frequently asked questions

Is there an email API with an MCP server so AI agents can send email?

Yes. SMTPfast (https://smtpfa.st/api/mcp) and Resend (https://mcp.resend.com/mcp) host MCP servers that accept OAuth or an API key. Postmark (@activecampaign/postmark-mcp) and Mailgun (@mailgun/mcp-server) publish official MCP servers that run locally with npx. Brevo hosts one at https://mcp.brevo.com/v1/brevo/mcp for contacts and campaigns.

What is the difference between a hosted and a local MCP server?

A hosted (remote) MCP server is a URL your client connects to over HTTP, so there is nothing to install and it works in web and mobile clients. A local server is a program the client starts on your machine (for example with npx), which holds the API key in an environment variable. Local servers need Node.js and do not work in clients that cannot start processes.

How do I stop an AI agent from sending email I did not approve?

Give it a key with only the scopes it needs, keep tool approval on in the client for tools that change things, and let it write drafts instead of sending. SMTPfast marks each tool as read-only or not, so a client can ask only before changes, and its save_inbox_draft tool needs only the inbound:read scope. A key without email:send can then write drafts but cannot send them; with email:send, the agent could also call send_inbox_draft, so approval depends on your client.

Can an AI agent read incoming email over MCP?

With SMTPfast and Resend, yes: both MCP servers can list and read received email and download attachments. SMTPfast can also reply in the thread and save drafts in an inbox. The Postmark MCP server's tool list has no inbound tools, and Mailgun's covers inbound routes.

Ready to get started?

Start sending transactional email today. Free to start, no credit card required.

Get Started for Free