# ZeroDrop

ZeroDrop creates disposable inboxes and pulls OTPs and magic links from incoming mail. Use it to test app signups and authentication with an AI agent.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: zerodrop-dev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/zerodrop-dev/zerodrop-mcp
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/zerodrop

## What it does

An agent can call `generate_inbox` to get an address, then use `wait_for_email` to receive a matching message with its OTP or magic link extracted. Sender, subject, and required message contents can act as filters. `check_inbox` returns recent messages without waiting.

Address creation happens locally; email is handled by ZeroDrop. Without an API key, inboxes are public, and one sender can deliver mail to five different inboxes per day. Set `ZERODROP_API_KEY` to use a private key-bound inbox, or configure `ZERODROP_BASE_URL` for a self-hosted instance. On the free tier, an inbox is removed 30 minutes after its most recent message. That matters if an agent needs to retrieve mail later.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `ZERODROP_API_KEY`, `ZERODROP_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env ZERODROP_API_KEY=<ZERODROP_API_KEY> --env ZERODROP_BASE_URL=<ZERODROP_BASE_URL> --transport stdio zerodrop -- npx -y zerodrop-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add zerodrop --env ZERODROP_API_KEY=<ZERODROP_API_KEY> --env ZERODROP_BASE_URL=<ZERODROP_BASE_URL> -- npx -y zerodrop-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "zerodrop": {
            "command": "npx",
            "args": [
                "-y",
                "zerodrop-mcp"
            ],
            "env": {
                "ZERODROP_API_KEY": "<ZERODROP_API_KEY>",
                "ZERODROP_BASE_URL": "<ZERODROP_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "zerodrop": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "zerodrop-mcp"
            ],
            "env": {
                "ZERODROP_API_KEY": "<ZERODROP_API_KEY>",
                "ZERODROP_BASE_URL": "<ZERODROP_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e ZERODROP_API_KEY=<ZERODROP_API_KEY> -e ZERODROP_BASE_URL=<ZERODROP_BASE_URL> zerodrop npx -y zerodrop-mcp
```
Replace <…> with your own values

## When to use it
- test signup flows that require email verification
- retrieve an OTP without parsing message HTML
- get a magic link from an incoming message
- inspect recent messages in a test inbox

## Example prompts
- Create a disposable address and test my app signup by retrieving the OTP from the email.
- Wait for my app's message containing a magic link and return the link.
- Show the recent messages in this inbox.

## Similar
- [mailsocket](https://affpapa.org/en/nevibecode/mcp/mailsocket.md) — MCP server
- [mcp](https://affpapa.org/en/nevibecode/mcp/openagentemail-mcp.md) — MCP server · ★ 53
- [agent-email-cli](https://affpapa.org/en/nevibecode/skills/agent-email-cli.md) — skill · 2100 installs
- [sms](https://affpapa.org/en/nevibecode/mcp/sms.md) — MCP server · ★ 8
- [email-testing](https://affpapa.org/en/nevibecode/skills/email-testing.md) — skill · 997 installs
- [mcp-server-tempmail](https://affpapa.org/en/nevibecode/mcp/mcp-server-tempmail.md) — MCP server · ★ 10

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