📡 MCP Radar

dominikamann/agent-mail-gateway

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.

⭐ 10 stars
⑂ 0 forks
TypeScript
momentum ▲ 20.0
created 2026-10-02
on radar since 2026-10-05
star trend 4 → 10 since 2026-10-05
agent-toolsai-agentscalendardockeremailemail-gatewaygatewayhermes-agenticalendarimapllmmailboxmarkdownmcpmcp-servermodel-context-protocolself-hostedsmtptypescriptwebhook
View on GitHub ↗

About agent-mail-gateway

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.

Maintaining this server?

Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:

[![On MCP Radar](https://mcp.liqiwa.com/badge.svg)](https://mcp.liqiwa.com/s/dominikamann--agent-mail-gateway.html)

Related MCP servers

Codrihub/memora

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.

⭐ 7TypeScript
Kadri-cloud/email-engine

Self-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.

⭐ 6TypeScript
docouno/notarium

File-first knowledge base for humans and AI agents — self-hosted Markdown notes with a web editor and a built-in MCP server.

⭐ 3TypeScript
heitorcarvalhohlbryzeis6-cloud/whatsapp-mcp-server

WhatsApp MCP Server for AI Agents - TypeScript, Baileys and Cloud API

⭐ 58HTML
synectus/OpenGMB

Open-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

⭐ 9TypeScript
dungnguyenv/pinwall

Self-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

⭐ 8TypeScript

📬 Get the weekly radar in your inbox

The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.