Self-hosted Cloudflare Workers OTP and magic-link email inbox MCP server for E2E auth testing.
MCPpedia last refreshed this data
io.github.Dicka18/mailgate is an MCP server that self-hosted Cloudflare Workers OTP and magic-link email inbox MCP server for E2E auth testing. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 58/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"mailgate": {
"env": {
"MAILGATE_URL": "https://mailgate.example.com"
},
"args": [
"-y",
"mailgate-sdk",
"mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Self-hosted Cloudflare Workers OTP and magic-link email inbox MCP server for E2E auth testing.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'mailgate-sdk' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked mailgate-sdk against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in communication / cloud
Official TypeScript library for the Telnyx API
Gives AI development tools Firebase-specific capabilities and expertise.
X/Twitter automation MCP: scrape, post, schedule, analyze, engage. No API key required.
AI email marketing MCP: newsletters, drip campaigns, email automation, transactional emails+CRM sync
MCP Security Weekly
Get CVE alerts and security updates for io.github.Dicka18/mailgate and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.

| Feature | MailGate (Self-Hosted) | Hosted QA Sandboxes (Mailosaur / Mailtrap) | Public Temp Mail (Mailinator) |
|---|---|---|---|
| Hosting Cost | $0/mo (Cloudflare Free Tier) | $15 to $99+/mo | Free (public) / Paid (private) |
Custom Domain (*@yourdomain.com) | Built-in via Cloudflare Email Routing | Paid tiers | Paid tiers |
| Private / Locked Inboxes | Strict allowlist + PBKDF2 passwords | Yes | Public by default |
OTP & Magic-Link API (waitForOtp) | /api/inbox/latest-otp + mailgate-sdk | Yes | Paid tiers |
| Infrastructure | Cloudflare Worker + D1 SQLite + Cron | Managed | Managed |
| Data Ownership | Inside your Cloudflare account | Third-party cloud | Public / Third-party |
flowchart LR
Sender["Auth Provider or App"] -->|SMTP| CF["Cloudflare Email Routing"]
CF -->|email handler| Worker["MailGate Worker"]
Worker -->|Allowlist and OTP ingest| D1[("Cloudflare D1 SQLite")]
Cron["Daily Cron Trigger"] -->|Purge expired mail| D1
Browser["Web Inbox and Admin UI"] -->|HTTPS JSON API| Worker
E2E["Playwright, CLI, and MCP"] -->|Poll OTP and links| Worker
STRICT_ALLOWLIST = "true"). Lock specific inboxes with PBKDF2-SHA256 (100,000 iterations) passwords and signed HMAC-SHA256 tokens.417-932) verification codes plus sign-in links while ignoring calendar years (1990 to 2035) in invoices and footers.GET /api/inbox/latest-otp (since and sender filters) directly or use mailgate-sdk (waitForOtp(), waitForEmail()).<iframe sandbox="allow-popups allow-popups-to-escape-sandbox"> under a strict CSP (script-src 'self').PostalMime -> Sanitizer -> OTP -> D1 pipeline locally without waiting for SMTP delivery, export CSVs, and clear inboxes in one click.cloudflare-bridge/ to forward HMAC-SHA256 signed JSON webhooks.git clone https://github.com/Dicka18/mailgate.git
cd mailgate
npm install
cp .dev.vars.e
... [View full README on GitHub](https://github.com/dicka18/mailgate#readme)