# Agentboxd MCP server

> Provides real email inboxes for AI agents to send, reply, and extract verification codes or magic links.

- Repository: https://github.com/agentboxd/agentboxd
- Page: https://hostedmcp.org/servers/agentboxd/mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.3.0

## Install

### Claude Code

```sh
claude mcp add --env 'AGENTBOXD_API_KEY=<YOUR_AGENTBOXD_API_KEY>' mcp -- npx -y @agentboxd/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agentboxd/mcp"
      ],
      "env": {
        "AGENTBOXD_API_KEY": "<YOUR_AGENTBOXD_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentboxd/mcp"
      ],
      "env": {
        "AGENTBOXD_API_KEY": "<YOUR_AGENTBOXD_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@agentboxd/mcp"],"env":{"AGENTBOXD_API_KEY":"<YOUR_AGENTBOXD_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agentboxd/mcp"
      ],
      "env": {
        "AGENTBOXD_API_KEY": "<YOUR_AGENTBOXD_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'AGENTBOXD_API_KEY=<YOUR_AGENTBOXD_API_KEY>' -- npx -y @agentboxd/mcp
```

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

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@agentboxd/mcp"]

[mcp_servers.mcp.env]
AGENTBOXD_API_KEY = "<YOUR_AGENTBOXD_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'AGENTBOXD_API_KEY=<YOUR_AGENTBOXD_API_KEY>' mcp npx -- -y @agentboxd/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agentboxd/mcp"
      ],
      "env": {
        "AGENTBOXD_API_KEY": "<YOUR_AGENTBOXD_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AGENTBOXD_API_KEY` | no | yes | Agentboxd API key (starts with mr_). Create one at https://agentboxd.com/app/api-keys, or leave it unset and let the agent call the signup tool. |
| `AGENTBOXD_BASE_URL` | no | no | API base URL. Only change it for a self-hosted server. |

## Tools (56)

- `create_inbox`
- `create_temporary_inbox`
- `list_inboxes`
- `send_email`
- `send_message`
- `reply_to_email`
- `reply_to_message`
- `forward_email`
- `list_messages`
- `get_message`
- `get_thread`
- `mark_read`
- `search_email`
- `wait_for_email`
- `get_verification_code`
- `get_contact`
- `update_contact`
- `delete_contact`
- `search_knowledge`
- `draft_reply`
- `create_draft`
- `list_drafts`
- `get_draft`
- `send_draft`
- `schedule_draft`
- `cancel_draft`
- `get_identity_token`
- `create_identity`
- `list_identities`
- `resolve_agent`
- `search_agents`
- `search_public_agents`
- `verify_agent_message`
- `update_agent_card`
- `list_agent_keys`
- `signup`
- `get_account`
- `add_agent`
- `request_claim`
- `get_attachment_text`
- `extract_attachment`
- `pause_inbox`
- `resume_inbox`
- `emergency_stop`
- `get_escalation`
- `update_escalation`
- `get_deliverability`
- `list_suppressions`
- `claim_messages`
- `ack_message`
- `list_events`
- `get_event`
- `respond_to_invite`
- `create_meeting`
- `update_meeting`
- `cancel_meeting`

## FAQ

### How do I use Agentboxd with Claude Desktop?

You can add it by editing your `claude_desktop_config.json` file with the `npx` command and providing your `AGENTBOXD_API_KEY` in the environment variables.

### Can the agent sign itself up if I don't have an API key?

Yes, if you start the server without an API key, the agent receives a `signup` tool that allows it to create an unclaimed workspace and generate a new key.
