# mailsink [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/heocoi/mailsink-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 206  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mailsink

## Description
Disposable inboxes for AI agents and CI: catch the verification email, read the OTP or link.

## Tools
Capabilities this server exposes over MCP:

- **create_inbox** — Provision a throwaway address. Returns `email`, `id`, `expires_at`.
- **list_inboxes** — List active inboxes on the account.
- **wait_for_email** — Block up to `timeout` seconds (max 120) for any email to arrive.
- **get_verification_code** — Extract the most recent OTP from the inbox (polls until found or timeout).
- **get_verification_link** — Extract the most recent magic link.
- **list_messages** — Summaries of all messages in an inbox.
- **get_message** — Full content of a specific message by ID.
- **delete_inbox** — Burn an inbox immediately.

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

```json
"mcpServers": {
  "mailsink": {
    "command": "npx",
    "args": ["-y","@mailsink/mcp"],
    "env": {
      "MAILSINK_API_KEY": "",
      "MAILSINK_API_URL": ""
    }
  }
}
```

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

## Documentation

## What mailsink MCP server does

The mailsink MCP server gives an MCP-compatible agent access to temporary MailSink email inboxes. An agent can create an address for a signup or test, provide that address to another service, wait for a message, and retrieve the verification data it needs. After the workflow completes, it can delete the inbox.

The server exposes eight tools. Inbox lifecycle operations include `create_inbox`, `list_inboxes`, and `delete_inbox`. Message handling includes `wait_for_email`, `list_messages`, and `get_message`. Verification-specific tools, `get_verification_code` and `get_verification_link`, retrieve the latest OTP or magic link from an inbox.

## How it works

MailSink provisions the disposable address and returns its email address, identifier, and expiration time. The agent can then use the address in a registration or testing flow. `wait_for_email` blocks until a message arrives or its timeout is reached; the timeout can be up to 120 seconds. The extraction tools poll until the requested verification value is found or the configured timeout ends.

For inspection beyond extracted values, `list_messages` returns message summaries and `get_message` returns the complete content for a selected message. This supports workflows where the agent needs to inspect an email rather than only enter a code or follow a link.

## Setup and configuration

Install the package globally with npm or run it on demand with `npx`:

```bash
npm install -g @mailsink/mcp
npx @mailsink/mcp
```

Create a MailSink account, obtain an API key from the MailSink app, and provide it through `MAILSINK_API_KEY`.

Claude Code can register the server with `claude mcp add mailsink -- npx -y @mailsink/mcp`. Claude Desktop, Cursor, and Windsurf use an `mcpServers` configuration entry with `npx`, the package name, and the API key in the server environment.

## Tools and capabilities

- Provision a temporary inbox and receive its address, ID, and expiration.
- List active inboxes associated with the account.
- Wait for any incoming email for up to 120 seconds.
- Extract the latest OTP or magic link from an inbox.
- List message summaries or retrieve a message’s full content.
- Delete an inbox immediately after use.

## Limitations and notes

The mailsink MCP server requires a MailSink API key. The free plan includes 50 inboxes per month; paid plans change inbox caps, email size limits, time-to-live, and request rates. These plan limits may affect longer or higher-volume automation.

The server is intended for disposable inbox workflows. `wait_for_email` has a maximum timeout of 120 seconds, and verification extraction depends on the relevant email arriving before the operation times out.

_Full upstream README: https://allmcps.com/mcp/mailsink/readme_

