April 15, 2026MCPTutorial

Give Your Claude Agent an Email Inbox with MCP

MCP has 97 million installs. Here's how to add email powers to your AI agent in 2 minutes.

What is MCP?

Model Context Protocol (MCP) is the standard for connecting AI agents to external tools. Think of it as USB for AI — build a tool integration once, and every major AI agent can use it: Claude, GPT, Gemini, Cursor, Windsurf, and more.

With sandmail-mcp, your AI agent can create disposable email inboxes, receive emails, and extract OTP codes — all natively, without writing any integration code.

Step 1: Install

npm install -g sandmail-mcp

Step 2: Get an API Key

Sign up at sandmail.dev to get your free API key (500 requests/month, no credit card).

Step 3: Configure

Claude Code / Claude Desktop

Add to your project's .mcp.json:

{
  "mcpServers": {
    "sandmail": {
      "command": "sandmail-mcp",
      "env": {
        "SANDMAIL_API_KEY": "sk_live_your_key"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "sandmail": {
      "command": "sandmail-mcp",
      "env": {
        "SANDMAIL_API_KEY": "sk_live_your_key"
      }
    }
  }
}

Step 4: Use It

Restart your AI tool. Now you can ask your agent:

You:"Create a temporary email and sign up for example.com, then give me the verification code"
Agent:I'll create an inbox, use it to sign up, and extract the OTP...
Agent:Inbox created: agent_x7k@tempyx.com
Waiting for verification email...
OTP found: 847291 (confidence: high)

Available Tools

The MCP server exposes 8 tools:

ToolDescription
create_inboxCreate a disposable email address
wait_for_otpWait for email + extract OTP code
get_otpExtract OTP from latest email
get_emailsList all emails in inbox
wait_for_emailWait for any new email
delete_inboxDelete inbox and all emails
list_inboxesList all active inboxes
get_quotaCheck API usage

Why Not Just Use Gmail?

  • Gmail rate limits: 250 sends/day, 500 receives/day. AI agents hit this in minutes.
  • No OTP extraction: You'd need to parse HTML yourself.
  • No disposable inboxes: You can't create 100 inboxes on demand.
  • Authentication complexity: OAuth2, refresh tokens, scopes — vs one API key.

Get started in 2 minutes

Free tier. No credit card. Works with Claude, Cursor, and Windsurf.