Skip to content
uriva avatar

AgentMail

uriva/agentmail

Email inboxes for AI agents: send, receive, and read messages with webhooks and spam filtering.

CCM score
76 of 100
GitHub stars
5
tools
8
auth
Secret needed
transport
HTTP
last updated
Nov 26, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Reads mail with list_messages, get_message, get_mailbox, and get_attachment_url, returning full text and HTML bodies plus 1-hour signed attachment links
  • Sends with send_email, which screens outbound mail in real time for spam and phishing before delivery
  • Manages real-time inbound alerts with create_webhook, list_webhooks, and delete_webhook for email.received events over HTTPS
  • Connects over remote Streamable HTTP with a Bearer key from your org dashboard, so no local install is needed. Mailboxes cost $1 per month, with the first free for 30 days
  • Designed for agents that need their own address for notifications, deploy alerts, or handling inbound email on your own domain

Install

$ npx -y add-mcp https://api.theagentmail.net/mcp --name agentmail --header 'Authorization: Bearer ${API_TOKEN}'

Adds the server to every agent config it finds in this project. add-mcp asks for each value it needs.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http agentmail https://api.theagentmail.net/mcp --header 'Authorization: YOUR_AUTHORIZATION'

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 8 tools

Verified live against the running server on Nov 27, 2026.

get_mailboxGet mailbox address, status, expiration, and send count.

Get mailbox address, status, expiration, and send count.

No parameters. Call it with no arguments.

list_messagesList recent inbound and outbound messages for the mailbox, newest first.

List recent inbound and outbound messages for the mailbox, newest first.

No parameters. Call it with no arguments.

get_messageRead a single email message including full text/HTML body and attachment metadata.1 params

Read a single email message including full text/HTML body and attachment metadata.

Parameters* required
messageId*string
Unique message ID returned by list_messages.
send_emailSend an email from the agent mailbox (outbound mail is scanned in real time for spam/phishing).8 params

Send an email from the agent mailbox (outbound mail is scanned in real time for spam/phishing).

Parameters* required
bccarray
Optional blind carbon-copy (BCC) recipient email addresses.
ccarray
Optional carbon-copy (CC) recipient email addresses.
htmlstring
Optional HTML message body.
inReplyTostring
Optional Message-ID header for threading replies.
referencesstring
Optional References header for threading replies.
subject*string
Email subject line.
text*string
Plain text message body.
to*array
Primary recipient email addresses.
get_attachment_urlGet a 1-hour signed download URL for a message attachment.2 params

Get a 1-hour signed download URL for a message attachment.

Parameters* required
attachmentId*string
Attachment ID from get_message metadata.
messageId*string
Message ID containing the attachment.
list_webhooksList inbound email webhook subscriptions for the mailbox.

List inbound email webhook subscriptions for the mailbox.

No parameters. Call it with no arguments.

create_webhookRegister an HTTPS webhook URL for real-time email.received events.1 params

Register an HTTPS webhook URL for real-time email.received events.

Parameters* required
url*string
HTTPS webhook endpoint URL that receives POST events.
delete_webhookDelete a webhook subscription by ID.1 params

Delete a webhook subscription by ID.

Parameters* required
webhookId*string
Webhook subscription ID from list_webhooks.

Readme

AgentMail (theagentmail.net)

mcptry

Open-source (MIT) email infrastructure for AI agents. Give every agent its own @theagentmail.net mailbox with sending, receiving, real-time webhooks, attachments, and a real-time AI spam/phishing guard — $1/month per mailbox (first mailbox free for 30 days) or self-host on Cloudflare Workers.

Why AgentMail?


View the full README on GitHub

Details

Repository
github.com/uriva/agentmail
Website
theagentmail.net
Categories
Email & Messaging, AI Agents & LLM Apps
Transport
HTTP
Auth
Required
Registry
MCP registry, active
Tools verified
Nov 27, 2026

Questions

What can an agent do with the AgentMail MCP server?

The AgentMail server gives an agent its own email mailbox to read and send mail. Its eight tools cover reading the mailbox, listing and reading messages, sending email, fetching attachment download URLs, and managing webhooks for real-time email.received events.

How do I install the AgentMail MCP server in Claude Code?

Run this command in a terminal: claude mcp add --transport http agentmail https://api.theagentmail.net/mcp --header 'Authorization: YOUR_AUTHORIZATION'. The Authorization header takes your AgentMail API key, which is required and kept secret.

Where does AgentMail rank in the Email and Messaging category?

AgentMail ranks in the top 100 on the Email and Messaging category page of Claude Marketplaces. Other servers in this category include Agent-Native Dispatch, WhatsApp, MoeMail, Slack and Commonly.

Does AgentMail scan outbound email for spam?

Yes, outbound mail sent with the send_email tool is scanned in real time for spam and phishing. The server is open source under the MIT license.

Similar to AgentMail

More Email & Messaging