mailsink
@mailsink/mcp
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.
Install
npm install -g @mailsink/mcpOr run via npx without installing:
npx @mailsink/mcpRelated MCP server: guerrillamail-mcp
Get an API key
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:
export MAILSINK_API_KEY="msk_..."
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.
Configure your client
Claude Code
claude mcp add mailsink -- npx -y @mailsink/mcpClaude Desktop / Cursor / Windsurf
Add to the mcpServers section of the client's config file:
{
"mcpServers": {
"mailsink": {
"command": "npx",
"args": ["-y", "@mailsink/mcp"],
"env": {
"MAILSINK_API_KEY": "msk_..."
}
}
}
}Restart the client. You should see the mailsink server listed with its
eight tools.
Tools
Tool | Purpose |
| Provision a throwaway address. Returns |
| List active inboxes on the account. |
| Block up to |
| Extract the most recent OTP from the inbox (polls until found or timeout). |
| Extract the most recent magic link. |
| Summaries of all messages in an inbox. |
| Full content of a specific message by ID. |
| Burn an inbox immediately. |
Example agent flow
> Sign me up for Figma, capture the verification code, confirm, and
> tell me the plan once you're in.
[agent invokes]
create_inbox() → agent@codenotify.net
[agent fills the Figma signup form with that address]
wait_for_email(inbox_id) → blocks 30s…
→ returns email + OTP
[agent types the OTP into the Figma form]
delete_inbox(inbox_id) → cleanupNo webhook plumbing. No IMAP credentials. No parsing MIME.
Environment variables
MAILSINK_API_KEY(required) — your account's API key.MAILSINK_API_URL(optional, defaulthttps://api.mailsink.dev) — override for self-hosted or dev API.
Source
https://github.com/heocoi/mailsink/tree/main/mcp
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for MailTempo's public free temporary email inboxes.
MCP server for e-mail testing: create disposable inboxes, wait for delivery, and extract e-mail content or links - all from your AI agent or test automation workflow. Get a free API key on https://app.zyntra.app/
Your mailbox for MCP clients: search, read, draft, send, rules and notes. Sending is off by default.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server for reading and sending emails via IMAP/SMTP, supporting multiple accounts in a single instance with zero external dependencies.1-
- AlicenseAqualityCmaintenanceMCP server for the Guerrilla Mail temporary/disposable email API. Spin up throwaway inboxes, poll for mail, and read messages from any MCP client.67 npm1MIT
- FlicenseAqualityBmaintenanceProvides a dummy SMTP server for catching emails during development, with MCP tools to list, retrieve, and manage received messages.4-
- AlicenseNot gradedqualityCmaintenanceA minimal MCP server for reading, searching, managing, and sending email over IMAP and SMTP.MIT