MailGate
● Activeio.github.Dicka18/mailgate
Self-hosted Cloudflare Workers OTP and magic-link email inbox MCP server for E2E auth testing.
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"mailgate": {
"command": "npx",
"args": [
"-y",
"mailgate-sdk@1.1.1",
"mcp"
],
"env": {
"MAILGATE_URL": "<your MAILGATE_URL>",
"MAILGATE_ADMIN_TOKEN": "<your MAILGATE_ADMIN_TOKEN>"
}
}
}
}claude mcp add --env MAILGATE_URL='<your MAILGATE_URL>' --env MAILGATE_ADMIN_TOKEN='<your MAILGATE_ADMIN_TOKEN>' --transport stdio mailgate -- npx -y mailgate-sdk@1.1.1 mcpcodex mcp add mailgate --env MAILGATE_URL='<your MAILGATE_URL>' --env MAILGATE_ADMIN_TOKEN='<your MAILGATE_ADMIN_TOKEN>' -- npx -y mailgate-sdk@1.1.1 mcpcode --add-mcp '{"name":"mailgate","type":"stdio","command":"npx","args":["-y","mailgate-sdk@1.1.1","mcp"],"env":{"MAILGATE_URL":"<your MAILGATE_URL>","MAILGATE_ADMIN_TOKEN":"<your MAILGATE_ADMIN_TOKEN>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- MAILGATE_URLrequiredBase URL of your self-hosted MailGate Cloudflare Worker (e.g. https://mailgate.example.com)
- MAILGATE_ADMIN_TOKENsecretOptional admin token enabling create_inbox, clear_messages, and simulate_email tools
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
Is it safe? Is it maintained?
Serverdex check: Nov 29, 2026Looks healthy: MailGate is maintained, open source.
- Maintained
- Active
- Last commit 8 days ago (Nov 27, 2026), 6 open issues.
- Official registry
- Active
- Published as io.github.Dicka18/mailgate in the official MCP registry, version 1.1.1.
- Source
- Open source, MIT
- Public repository under the MIT licence, 0 stars, 4 forks.
- Runs
- On your machine
- A local npm package started by your client; it can reach whatever your user account can.
- Credentials
- 2 required
- Declared environment variables: MAILGATE_URL, MAILGATE_ADMIN_TOKEN. They stay on your machine; the config on this page shows where each goes.
- Owner
- Unclaimed
- Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.
Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.
Report Card
How the grade works →Grade A · Production-ready
Maintenance & production-readiness — 80/100 from the six repository signals below. A comparable rollup, not a code audit.
- Recent commits+30/30
Last commit 8 days ago.
- Open licence+15/15
MIT on GitHub.
- Documentation+15/15
The repository ships a README.
- Adoption0/20
0 GitHub stars.
- Registry status+12/12
Active in the official MCP registry.
- Product surface+8/8
Has a homepage or a published package/endpoint.
Own this server? Add the grade badge — it links back here
<a href="https://serverdex.io/server/io-github-dicka18-mailgate?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-dicka18-mailgate/report-badge.svg" alt="MailGate — Serverdex Report Card A" height="22"></a>Compare every server's grade on best-maintained MCP servers.
On GitHub
read Nov 27, 2026JavaScriptclaude-codeclaude-code-plugincloudflare-d1cloudflare-workersdisposable-emaile2e-testingemail-routingmcpmodel-context-protocolotpplaywrightself-hostedtypescript
From the README
MailGate Self-hosted, receive-only email and OTP inbox running on Cloudflare Email Routing, Workers, and D1. Turn any domain on Cloudflare into a private inbox for verification codes, magic sign-in links, and Playwright/Cypress E2E tests without running an SMTP server or paying for hosted QA sandboxes. Comparison Architecture What It Includes • Receive-only inbox: No outbound SMTP relay and no VPS to maintain. • Strict allowlist and optional passwords: Rejects unlisted addresses at the SMTP edge (STRICT_ALLOWLIST = "true"). Lock specific inboxes with PBKDF2-SHA256 (100,000 iterations) passwords and signed HMAC-SHA256 tokens. • OTP and magic-link extraction: Extracts 4-8 digit and hyphenated (417-932) verification codes plus sign-in links while ignoring calendar years (1990 to 2035) in invoices and footers. • E2E testing API and SDK: Query GET /api/inbox/latest-otp (since and sender filters) directly or use mailgate-sdk (waitForOtp(), waitForEmail()). • Safe HTML rendering: Sanitizes incoming email HTML on ingest and renders message bodies inside under a strict CSP (script-src 'self'). • Built-in RFC822 simulator and admin panel: Test the PostalMime -> Sanitizer -> OTP -> D1 pipeline locally without waiting for SMTP delivery, export CSVs, and clear inboxes in one click. • Optional webhook bridge: If you want to store emails in Postgres, MySQL, or your own backend instead of D1, deploy cloudflare-bridge/ to forward HMAC-SHA256 signed JSON webhooks. Quickstart 1.…
Read the full README on GitHub →Alternatives to MailGate
All MailGate alternatives →Best Communication servers →Compare side by side →The most-starred Communication servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Corsair | 15,610 | Nov 2026 | Needs sign-in |
| Inbox Zero | 13,154 | Nov 2026 | Needs sign-in |
| Agent-Native Chat | 7,803 | Nov 2026 | Needs sign-in |
| Agent-Native Dispatch | 7,803 | Nov 2026 | Needs sign-in |
| Agent-Native Brain | 7,803 | Nov 2026 | Needs sign-in |
MailGate: questions people ask
- Is MailGate a remote or a local MCP server?
- According to its entry in the official MCP registry, MailGate ships as a local package (npm) that your client starts on your machine.
- Does MailGate need an API key?
- Its registry entry declares 2 required environment variables: MAILGATE_URL, MAILGATE_ADMIN_TOKEN. The config on this page shows where each goes.
- Is MailGate safe to use?
- Looks healthy: MailGate is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, MIT; runs: On your machine; credentials: 2 required. Serverdex check of Nov 29, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
- Is MailGate still maintained?
- Active: the repository's last commit 8 days ago. Last push Nov 27, 2026, 0 GitHub stars, MIT licence. Read from GitHub on Nov 27, 2026.
- How do I add MailGate to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Communication servers
Browse all Communication →worldinmotion
Production-ready
End-to-end encrypted, real-time messaging between AI agent sessions across machines and accounts
E2 World
Needs work
Enter E2 World, a living 2D virtual world: appear as an avatar, chat and walk with real players.
Llama Chat
Needs work
Post to Llama Chat, a friendly social network where AI agents have their own accounts.
DMGO
Production-ready
Instagram comment-to-DM automation, bio page and creator store for Indian creators.
Gmail
Well-maintained
Allow AI systems to read, send, archive, and manage emails via Gmail.
Agent Mail Gateway
Production-ready
Self-hosted email for AI agents: own IMAP/SMTP mailbox per key, allow lists, calendar invites.
Add the badge to your site
Show visitors that MailGate is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-dicka18-mailgate?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MailGate — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-dicka18-mailgate?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-dicka18-mailgate) [](https://serverdex.io/install/vscode/io-github-dicka18-mailgate) [](https://serverdex.io/install/claude-code/io-github-dicka18-mailgate)One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.
Install buttons — HTML for your docs
<a href="https://serverdex.io/install/cursor/io-github-dicka18-mailgate"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-dicka18-mailgate"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-dicka18-mailgate"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>Same buttons as plain links for a docs page or website.
Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).