Self-hosted, receive-only OTP and magic-link inbox on Cloudflare Workers + D1 with a zero-dependency Playwright SDK, CLI, and MCP server for Claude Code
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
- Receive-only inbox: No outbound SMTP relay and no VPS to maintain. - Strict allowlist and optional passwords: Rejects unlisted addresses at the SMTP edge (STRICTALLOWLIST = "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 in
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/Dicka18--mailgate.html)
📬 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.
sv-number/mcp-serverMCP server for AI agents that need a phone number: order a private number in 200+ countries, read the SMS verification code, hand it back. The widest country coverage in the category, and you can chec
pairbrowse/pairbrowseMultiplayer browser sessions for developers and AI coding agents
Umair/stalemapTell your coding agent which dependencies changed after its training cutoff. Diffs types and changelogs, writes a short block into AGENTS.md / CLAUDE.md.
bybit-exchange/kaasTurn scattered notes, docs and transcripts into a queryable Markdown wiki — an LLM knowledge-base compiler with MCP access, no embeddings, self-hosted.
SecFathy/otpkitMCP server for temporary email & SMS — receive OTPs, verification links, and confirmation codes. Zero API keys required.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.