Smails logo

Smails

Creates disposable mailboxes and lets agents receive, list, read, and delete email through MCP.

Install Smails

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": {
    "smails": {
      "command": "npx",
      "args": [
        "-y",
        "@smails/cli"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @smails/cli

No response to initialize.

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 9d ago.

Overview

The smails MCP server creates disposable email inboxes and exposes mailbox operations to AI agents. It uses the smails CLI to connect an MCP client to the smails.dev REST API, where messages can be listed, read, or deleted. Incoming mail includes verification codes, magic links, and other confirmation messages. Reach for it when an agent needs a temporary email address without account registration.

Use cases

  • Create a temporary inbox for an agent-led signup
  • Read verification codes from incoming email
  • Retrieve magic links during automated flows
  • Delete messages after processing
  • Use a separate mailbox for short-lived registrations

Key features

  • Create disposable mailboxes
  • List and read incoming messages
  • Delete individual messages
  • Retrieve the current mailbox address
  • Receive real-time new-mail notifications
  • Automatic cleanup after inactivity

Security & health

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

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 41d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @smails/cli (npm)

Adoption & maintenance

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

GitHub stars39Stargazers on the source repository.
npm downloads441Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Smails works

What the smails MCP server does

The smails MCP server gives an AI agent access to a temporary mailbox without requiring a user account or password. It connects to the smails.dev service, which provides disposable email addresses for sign-ups, one-time codes, and confirmation messages.

An agent can create a mailbox, check its contents, retrieve a specific message, remove a message, and ask for the current address. Mailboxes are intended for temporary use and are removed after seven days without activity. The service supports multiple receiving domains, although the available domains are configured by the deployment.

How it works

The MCP server runs through the @smails/cli npm package. An MCP client starts the CLI with the mcp command, and the CLI uses smails' API to perform mailbox operations. The service returns an address and an access token when a mailbox is created; later API requests use that token for authentication.

Messages are accepted through Cloudflare Email Routing and stored by a Cloudflare Durable Object assigned to the mailbox. Each mailbox uses SQLite storage inside its Durable Object. New-mail notifications can also be delivered through a WebSocket connection, allowing the underlying service to receive mail without repeatedly polling.

The smails MCP server is useful for agent workflows that need to complete an email verification step, inspect an incoming magic link, or isolate temporary registration mail from a personal inbox. It is not presented as a general-purpose email account or long-term mailbox.

Setup and configuration

Add the server to an MCP client that supports stdio processes. The documented configuration starts npx with the @smails/cli package and its mcp subcommand:

config.json
{
  "mcpServers": {
    "smails": {
      "command": "npx",
      "args": ["@smails/cli", "mcp"]
    }
  }
}

The README specifically shows this configuration for Claude Desktop and notes that it can be used with Cursor or another MCP client. For local development, set SMAILS_API_URL to the local worker address, such as http://localhost:8787, before running the CLI. The hosted service is used by default when no local development URL is supplied.

Tools and capabilities

The MCP tool set contains five operations:

  • create_mailbox: create a new disposable inbox.
  • list_messages: retrieve messages in the mailbox.
  • read_message: fetch a full parsed message by ID; an ID prefix is accepted by the CLI.
  • delete_message: remove a message.
  • get_address: return the mailbox address.

The same mailbox can also be accessed through the smails web interface, CLI, and REST API. The CLI provides equivalent commands for creating an inbox, listing and reading messages, displaying the current address, and replacing the current mailbox.

Limitations and notes

Mailboxes expire after seven days of inactivity. Activity renews the cleanup timer, but the service is designed for temporary mail rather than durable storage. Access depends on the mailbox token, which combines the address with a secret and is used to authenticate requests.

The MCP package and the hosted worker have separate release processes. Publishing the CLI and MCP package is a manual release, while the worker and frontend can be deployed through Cloudflare Workers Builds. Deploying a private instance requires configuring a catch-all Cloudflare Email Routing rule and receiving domains through the worker's DOMAINS setting.

Reviews

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

Frequently Asked Questions about Smails

smails is an MCP server that connects AI agents to disposable email inboxes on smails.dev. Its main tools create a mailbox, list messages, read a message, delete a message, and return the mailbox address. It is intended for verification codes, magic links, and temporary confirmations without account registration.

Run it through npx using the @smails/cli package and the mcp subcommand. Add a server entry with command npx and arguments ["@smails/cli", "mcp"] to your MCP client's configuration; no separate global installation is documented.

Configure Cursor to start npx with @smails/cli mcp, using the same stdio setup shown for Claude Desktop.

Create a mailbox, use list_messages to find incoming mail, and call read_message for the relevant message. The returned message contains the full parsed body, which can include verification codes, magic links, or confirmation details.

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 PreviewSmails AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/smails?style=directory)](https://allmcps.com/mcp/smails)
HTML Embed
<a href="https://allmcps.com/mcp/smails"><img src="https://allmcps.com/api/badge/smails?style=directory" alt="Smails on AllMCPs" /></a>