AgentMail
Email inboxes for AI agents, with an API, MCP server and webhooks
AgentMail is a freemium MCP server for communication. It runs as a hosted remote server, so there is nothing to install locally.
- Pricing
- Freemium
- Platforms
- Web, API, CLI
- Runs
- Remotely
- Version
- 0.2.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add --transport http agentmail https://api.theagentmail.net/mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"agentmail": {
"type": "http",
"url": "https://api.theagentmail.net/mcp"
}
}
}In Customize → Connectors → Add → Add custom connector
https://api.theagentmail.net/mcpPaste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"agentmail": {
"url": "https://api.theagentmail.net/mcp"
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"agentmail": {
"type": "http",
"url": "https://api.theagentmail.net/mcp"
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
In chatgpt.com → Plugins → + → Add custom MCP server
https://api.theagentmail.net/mcpPaste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.
Add with the CLI
Run in a terminal
codex mcp add agentmail --url https://api.theagentmail.net/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.agentmail]
url = "https://api.theagentmail.net/mcp"Add to Grok Bot desktop app → Connect apps → Add a custom connector
https://api.theagentmail.net/mcpEnter a Name (for example "AgentMail"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.
Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"agentmail": {
"type": "http",
"url": "https://api.theagentmail.net/mcp"
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "agentmail": { "httpUrl": "https://api.theagentmail.net/mcp" } } }Or run: gemini mcp add -s user --transport http agentmail https://api.theagentmail.net/mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "agentmail": { "serverUrl": "https://api.theagentmail.net/mcp" } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "agentmail": { "url": "https://api.theagentmail.net/mcp", "transport": "http" } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "agentmail": { "type": "streamableHttp", "url": "https://api.theagentmail.net/mcp" } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "agentmail": { "url": "https://api.theagentmail.net/mcp" } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "agentmail": { "url": "https://api.theagentmail.net/mcp" } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "agentmail": { "url": "https://api.theagentmail.net/mcp" } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "agentmail": { "url": "https://api.theagentmail.net/mcp" } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About AgentMail
AgentMail gives an autonomous agent its own mailbox on the theagentmail.net domain, so it can receive one-time codes, reply to people and send notifications without access to a personal account. Mailboxes are created through a single API call, and sending, polling and webhook delivery all run over the same REST interface.
The service also exposes a remote MCP server over Streamable HTTP, so MCP-compatible clients can connect with a bearer key and no local install. Outbound messages pass through a real-time AI spam and phishing filter before they leave the server, which is meant to keep the shared domain's reputation intact.
The code is MIT licensed across the backend, frontend and SDK, and the project can be self-hosted on Cloudflare Workers. It suits developers building agent workflows that need to sign up for third-party services or hand work off to people by email.
What it does
- One-call mailbox creation
- A single POST request creates a working address on the shared domain without DNS or domain setup.
- Realtime webhooks
- Incoming messages trigger webhook events, including verification codes, so agents can act on them immediately.
- Remote MCP server
- A Streamable HTTP MCP endpoint lets compatible clients connect with an API key and no local package.
- Scoped API keys
- Keys can be limited to individual accounts, so each agent only touches its own mailbox.
- AI spam guard
- Outbound mail is classified in real time for spam and phishing before delivery.
- Attachment support
- Mailboxes send and receive attachments through the same API.
- Self-hostable MIT code
- Backend, frontend and SDK are public and can be run on Cloudflare Workers.
Good for
- Receiving verification codes so an agent can complete a signup flow itself
- Giving a support or ops agent a dedicated inbox for handoffs to humans
- Sending deployment or status notifications from an automated pipeline
- Building webhook-driven workflows that react to incoming email
- Connecting an MCP-capable coding assistant to a mailbox it can read and write
Pricing
Freemium, from $1 a month
1 mailbox free for 30 days; $1/mo per mailbox after; $5 minimum deposit
Prices change. Check theagentmail.net before you buy.
AgentMail FAQ
How do I give my AI agent an email address?
Create a mailbox with one API call and the agent gets an address on @theagentmail.net. It can send through the REST API, receive by polling or webhooks, and handle attachments, with no domain, DNS or SPF/DKIM setup.
Can agents receive verification codes?
Yes, on paid mailboxes. Signup and OTP emails are blocked on free trial mailboxes to prevent burner abuse, and they unlock with a $5 minimum deposit.
Is AgentMail open source?
The backend, frontend, SDK and infrastructure are MIT licensed and published on GitHub, so you can self-host or contribute.
How much does AgentMail cost?
One mailbox is free for 30 days after phone verification, with limits of 20 sends and 50 receives per day. Paid mailboxes cost $1 per month and include 1,000 sends and 1,000 receives per month, with a 200-per-day cap.
How do I add AgentMail to Claude Code?
Run this command in your terminal: claude mcp add --transport http agentmail https://api.theagentmail.net/mcp
What are the best alternatives to AgentMail?
The closest alternatives to AgentMail are Email Agent, agentsbase — Email for AI Agents, Mailkite, Mails.ai — Agent Email and Mail Send.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.