π¬ A self-hosted mailbox for AI agents on Cloudflare Workers. Receive, search, wait for, send, reply and forward email over MCP or REST, behind one token.
A mailbox for AI agents on Cloudflare. Receive, search, read and send email over MCP or REST, behind one token.
- π₯ Catch-all inbox: every address on your domain lands here, with attachments. Optionally accept only the addresses you list, and cap mail per day. - π€ Send, reply and forward from your domain, with names, cc, bcc, reply-to, attachments and threads. - β³ Wait for mail: blocks until a matching email or a reply in a thread arrives, and pulls out its verification code and link. - π Search by sender, recipient, thread, date, unread, category or text, HTML-only mail included. - π€ MCP server at /mcp: eight tools, stateless, works with Claude Code and any MCP client. - π‘οΈ Optional JEV: labels each email (spam, phishing, marketingβ¦) and hides likely prompt injection. - π One bearer token guards everything except /health, plus an optional read-only token. - π§Ή Optional retention: an hourly job deletes mail older than the days you set. - π One command deploy that sets up the database, storage, DNS and routing for you.
Read skills/agents-mail/SKILL.md first: it covers the tools, the curl fallback, the safety rules for untrusted email, and setup. Install it for your client with:
- Setting this up for a user: ask which domain to use, warn that Email Routing takes over its MX records, then run the 3 deploy steps in a terminal the user can answer. The first run asks for the sender and JEV; once apps/worker/.prod.vars exists, yes y bun run deploy runs unattended. It also says yes to taking over MX, so after changing the domain in AGENTSMAILFROM, run it with a person again. Done
From the project README.
Add the radar badge to your README β it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/nikuscs--agents-mail.html)
Email inbox API for AI agents, self-hosted on Cloudflare Workers. Open source, with an MCP server. AgentMail alternative.
Kadri-cloud/email-engineSelf-hosted event engine for any mailbox: IMAP, JMAP and inbound SMTP in, one replayable event log out, with safe reversible actions, scoped tokens for AI agents, and an MCP server.
tedix-hq/tedixOpen-source AI coworkers for your team. They do recurring work, ask before risky steps, and show you exactly what they did.
CyrisXD/agent-notifyLet Claude, ChatGPT, Grok Bot and any MCP agent email you when something needs your attention. Private, free, one-click deploy to Cloudflare Workers.
dominikamann/agent-mail-gatewaySelf-hosted email MCP server & REST gateway: give each AI agent its own IMAP/SMTP mailbox with sender/recipient allow lists, HTML-to-Markdown, attachments and calendar invites. One Docker container.
leynier/exeoraSecure execution for AI agents, on any machine. Connect any MCP client to the development environment on any machine you can run a command on (even your own laptop) - no open ports, no tunnels, and yo
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.