Mail.tm MCP Server

Mail.tm MCP Server

Enables AI assistants to manage temporary email addresses via the mail.tm API, including creating disposable inboxes, reading messages, and managing accounts.

Category
Visit Server

README

Mail.tm MCP Server

An MCP (Model Context Protocol) server that lets AI assistants manage temporary email addresses via the mail.tm API. Create disposable inboxes, read messages, and manage accounts — all from your AI chat.

Docker Image GitHub release

Tools

Tool Description
list_domains List available domains for creating temp addresses
create_temp_email Create a new disposable email account (random or custom)
login Log in to an existing mail.tm account
get_inbox List messages in the current inbox (paginated)
read_email Read the full content of an email by ID
mark_as_read Mark a message as read
delete_email Permanently delete a message
get_account_info Get current account details and storage usage
delete_account Permanently delete the account and all its messages
logout Clear the current session without deleting the account

Transport

The server runs as a streamable-http MCP server on port 8000, endpoint /mcp.

Compatible with:

  • mcpjungle
  • Claude Desktop (HTTP mode)
  • Any MCP client that supports streamable-http

Quick Start

Docker Compose (recommended)

curl -O https://raw.githubusercontent.com/opastorello/mailtm-mcp-server/master/docker-compose.yml
docker compose up -d

Server available at http://localhost:8000/mcp.

Docker (manual)

docker pull ghcr.io/opastorello/mailtm-mcp-server:latest
docker run -d -p 8000:8000 -v mailtm-session:/tmp --name mailtm ghcr.io/opastorello/mailtm-mcp-server:latest

Local (no Docker)

pip install -r requirements.txt
python mailtm_server.py

Requires Python 3.11+.


Register with mcpjungle

Standalone (mcpjungle on the host)

cat > /tmp/mailtm.json << 'EOF'
{
  "name": "mailtm",
  "transport": "streamable_http",
  "url": "http://localhost:8000/mcp"
}
EOF

mcpjungle register -c /tmp/mailtm.json

mcpjungle running in Docker (same host)

When mcpjungle runs inside Docker, localhost doesn't resolve to the host. You need both containers on the same Docker network.

The included docker-compose.yml handles this automatically — it joins the opt_default network (mcpjungle's default network) and sets a fixed container name mailtm so the hostname never changes across restarts.

# Download and start
curl -O https://raw.githubusercontent.com/opastorello/mailtm-mcp-server/master/docker-compose.yml
docker compose up -d

# Register using the container hostname
cat > /tmp/mailtm.json << 'EOF'
{
  "name": "mailtm",
  "transport": "streamable_http",
  "url": "http://mailtm:8000/mcp"
}
EOF

mcpjungle register -c /tmp/mailtm.json

Note: The transport value is streamable_http (underscore), not http — this is mcpjungle-specific.

Note: host.docker.internal does not work on Linux. Use the container name or a fixed IP instead.

To re-register after changes:

mcpjungle deregister mailtm
mcpjungle register -c /tmp/mailtm.json

Invoke tools via mcpjungle CLI

mcpjungle invoke mailtm__create_temp_email
mcpjungle invoke mailtm__get_inbox
mcpjungle invoke mailtm__list_domains

Configure in Claude Desktop

Pointing to a running instance:

{
  "mcpServers": {
    "mailtm": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

Session Management

The server stores the active session in /tmp/mailtm_session.json:

  • Session persists between tool calls automatically within the same run.
  • Mount /tmp as a Docker volume to survive container restarts.
  • logout() clears the session without deleting the account.
  • delete_account() deletes the account and clears the session.

Example Workflow

1. create_temp_email()           → generates a random address like abc123@dollicons.com
2. get_inbox()                   → check for new messages
3. read_email(message_id="...")  → read the content
4. delete_account()              → clean up when done

Dependencies

  • mcp[cli] >= 1.2.0 — FastMCP server framework
  • requests >= 2.31.0 — HTTP client for the mail.tm API

License

MIT — Nícolas Pastorello

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured