What is a Temp Mail MCP server?
The Model Context Protocol (MCP) is the open standard connecting AI models to live external tools. Whenever an AI agent like Claude Code, Cursor, ChatGPT, Gemini CLI, Meta Muse, xAI Grok Bot, or OpenAI Dots runs an end-to-end staging test, it hits the exact same brick wall: "Enter the 6-digit code sent to your email."
Without email tooling, the agent stalls and waits for a human to copy-paste codes manually. Connecting temp-mail.agency MCP removes that human bottleneck completely — giving your agent a private, receive-only mailbox with automatic OTP and magic-link extraction over standard Streamable HTTP (no local Docker container or npm daemon required).
All 6 hosted MCP tools and quota costs
| Tool Name | Key Arguments | Daily Quota Cost | What It Does |
|---|---|---|---|
| list_domains | { provider? } | 0 calls (Free) | Lists active .com, .org.uk & .edu.pl domains |
| create_inbox | { provider?, alias?, domain_id?, ttl? } | 1 call | Creates isolated mailbox + signed tma_v1 token |
| get_messages | { inbox_id } | 1 call | Returns cleaned text, HTML, OTPs, attachments & security flags |
| get_verification_code | { inbox_id } | 1 call | Extracts the newest 4–8 digit OTP or verification URL directly |
| restore_inbox | { recovery_token } | 1 call | Reopens a reusable inbox across agent sessions |
| delete_inbox | { inbox_id } | 0 calls (Free) | Burns the temporary mailbox cleanly on teardown |
Setup in 60 seconds (Claude, Cursor, ChatGPT & Gemini)
- Claim your free key: Sign in with Google at /signup (no credit card, no password). Your key is encrypted at rest with AES-256-GCM and unlocks 100 free daily calls resetting at
00:00 UTC. - Paste into your MCP client: Copy the Streamable HTTP block from /mcp-server into Claude Code, Claude Desktop, Cursor (
~/.cursor/mcp.json), Gemini CLI, ChatGPT Connectors, Muse, Grok Bot, or Dots:
{
"mcpServers": {
"temp-mail-agency": {
"type": "http",
"url": "https://temp-mail.agency/mcp",
"headers": {
"Authorization": "Bearer YOUR_TMA_KEY"
}
}
}
}
Real workflow: hands-free signup & OTP testing
Once wired up, a single natural-language prompt in Claude Code or Cursor executes a complete end-to-end authentication test automatically:
- Agent calls
create_inbox({ "provider": "tempmail", "ttl": "10m" })and receivesqa.run94@…plus a private signedinbox_id. - Agent opens your staging URL in Playwright, fills the registration form, and submits.
- Agent calls
get_verification_code({ "inbox_id": "..." })— receiving structured JSON with the exact 6-digit passcode or confirmation link without wasting context tokens parsing 40 KB of raw HTML newsletter tables. - Agent completes login verification, asserts the authenticated dashboard loads, and calls
delete_inbox(0 quota cost) to tear down cleanly.
get_verification_code instead of dumping raw HTML bodies saves thousands of LLM context tokens per test run and eliminates regex guesswork on hyphenated codes like 482-910 or magic verify buttons.
HMAC token isolation, domain pools & rate fairness
- Zero public inbox leaks: Every inbox is authenticated by an HMAC-SHA256 signed
tma_v1capability token — another user or agent cannot read your test emails merely by guessing an address. - Three isolated domain pools: Pass
"provider": "tempmail"for standard.comdomains,"orgmail"for separate organization.org.ukdomains, or"edumail"for academic.edu.pldomains. - Instant key rotation: Rotate or revoke your API key anytime inside /signup. For CI pipelines that prefer raw HTTP without MCP, see our Free Temp Mail REST API Guide.