Mailinator MCP
Mailinator MCP lets AI agents interact with Mailinator through the Model Context Protocol. This gives compatible agents a structured way to inspect inboxes and use email or SMS messages while completing a workflow.
Mailinator MCP is available through the Mailinator CLI.
Use Mailinator MCP when an agent needs to:
- Check for the latest email in a test inbox.
- Retrieve an OTP code.
- Find a password reset link.
- Follow a magic link during a signup or login flow.
- Validate that a transactional email was sent.
- Inspect email content while debugging an application.
Public and private usage
Public Mailinator inboxes are useful for quick, non-sensitive agent experiments and do not require authentication.
Use Private Domains for repeatable, sensitive, or production-like workflows. Private Domains are the recommended option when an agent needs to handle OTPs, reset links, login links, private test identities, or CI/CD test data.
Install the CLI
Install the Mailinator CLI globally with npm:
npm install -g mailinator-cli
Start the MCP server
Start the MCP server for public inbox access:
mailinator-cli --start-mcp-server
For private domain access, set your Mailinator API token first:
export MAILINATOR_API_KEY=your_token_here
mailinator-cli --start-mcp-server
Configure Claude Desktop
Add Mailinator to your Claude Desktop MCP configuration. For private access, include MAILINATOR_API_KEY in the server environment:
{
"mcpServers": {
"mailinator": {
"command": "node",
"args": ["/path/to/bin/index.js", "--start-mcp-server"],
"env": {
"MAILINATOR_API_KEY": "your_token_here"
}
}
}
}
Update /path/to/bin/index.js to the installed location of the Mailinator CLI entry point on your machine.
MCP capabilities
Mailinator MCP provides:
- Direct AI assistant integration.
- Tools for active email operations.
- Resources for passive context access.
- Natural language email queries.
- Automatic domain detection.
- Private domain access when
MAILINATOR_API_KEYis configured.
Example prompts
Once the MCP server is configured, useful prompts may include:
- "Check the joe@mailinator.com inbox."
- "Show me emails in my private myinbox."
- "Get the first email and extract any links."
- "Extract the OTP from this inbox."
- "Find the password reset link."
- "Confirm that the welcome email was sent."
- "Use the latest magic link to finish signup."
Related resources
Learn more about Agent Safety and Privacy, Agent Recipes, and the Mailinator + AI page.
If you need help getting started, contact support@manybrain.com.