# EmptyInbox MCP server

> Allows AI agents to create disposable email inboxes, read messages, and automatically extract verification codes for signup flows.

- Repository: https://github.com/blockonomics/emptyinbox-me
- Page: https://hostedmcp.org/servers/blockonomics/emptyinbox
- Transport: stdio
- Stars: 4
- Latest version: 1.5.0

## Install

### Claude Code

```sh
claude mcp add --env 'EMPTYINBOX_API_KEY=<YOUR_EMPTYINBOX_API_KEY>' emptyinbox -- npx -y emptyinbox-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "emptyinbox": {
      "command": "npx",
      "args": [
        "-y",
        "emptyinbox-mcp"
      ],
      "env": {
        "EMPTYINBOX_API_KEY": "<YOUR_EMPTYINBOX_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "emptyinbox": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "emptyinbox-mcp"
      ],
      "env": {
        "EMPTYINBOX_API_KEY": "<YOUR_EMPTYINBOX_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"emptyinbox","type":"stdio","command":"npx","args":["-y","emptyinbox-mcp"],"env":{"EMPTYINBOX_API_KEY":"<YOUR_EMPTYINBOX_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "emptyinbox": {
      "command": "npx",
      "args": [
        "-y",
        "emptyinbox-mcp"
      ],
      "env": {
        "EMPTYINBOX_API_KEY": "<YOUR_EMPTYINBOX_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add emptyinbox --env 'EMPTYINBOX_API_KEY=<YOUR_EMPTYINBOX_API_KEY>' -- npx -y emptyinbox-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.emptyinbox]
command = "npx"
args = ["-y", "emptyinbox-mcp"]

[mcp_servers.emptyinbox.env]
EMPTYINBOX_API_KEY = "<YOUR_EMPTYINBOX_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'EMPTYINBOX_API_KEY=<YOUR_EMPTYINBOX_API_KEY>' emptyinbox npx -- -y emptyinbox-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "emptyinbox": {
      "command": "npx",
      "args": [
        "-y",
        "emptyinbox-mcp"
      ],
      "env": {
        "EMPTYINBOX_API_KEY": "<YOUR_EMPTYINBOX_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `EMPTYINBOX_API_KEY` | no | yes | Existing EmptyInbox API key. Omit to auto-register a free account on the first tool call that needs one; the key is then written to ~/.emptyinbox.json. |

## Tools (11)

- `create_inbox`
- `list_inboxes`
- `list_messages`
- `get_message`
- `wait_for_message`
- `get_quota`
- `list_bundles`
- `buy_quota`
- `check_payment`
- `keep_inbox`
- `report_issue`

## FAQ

### How do I set up EmptyInbox?

The server requires no manual setup; the first tool call that needs an account will automatically register one and save the key locally.

### How does the agent handle verification codes?

The wait_for_message tool can block until an email arrives, making it ideal for signup or OTP flows by returning the extracted code.

### How are payments handled for more quota?

Agents can quote a Bitcoin payment via buy_quota, which provides a payment URL and BIP21 URI for the user to complete the transaction.
