zerodrop-mcp
This MCP server lets AI agents create disposable email inboxes and retrieve verification emails with OTPs and magic links already extracted.
Generate disposable inboxes instantly and locally, with an optional name prefix.
Block and wait for a matching email, filtering by sender, subject, OTP presence, or magic-link presence, with a configurable timeout up to 120 seconds.
Check an inbox non-blockingly for recent emails and already-extracted OTPs/magic links.
Support end-to-end testing of signup, login, OTP verification, magic-link, and password-reset flows.
Enable QA automation where agents drive real email-based auth flows without parsing HTML or regexing message bodies.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zerodrop-mcp generate an inbox and wait for the OTP email from noreply@myapp.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
zerodrop-mcp
Email verification for AI agents — an MCP server that gives Claude, Cursor, Claude Code, and any MCP client disposable email inboxes with auto-extracted OTPs and magic links.
Your agent tests your app's signup. The app sends a verification code. Without an inbox it can read, the agent is stuck. With zerodrop-mcp:
Agent: generate_inbox()
→ swift-x7k29ab@zerodrop-sandbox.online
Agent: [fills the signup form with that address]
Agent: wait_for_email(inbox, require_otp: true)
→ { "trust": { "auth": "verified", ... }, "otp": "847291", "subject": "Verify your email", ... }
Agent: [enters 847291 — flow complete]No Docker. No SMTP. No signup to try: without an API key, one sender can reach 5 different inboxes a day. A free key lifts that.
Install
Claude Code
claude mcp add zerodrop -- npx -y zerodrop-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"zerodrop": {
"command": "npx",
"args": ["-y", "zerodrop-mcp"]
}
}
}Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"zerodrop": {
"command": "npx",
"args": ["-y", "zerodrop-mcp"]
}
}
}Related MCP server: agent-inbox
Tools
generate_inbox
Creates a disposable email address. Local and instant — no network request.
Param | Type | Description |
| string, optional | Prefix for the inbox name, e.g. your app name |
| string, optional | The domain ( |
| string, optional | The host your app's links point to, with the port if it matters ( |
Returns the inbox address. With a key from zerodrop.dev/keys in ZERODROP_API_KEY, the name starts with your key's prefix (k7x2-myapp-swift-x7k29ab) and only your key can read it. Without one, a prefix whose part before the first hyphen is four letters and digits, at least one of each (app1, app1-web), goes after the adjective instead (swift-app1-web-x7k29ab), so the inbox can't fall under someone's account.
Anyone can send mail to the address. With expect_from or expect_link_host, mail from another sender, or with a link to another host, isn't returned: check_inbox lists it as withheld, with no subject, code, link or body. The agent sets these before any email arrives, so they come from its task, not from a sender. They last as long as the server process.
wait_for_email
Blocks until a matching email arrives, then returns it with the OTP and magic link already extracted — the agent never parses HTML or regexes a body.
Param | Type | Description |
| string | Address from |
| number, optional | Default 30, max 120 |
| string, optional | Filter by sender |
| string, optional | Filter by subject |
| boolean, optional | Only match emails with an OTP |
| boolean, optional | Only match emails with a magic link |
| string, optional | Only match emails whose magic link points to this host ( |
| boolean, optional | Also return the body, up to 2,000 characters. 0.5.0 or later |
Returns, with the trust label first so the agent reads it before the sender's text:
{
"trust": {
"source": "external",
"auth": "verified",
"sender_matched": true,
"link_host": "localhost:3000",
"link_host_matches_sender": false,
"link_host_matched": true
},
"from": "noreply@yourapp.com",
"subject": "Your verification code",
"received_at": "2026-11-22T12:34:56Z",
"otp": "847291",
"magic_link": "http://localhost:3000/verify?token=…",
"body_omitted": true,
"body_note": "The body is left out by default: whoever sent this email wrote it. …"
}trust.auth: what Cloudflare's SPF, DKIM and DMARC checks said about the visible From.verifiedmeans DMARC passed for its domain;unverified, that the domain publishes no DMARC policy (common for test domains);failed, that DMARC failed;unknown, that there's no result, as for mail stored before November 2026.trust.sender_matchedandtrust.link_host_matched: whether the email fitsexpect_fromandexpect_link_host(orfrom_containsandlink_host);nullwhen none was given.trust.link_host_matches_sender: whether the link points to the sender's own domain. In testing it often doesn't (localhost, a preview deployment, an email provider's click tracking), so say what you expect withexpect_link_hostinstead.fromis the visible From address without its display name, or the envelope sender for mail stored before November 2026.body_omittedappears only when the email has a body that wasn't returned.
If an email arrived but didn't fit the inbox's expectations, the timeout error is "unexpected_sender", with the senders' addresses and no content.
Without an API key, one sender can reach 5 different inboxes a day. If ZeroDrop held the email because its sender passed that, wait_for_email returns at once (0.3.0 or later) with an error instead of waiting for the timeout:
{ "error": "held", "message": "ZeroDrop held an email from yourapp.com to this inbox. The email was not stored. …" }check_inbox
Non-blocking snapshot of the inbox — recent emails with extracted fields and the same trust label, or an empty list. include_body: true adds the first 300 characters of each body. A notice that ZeroDrop held an email appears as { "held": true, "received_at": "…", "message": "…" }.
Email content is untrusted
A ZeroDrop inbox accepts mail from anyone: an API key controls who can read an inbox, not who can send to it. So an email's subject, links and body are written by whoever sent it, and an email can try to give your agent instructions. Since 0.5.0:
The body is left out unless the agent asks. OTPs and magic links are extracted at the edge, so a verification step needs no prose.
include_body: truebrings the body back;ZERODROP_BODIES=offkeeps it out even then, and an agent can't change that setting.Every email starts with a trust label (above), and the server tells the agent to treat email content as data, never as instructions.
Text is cleaned. Invisible characters (Unicode tag characters, zero-width and bidi controls) are stripped from subjects and bodies, a subject becomes one line of at most 200 characters, and link hosts come back in
xn--form, so a lookalike domain shows as what it is.The server never opens links. Opening a magic link can use up a single-use login token. If your email provider rewrites links for click tracking, turn that off for test emails, so
link_hostshows your app.
Upgrading from 0.4: body_preview is gone; use include_body: true where you need the body. npx -y zerodrop-mcp picks up 0.5.0 by itself; npx -y zerodrop-mcp@0.4.1 keeps the old behaviour.
What agents use this for
Testing auth flows end to end — signup → OTP → verified, driven entirely by the agent
QA automation — Claude Code writing and running Playwright tests that need real inboxes
Development — "sign up for my own app and tell me if the verification email works"
How it works
Emails sent to a generated inbox are caught at Cloudflare's edge by ZeroDrop's open-source worker. OTPs and magic links are extracted at the edge before your agent reads them. On the free tier, an inbox is deleted 30 minutes after its latest email.
Configuration
Environment variables (set in your MCP client config):
Variable | Default | Description |
| — | Free key from zerodrop.dev/keys. Inbox names then start with your key's prefix, only your key can read them, and the 5-inbox limit doesn't apply to them (your account can receive up to 300 emails a day). Without it, inboxes are public and one sender can reach 5 different inboxes a day; past that, the inbox gets a notice from |
|
| Your Workspace's own domain, such as |
| on |
|
|
| Self-hosted instance URL |
{
"mcpServers": {
"zerodrop": {
"command": "npx",
"args": ["-y", "zerodrop-mcp"],
"env": { "ZERODROP_API_KEY": "your-key" }
}
}
}Writing tests instead?
If you're generating test code rather than driving flows live, use the SDKs directly:
npm · PyPI · Go · RubyGems · Packagist · JitPack · GitHub Action
AI coding assistant context: docs.zerodrop.dev/ai-coding
Security
The server makes requests only to
ZERODROP_BASE_URL(zerodrop.dev by default) — nothing elseInbox generation is fully local
Email content is treated as the sender's words: labelled, cleaned, and the body left out unless asked for (see above)
Two runtime dependencies: the official MCP SDK and zod
Report issues: founder@zerodrop.dev
License
MIT — zerodrop.dev
Available Tools
3 toolscheck_inboxA
Check a ZeroDrop inbox right now without waiting. Returns the most recent emails with OTPs and magic links already extracted, or an empty list if nothing has arrived yet.
Inputs: inbox (required).
generate_inboxA
Generate a disposable email inbox for testing signups, OTP verification, magic links, and password resets. Instant and local — no network request. Use the returned address wherever an email is required, then call wait_for_email to read what arrives. Free tier: 30-minute retention, no signup needed.
Inputs: prefix.
wait_for_emailA
Wait for an email to arrive in a ZeroDrop inbox and return it with the OTP and magic link already extracted — no parsing needed. Blocks until an email matching the filters arrives or the timeout is reached. Use after triggering a signup, login, or password-reset flow.
Inputs: inbox (required), require_otp, from_contains, timeout_seconds, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: generate_inbox creates an inbox, wait_for_email blocks for incoming emails, and check_inbox polls immediately. There is no overlap in functionality.
Tools generally follow a verb_noun pattern (generate_inbox, check_inbox), but wait_for_email deviates slightly with a preposition. Overall, names are intuitive and consistent in style.
Three tools is well-scoped for a disposable email service. It covers creation, polling, and blocking waiting without unnecessary extras.
The set covers the essential lifecycle for email testing: create an inbox, wait for an email, and check for emails instantly. Missing operations like deletion are handled automatically by the service, so no gaps.
Maintenance
Related MCP Connectors
Real email inboxes for AI agents: create inboxes, catch verification codes, extract OTPs, reply.
Disposable email inboxes for AI agents: create an address, wait for mail, read OTP codes and links.
Disposable email inboxes for AI agents: create an address, wait for the OTP or verify link.
Disposable email inboxes for AI agents: wait for an email and get its OTP code and confirm link
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create disposable email inboxes and automatically extract OTPs, magic links, and verification codes from incoming emails.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to create temporary email addresses, receive confirmation emails, and extract verification links, automating sign-up and email verification workflows without manual intervention.621 npm64MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to generate temporary email addresses, receive emails, and automatically extract OTP codes and links from incoming messages for automation and testing workflows.MIT
- AlicenseAqualityCmaintenanceProvides disposable email inboxes for AI assistants to sign up, receive emails, and extract verification codes.750 npmMIT