Skip to main content
Glama

tmpmail

Disposable inboxes your AI agents can use. Connect tmpmail over MCP and an agent can make an email address, sign up for something, wait for the verification email and use the code, with nobody copying and pasting. People get the same inboxes on the web at tmpmail.lol.

Mail deletes itself after 1 hour, and the whole thing runs on one Cloudflare Worker.

Connect your agent

The server lives at https://tmpmail.lol/mcp. It uses Streamable HTTP and needs no sign-up or key.

Fastest: let your agent install it. Paste this into Claude Code, Cursor or any agent that can edit its own settings:

Install the tmpmail MCP server for me. It's a remote MCP server at https://tmpmail.lol/mcp using the Streamable HTTP transport, with no authentication. Name it "tmpmail".

If you're Claude Code, run: claude mcp add --transport http tmpmail https://tmpmail.lol/mcp

Otherwise, add it to this app's MCP configuration (for example ~/.cursor/mcp.json for Cursor or .vscode/mcp.json for VS Code).

Then confirm it works by listing its tools (you should see create_inbox and wait_for_email), and tell me if I need to restart anything.

Or set it up yourself:

Claude Code

claude mcp add --transport http tmpmail https://tmpmail.lol/mcp

Cursor (~/.cursor/mcp.json)

{ "mcpServers": { "tmpmail": { "url": "https://tmpmail.lol/mcp" } } }

VS Code (.vscode/mcp.json)

{ "servers": { "tmpmail": { "type": "http", "url": "https://tmpmail.lol/mcp" } } }

Claude apps: go to Settings → Connectors → Add custom connector, and paste the URL.

Then ask something like:

Make a tmpmail inbox, sign up for a test account at my staging site with it, then wait for the verification email and enter the code.

Tool

What it does

create_inbox

Gets a fresh, hard-to-guess address

wait_for_email

Waits up to 2 minutes for new mail and returns it with the code and links

read_email

Reads one message as plain text, with code, links and attachment names

list_emails

Lists an inbox, newest first

delete_email, delete_inbox

Cleans up when the agent is done

Setup for every client is also on the site: tmpmail.lol/#mcp.

WARNING

tmpmail is a testing tool, not a personal inbox. Every inbox is public, including ones your agent creates, and all mail is deleted after 1 hour with no way to get it back. Use it for test accounts only. You use tmpmail entirely at your own risk; see SECURITY.md.

Related MCP server: agent-inbox

On the web

tmpmail inbox

  • Any address works instantly. Use a random one or pick your own.

  • Codes and verify links show up as one-click buttons.

  • New mail appears the moment it arrives, no refresh.

  • Trackers and remote images stay blocked until you allow them.

Host your own

You need a free Cloudflare account and a spare domain on Cloudflare. Follow docs/self-hosting.md; it takes about 10 minutes. Your copy serves the same MCP server at https://<your-site>/mcp.

Develop

npm install
npm run db:migrate:local
npm run dev           # http://localhost:5173
npm run send-sample   # drop sample emails into the local inbox
npm test

MIT license

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to create disposable email inboxes and automatically extract OTPs, magic links, and verification codes from incoming emails.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to create temporary email addresses, receive confirmation emails, and extract verification links, automating sign-up and email verification workflows without manual intervention.
      6
      35 npm
      64
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides disposable email inboxes for AI agents to automatically receive and extract OTPs and magic links, enabling seamless email verification during autonomous workflows.
      3
      543 npm
      1
      MIT