Mailsink logo

Mailsink

Disposable MailSink inboxes let agents receive verification emails, extract OTPs or links, and clean up temporary addresses.

Install Mailsink

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mailsink": {
      "command": "npx",
      "args": [
        "-y",
        "@mailsink/mcp"
      ],
      "env": {
        "MAILSINK_API_KEY": "YOUR_VALUE_HERE",
        "MAILSINK_API_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MAILSINK_API_KEY=YOUR_VALUE_HERE --env MAILSINK_API_URL=YOUR_VALUE_HERE --transport stdio mailsink -- npx -y @mailsink/mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @mailsink/mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mailsink MCP server connects AI agents and test automation to MailSink’s disposable email inboxes. It provisions temporary addresses, waits for incoming messages, extracts OTP codes or magic links, and exposes message contents through typed MCP tools. Use it for signup flows, verification steps, and CI tests that need to receive email without managing IMAP or webhook infrastructure. It runs through npm or npx and requires a MailSink API key.

Use cases

  • Create disposable inboxes for signup verification
  • Capture OTP codes in browser or CI workflows
  • Retrieve magic links from temporary email
  • Inspect verification messages and clean up inboxes

Key features

  • Temporary inbox provisioning
  • OTP and magic-link extraction
  • Email arrival polling
  • Message listing and retrieval
  • Inbox deletion
  • Configurable MailSink API endpoint

Tools8

What Mailsink lets your agent do. Expand a tool for its parameters.

Self-reported~124 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @mailsink/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads206Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed8Callable tools this server registers over MCP.

How Mailsink works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mailsink

mailsink is an MCP server that connects AI agents and test automation to MailSink disposable email inboxes. Its main tools provision and manage temporary addresses, wait for incoming messages, extract OTP codes or magic links, inspect message contents, list inboxes, and delete inboxes after use.

Install it with npm or run it directly with npx. Use `npm install -g @mailsink/mcp` for a global installation, or run `npx @mailsink/mcp` without installing the package globally.

Set the required `MAILSINK_API_KEY` environment variable and start the server with npm or npx. You can optionally set `MAILSINK_API_URL` to override the default `https://api.mailsink.dev` endpoint.

Yes, mailsink works with Cursor. Add an `mcpServers` entry that runs `npx -y @mailsink/mcp`, place the API key in the server environment, and restart Cursor.

mailsink can wait up to 120 seconds with `wait_for_email`. The verification-code tool also polls until it finds a code or reaches its timeout.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMailsink AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mailsink?style=directory)](https://allmcps.com/mcp/mailsink)
HTML Embed
<a href="https://allmcps.com/mcp/mailsink"><img src="https://allmcps.com/api/badge/mailsink?style=directory" alt="Mailsink on AllMCPs" /></a>