Disposable inboxes for AI agents and CI: catch the verification email, read the OTP or link.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Model Context Protocol server for MailSink β programmatic temporary email inboxes for AI agents and test automation.
Gives your agent eight typed tools for provisioning disposable addresses, waiting on signup emails, extracting OTP codes and magic links, and cleaning up after itself. Works in Claude Code, Claude Desktop, Cursor, Windsurf, and any other MCP-aware client.
Or run via npx without installing:
Sign in at https://mailsink.dev/app with GitHub.
Copy the key from the one-time reveal. Store it in your password manager
or .env.
Export it so the MCP server can read it:
Free tier is 50 inboxes/month and includes MCP. Pro ($15/mo) and Team ($49/mo) lift the inbox cap, raise email size limits, extend TTL, and bump request rates. See pricing.
Add to the mcpServers section of the client's config file:
Restart the client. You should see the mailsink server listed with its
eight tools.
| Tool | Purpose |
|---|---|
create_inbox | Provision a throwaway address. Returns email, id, expires_at. |
list_inboxes | List active inboxes on the account. |
wait_for_email | Block up to timeout seconds (max 120) for any email to arrive. |
get_verification_code | Extract the most recent OTP from the inbox (polls until found or timeout). |
get_verification_link | Extract the most recent magic link. |
list_messages | Summaries of all messages in an inbox. |
get_message | Full content of a specific message by ID. |
delete_inbox | Burn an inbox immediately. |
No webhook plumbing. No IMAP credentials. No parsing MIME.
MAILSINK_API_KEY (required) β your account's API key.MAILSINK_API_URL (optional, default https://api.mailsink.dev) β
override for self-hosted or dev API.https://github.com/heocoi/mailsink/tree/main/mcp
MIT β see LICENSE.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mailsink)<a href="https://allmcps.com/mcp/mailsink"><img src="https://allmcps.com/api/badge/mailsink?style=directory" alt="Mailsink on AllMCPs" /></a>