Skip to main content
Glama
tempmail-mcp

tempmail-mcp

by dvlop

tempmail-mcp

MCP server for disposable email. Gives an assistant its own throwaway inbox, then hands back the confirmation code out of the message that arrives.

The problem it solves: an agent walking through a signup flow hits the point where a real email address is needed, and a human has to step in to read a code out of their inbox. At that moment the automation stops being automation.

Install

{
  "mcpServers": {
    "tempmail": {
      "command": "npx",
      "args": ["-y", "tempmail-mcp"],
      "env": {
        "TEMPMAIL_API_KEY": "tm_your_key_here"
      }
    }
  }
}

Get a key at tempmailgenerator.net/account. Free, no card, one key per account.

For Claude Code:

claude mcp add tempmail --env TEMPMAIL_API_KEY=tm_your_key -- npx -y tempmail-mcp

Related MCP server: useblip/email

Tools

Tool

What it does

create_mailbox

Take an address. Random name and domain unless you ask otherwise.

wait_for_code

Block until mail arrives, return the code and the activation link.

list_messages

What is in the inbox, newest first, with previews.

read_message

Full body of one message.

delete_mailbox

Clean up when done.

wait_for_code is the one that matters. It holds the connection until the message lands rather than polling, so the assistant does not burn turns checking an empty inbox, and it returns the digits already extracted instead of a wall of HTML for the model to squint at.

A typical run

  1. create_mailbox gives laura.ellis5427@...

  2. The agent submits that address to the signup form it is working through.

  3. wait_for_code returns 481902 and the confirmation link a second later.

  4. The agent finishes the flow.

Limits and manners

Mailboxes live 24 hours. One key allows 300 new mailboxes an hour and 100 alive at once, which is far past what an interactive agent needs and short of what a signup farm wants.

Addresses come from a pool reserved for automation and are recognisably disposable. Point this at systems you own or test. Pointed at somebody else's service to mass produce accounts, it becomes their incident and then ours.

Configuration

Variable

Default

Purpose

TEMPMAIL_API_KEY

required

Your key.

TEMPMAIL_BASE_URL

https://tempmailgenerator.net

Only for self-hosted installs.

API reference: https://tempmailgenerator.net/api/

License

MIT

Available Tools

5 tools
create_mailboxCreate a disposable mailboxA

Create a temporary email address. Returns the address to paste into a signup form and the id used by the other tools. Without arguments you get a random name on a random domain, which is what you usually want.

Inputs: localPart.

delete_mailboxDelete a mailboxA

Delete the mailbox and everything in it once you are done. Not required, since mailboxes expire on their own in 24 hours, but polite and it frees your quota.

Inputs: mailboxId (required).

list_messagesList messages in a mailboxA

List what has arrived in a mailbox, newest first, with a short preview of each. Use it when the code extraction found nothing and you need to look at the mail yourself.

Inputs: mailboxId (required).

read_messageRead a messageA

Return the full body of one message, plain text where available. Use it when the preview is not enough or when the code sits in an unusual place.

Inputs: messageId (required).

wait_for_codeWait for the confirmation codeA

Wait for an email to arrive and return the confirmation code and activation link extracted from it. Call this right after triggering the signup. It blocks until the message lands, so there is no need to poll or to sleep between calls.

Inputs: mailboxId (required), from, wait, since.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: create_mailbox sets up the address, wait_for_code extracts codes, list_messages and read_message offer progressively deeper inspection, and delete_mailbox cleans up. There is no overlap or ambiguity between the operations.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case: create_mailbox, wait_for_code, list_messages, read_message, delete_mailbox. The naming style is uniform and predictable throughout the set.

    Tool Count5/5

    Five tools is a well-scoped size for a temporary email server. Each tool covers an essential step in the workflow without redundancy or unnecessary additions.

    Completeness5/5

    The tools cover the full temporary email lifecycle: create a mailbox, wait for and extract a code, list and read messages for manual inspection, and optionally delete the mailbox. There are no obvious dead ends or missing operations for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Disposable email MCP server for autonomous AI agents. Create labeled temporary inboxes, wait for verification emails, extract OTP codes and confirmation links — zero human intervention required.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for disposable email — create inboxes, receive emails, and extract OTP codes. Let your AI agent sign up for services, wait for verification emails, and extract codes autonomously.
      7
      53 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for the Guerrilla Mail temporary/disposable email API. Spin up throwaway inboxes, poll for mail, and read messages from any MCP client.
      6
      14 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Disposable email for humans and AI agents. Enables AI agents to create mailboxes and receive verification emails through an MCP server.
      39
      MIT