# mcp-server-tempmail [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/Selenium39/mcp-server-tempmail  
**GitHub Stars:** 10  
**npm Downloads (last month):** 347  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-tempmail

## Description
MCP server for temporary email management using ChatTempMail API

## Tools
Capabilities this server exposes over MCP:

- **get_email_domains** — 获取系统中所有可用的邮箱域名
- **create_email** — 创建新的临时邮箱地址
- **list_emails** — 获取账户下的所有邮箱地址
- **delete_email** — 删除指定的邮箱地址
- **get_messages** — 获取指定邮箱中的所有消息
- **get_message_detail** — 获取指定消息的详细内容
- **delete_message** — 删除指定的消息
- **get_webhook_config** — 获取当前的webhook配置信息
- **set_webhook_config** — 设置或更新webhook配置

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-server-tempmail": {
    "command": "npx",
    "args": ["-y","mcp-server-tempmail"],
    "env": {
      "TEMPMAIL_API_KEY": "",
      "TEMPMAIL_BASE_URL": ""
    }
  }
}
```

**Requires environment variables:** `TEMPMAIL_API_KEY`, `TEMPMAIL_BASE_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-server-tempmail MCP server does

The mcp-server-tempmail MCP server exposes ChatTempMail account and inbox operations as MCP tools. It supports the full temporary-email lifecycle: finding available domains, creating addresses, listing addresses in the account, and deleting addresses. Created addresses can use a selected prefix and domain, with expiry values of one hour, one day, three days, or no automatic expiry.

Message handling is also included. An agent can list messages for an email address, retrieve the detailed content of a particular message, or delete that message. The server additionally reads and updates the account’s webhook configuration, including its URL and enabled state.

## How it works

The MCP client starts the server with `npx`, either from the published package name or directly from the Git repository. Tool calls are translated into requests to the ChatTempMail API. Authentication uses an API key supplied through the environment, while the API base URL can be overridden when needed.

Email and message listing tools accept an optional pagination cursor. When the API returns another cursor, the client can provide that value in a later call to retrieve more results. Address and message operations use the corresponding email and message IDs rather than the visible email text alone.

The mcp-server-tempmail MCP server is intended for interactive or agent-driven management of temporary inboxes. It does not describe a separate local mailbox store; the available data and operations come from the configured ChatTempMail service.

## Setup and configuration

Create an account at chat-tempmail.com, sign in, and generate an API key from the profile page. Configure the MCP client to launch `mcp-server-tempmail` with these environment variables:

- `TEMPMAIL_API_KEY`: The ChatTempMail API key. Keep it private.
- `TEMPMAIL_BASE_URL`: Optional API base URL. If omitted, it defaults to `https://chat-tempmail.com`.

A package-based configuration uses `npx` with `mcp-server-tempmail` as its argument. The source-based option uses `npx --from` with the repository URL before the server command. Restart the MCP client after adding or changing the configuration.

## Tools and capabilities

The mcp-server-tempmail MCP server provides nine tools:

- `get_email_domains` returns available email domains and takes no parameters.
- `create_email` creates an address from a required name, domain, and expiry time.
- `list_emails` lists account addresses and optionally accepts a cursor.
- `delete_email` removes an address by required email ID.
- `get_messages` lists messages for an email ID, with optional pagination.
- `get_message_detail` returns a message using its email ID and message ID.
- `delete_message` removes a message using both IDs.
- `get_webhook_config` reads the current webhook settings.
- `set_webhook_config` updates a required URL and enabled flag.

Expiry values for address creation are expressed in milliseconds: `3600000`, `86400000`, `259200000`, or `0` for permanent addresses.

## Limitations and notes

An API key is required, and temporary addresses expire according to the selected expiry setting. Protect the key from public exposure. Listing operations may require repeated calls when more results are available; use the returned `nextCursor` value for subsequent requests. The documentation confirms Claude Desktop and Cursor configuration, but does not specify additional client-specific behavior.

_Full upstream README: https://allmcps.com/mcp/mcp-server-tempmail/readme_

