SandMail — Disposable Email API for AI Agents
SandMail MCP Server
Give AI agents their own disposable email inboxes with OTP extraction.
Works with Claude Code, Cursor, Windsurf, and any MCP-compatible AI tool.
Install
npm install -g sandmail-mcpSetup
Claude Code / Claude Desktop
Add to your MCP config (~/.claude/claude_desktop_config.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"
}
}
}
}Available Tools
Tool | Description |
| Create a disposable email inbox |
| Wait for an email and extract the OTP code |
| Extract OTP from the latest email |
| List all emails in an inbox |
| Wait for any new email to arrive |
| Delete an inbox |
| List all active inboxes |
| Check API usage |
Example Usage
Ask your AI agent:
"Create a temporary email, sign up for example.com, and get me the verification code"
The agent will:
Call
create_inbox→ getstest123@tempyx.comUse the email to sign up on the website
Call
wait_for_otp→ waits for the verification emailReturn the OTP code to you
Get API Key
Get your free API key at sandmail.dev
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/brobin002/sandmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server