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:
Waiting for verification email...
OTP found: 847291 (confidence: high)
Available Tools
The MCP server exposes 8 tools:
| Tool | Description |
|---|---|
| create_inbox | Create a disposable email address |
| wait_for_otp | Wait for email + extract OTP code |
| get_otp | Extract OTP from latest email |
| get_emails | List all emails in inbox |
| wait_for_email | Wait for any new email |
| delete_inbox | Delete inbox and all emails |
| list_inboxes | List all active inboxes |
| get_quota | Check 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.