# smails

Gives an AI agent its own disposable mailbox so it can pull verification codes out of incoming email. No signup.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 39
- Author: pexni
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pexni/smails/tree/HEAD/cli
- Updated: 2026-06-26
- HTML: https://affpapa.org/en/nevibecode/mcp/smails

## What it does

Five tools ship with the server. `create_mailbox` spins up a throwaway inbox, `list_messages` shows what landed in it, `read_message` opens one by id, `delete_message` clears it out, and `get_address` reports the current address. Your agent can then grab a verification code on its own and keep going.

The mailbox address and token live in `~/.smails`. Point `SMAILS_API_URL` somewhere else if you need a different API base; otherwise it talks to `https://smails.dev`. Everything runs through `npx`, so there is nothing to install first.

The same package doubles as a terminal tool: `npx @smails/cli create`, `inbox`, `read <id>`, `delete <id>`, `whoami`. Running `create --force` replaces the current mailbox with a fresh one, and the old messages go with it.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add smails -- npx -y @smails/cli
```

### Codex

**Platform CLI**
```bash
codex mcp add cli -- npx -y @smails/cli
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "cli": {
            "command": "npx",
            "args": [
                "-y",
                "@smails/cli"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "cli": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@smails/cli"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add cli npx -y @smails/cli
```

## When to use it
- read a verification code from an email without copying it by hand
- spin up a temporary inbox for a test run
- hand an agent an address to sign up with
- delete a message so the inbox does not fill up
- check which address the agent is currently using

## Example prompts
- Create a throwaway mailbox and tell me the address
- Check the inbox and pull the verification code from the latest message
- Delete that message from the mailbox

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
