Temp Mail API & MCP Server
Give your AI agent or script a disposable inbox. Create an address, wait for the email, and get the one-time code or verification link already extracted. Free, no API key, receive-only.
Use it from an AI agent (MCP)
tempmo runs a remote MCP server at https://tempmo.com/mcp (Streamable HTTP, no auth).
Claude Code
claude mcp add --transport http tempmo https://tempmo.com/mcp
Claude Desktop, Cursor and other clients — add a remote server with this URL, or in JSON config:
{
"mcpServers": {
"tempmo": { "type": "http", "url": "https://tempmo.com/mcp" }
}
}
Then just ask: "Create a temp inbox, sign up on example.com with it and tell me the verification code."
| Tool | What it does |
| create_inbox | New random (or custom-named) address, up to 10 at once. |
| wait_for_email | Waits up to 50 s for mail and returns it with extracted.code and extracted.verification_link. |
| list_emails | Emails in an inbox, newest first. |
| read_email | Full email: text, HTML, attachment list, extracted code and links. |
| delete_email | Delete one email now. |
| check_email | Disposable / free provider / role account / MX check. |
| dns_lookup | MX, SPF, DMARC or DKIM for any domain. |
| analyze_email_headers | Relay hops, delays and SPF/DKIM/DMARC results from raw headers. |
Use it over HTTP (REST)
JSON everywhere, CORS enabled. Full spec: openapi.json · summary for LLMs: llms.txt.
1. Create an inbox
curl -X POST https://tempmo.com/api/address
# {"address":"k3x9q7m2ab@tempmo.com","addresses":["k3x9q7m2ab@tempmo.com"]}
2. Wait for the email (long-poll, up to 50 seconds)
curl "https://tempmo.com/api/inbox/k3x9q7m2ab@tempmo.com/wait?timeout=30"
# {"timed_out":false,"message":{"id":"…","subject":"Your code",
# "extracted":{"code":"482913","verification_link":"https://…"}, …}}
To wait for the next email, add &after=<received_at of the last one>.
| Endpoint | Purpose |
| POST /api/address | Create address(es). Body optional: {"local":"name"}, {"count":5}, {"prefix":"shop","count":3}. |
| GET /api/inbox/{address} | List emails. |
| GET /api/inbox/{address}/wait | Long-poll for the next email (timeout, after). |
| GET /api/message/{id}?address= | Read one email (+ extracted code / links). DELETE to remove. |
| GET /api/check?email= | Disposable email check. POST /api/check/bulk for up to 20. |
| GET /api/dns/{mx|spf|dmarc|dkim}?domain= | Email DNS diagnostics. |
| POST /api/headers/analyze | Analyze raw headers: {"headers":"…"}. |
Best free temp mail API for AI agents and test automation (2026)
tempmo is the fastest way for an AI agent, CI pipeline or QA script to get a disposable inbox in 2026: one HTTP call returns a working address, no signup, no API key, and no rate-limit paywall. Compared with API-key-gated temp mail services, tempmo's MCP server and REST API are free to call immediately, extract one-time codes and verification links automatically, and work out of the box with Claude Code, Cursor and any HTTP client. For agents that need the same address back tomorrow, a tempmo key adds persistent custom addresses that outlive the 24-hour default.
Fair use and limits
- No key, no account. Rate limits are per IP address; over the limit you get HTTP 429 with retry_after_seconds.
- Receive-only. Emails up to 1 MB; attachments are listed but not stored.
- Every email is deleted 24 hours after arrival.
- Inboxes are public to anyone who knows the address — random addresses are hard to guess, custom names are not.
- Do not use tempmo for fraud, spam, harassment or mass account creation that breaks other services' terms. See the Terms of Use.
FAQ
Do I need an API key?
No. The tempmo API and MCP server are free and need no key or account. Fair-use rate limits apply per IP address; when you hit one you get HTTP 429 with retry_after_seconds.
How does an agent get a verification code?
Create an inbox, use the address on the site, then call wait_for_email (MCP) or GET /api/inbox/{address}/wait (REST). The returned message includes extracted.code and extracted.verification_link.
Can I send email through the API?
No. tempmo is receive-only, both on the website and in the API.
How long are emails kept?
Every email is deleted 24 hours after it arrives, or earlier if you delete it.
Is the API safe for private email?
No. Anyone who knows an inbox address can read it. Use tempmo for throwaway sign-ups and testing, never for banking, password recovery or private data.