temp-mail.agency
Developer API · 8 min read

Temp Mail MCP Server for AI agents.

Connect Claude, ChatGPT, Cursor, Gemini, Grok Bot, Muse & Dots to temp-mail.agency hosted MCP server. 6 tools, 100 free daily calls, .com/.org.uk/.edu.pl.

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 NameKey ArgumentsDaily Quota CostWhat It Does
list_domains{ provider? }0 calls (Free)Lists active .com, .org.uk & .edu.pl domains
create_inbox{ provider?, alias?, domain_id?, ttl? }1 callCreates isolated mailbox + signed tma_v1 token
get_messages{ inbox_id }1 callReturns cleaned text, HTML, OTPs, attachments & security flags
get_verification_code{ inbox_id }1 callExtracts the newest 4–8 digit OTP or verification URL directly
restore_inbox{ recovery_token }1 callReopens 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)

  1. 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.
  2. 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:
mcp.json (Streamable HTTP)
{
  "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:

  1. Agent calls create_inbox({ "provider": "tempmail", "ttl": "10m" }) and receives qa.run94@… plus a private signed inbox_id.
  2. Agent opens your staging URL in Playwright, fills the registration form, and submits.
  3. 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.
  4. Agent completes login verification, asserts the authenticated dashboard loads, and calls delete_inbox (0 quota cost) to tear down cleanly.
Token-efficiency win: Using 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_v1 capability token — another user or agent cannot read your test emails merely by guessing an address.
  • Three isolated domain pools: Pass "provider": "tempmail" for standard .com domains, "orgmail" for separate organization .org.uk domains, or "edumail" for academic .edu.pl domains.
  • 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.

Key Takeaway

The temp-mail.agency MCP Server (https://temp-mail.agency/mcp) is a hosted Streamable HTTP JSON-RPC 2.0 endpoint that gives AI coding agents and autonomous bots live disposable email inboxes and automatic OTP code extraction. Claim a free bearer key via Google sign-in at /signup to get 100 free tool calls every UTC day across .com, .org.uk, and .edu.pl pools.

Continue reading

Related engineering guides

Questions

Frequently asked

Does temp-mail.agency MCP require installing a local npm package or Docker container?

No. temp-mail.agency runs a hosted Streamable HTTP JSON-RPC 2.0 server at https://temp-mail.agency/mcp — just add the URL and your free bearer key.

How many free MCP calls do I get per day?

Every Google-verified account receives 100 free daily tool calls resetting at 00:00 UTC. list_domains and delete_inbox cost 0 calls.

Which AI agents support temp-mail.agency MCP?

Claude Code, Claude Desktop, Cursor, ChatGPT Connectors / Responses API, Gemini CLI, Antigravity, Meta Muse, xAI Grok Bot, OpenAI Dots, and VS Code Copilot MCP.

Can my agent inspect email security warnings and attachments via MCP?

Yes. get_messages returns normalized attachments, stripped plain text, detected OTPs, verification links, and tracker/phishing risk diagnostics.

Need more answers? Browse all 30 topics in the Complete temp-mail.agency FAQ.