Self-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.
Give every AI agent its own email address — without giving it the keys to the mailbox.
Agent Mail Gateway is a small self-hosted service (one Docker container) that sits between your AI agents and ordinary mailboxes on your existing mail server. Each agent gets one API key for exactly one mailbox. Through the gateway it can read and answer mail, send attachments and manage calendar invitations — but only with the people you allow, and every outgoing message is checked before it leaves.
Agents talk to it over MCP (Model Context Protocol) or a plain REST API. Mail arrives as Markdown instead of HTML, which saves a lot of tokens.
Giving an agent the IMAP/SMTP password of a mailbox means it can read everything, write to anyone, and a single prompt injection in an incoming email can make it leak data or spam people. The gateway keeps the password to itself and enforces your rules on every request:
Without the gateway With the gateway ------ Agent knows the mailbox password Agent only has an API key for its mailbox Reads every mail, incl. spam and phishing Sees only mail from senders you allow Can write to anyone Can only write to recipients you allow Sloppy or wrong mails go out Every mail is checked before sending (rules, optional LLM, your policies) HTML mails cost thousands of tokens Mail arrives as compact Markdown
Mailbox access - List, search, read, mark, delete; attachments in and out — as text, base64 or straight from a received message, so agents never have to juggle base64 for a CSV. - Reply (incl. reply-all) and forward — the gateway fills in recipients, Re:/Fwd:
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/dominikamann--agent-mail-gateway.html)
Second brain for your AI: a self-hosted memory vault your AI agents read and write over MCP. Install with npm, Docker or one command.
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.
docouno/notariumFile-first knowledge base for humans and AI agents — self-hosted Markdown notes with a web editor and a built-in MCP server.
heitorcarvalhohlbryzeis6-cloud/whatsapp-mcp-serverWhatsApp MCP Server for AI Agents - TypeScript, Baileys and Cloud API
synectus/OpenGMBOpen-source Google Business Profile manager: reviews, posts, profile edits and rank tracking for every location, with approval rules before anything goes live and an MCP server for AI agents. Self-hos
dungnguyenv/pinwallSelf-hosted artifact server for AI agents: Claude Code, Cursor and Codex publish HTML pages over MCP, you review them with pinned comments, versions and share links, and the agent reads your feedback
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.