Mailosaur MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mailosaur MCP list messages from the last hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mailosaur MCP
A full-featured Model Context Protocol server for Mailosaur email and SMS testing.
Features
List, search, wait for, retrieve, create, forward, reply to, and delete messages.
Manage Mailosaur servers and generate test email addresses.
Download EML files and attachments as base64 content.
Generate and download email preview screenshots.
Run spam and deliverability analysis.
Inspect account limits and transaction usage.
Create virtual security devices and retrieve TOTP codes.
The implementation is based on the official Mailosaur API and Node.js client surface. See Mailosaur API docs, Mailosaur Node.js docs, and Mailosaur email previews docs.
Related MCP server: mcp-imap
Setup
npm install
npm run buildSet your Mailosaur API key:
export MAILOSAUR_API_KEY="your_api_key"MCP configuration
{
"mcpServers": {
"mailosaur": {
"command": "node",
"args": ["/absolute/path/to/mailosaur-mcp/dist/index.js"],
"env": {
"MAILOSAUR_API_KEY": "your_api_key"
}
}
}
}Local development
npm run typecheck
npm run buildRun directly during development:
MAILOSAUR_API_KEY="your_api_key" npm run devTools
mailosaur_messages_getmailosaur_messages_listmailosaur_messages_searchmailosaur_messages_get_by_idmailosaur_messages_createmailosaur_messages_forwardmailosaur_messages_replymailosaur_messages_deletemailosaur_messages_delete_allmailosaur_messages_generate_previewsmailosaur_servers_listmailosaur_servers_createmailosaur_servers_getmailosaur_servers_get_passwordmailosaur_servers_updatemailosaur_servers_deletemailosaur_servers_generate_email_addressmailosaur_files_get_emailmailosaur_files_get_attachmentmailosaur_files_get_previewmailosaur_analysis_spammailosaur_analysis_deliverabilitymailosaur_previews_list_email_clientsmailosaur_devices_listmailosaur_devices_createmailosaur_devices_otpmailosaur_devices_deletemailosaur_usage_limitsmailosaur_usage_transactions
Destructive tools require confirm: true.
Repository Skill
This repository includes a Codex skill at skills/mailosaur-mcp-builder. Use it when extending this MCP, auditing tool coverage against Mailosaur docs, or building another Mailosaur MCP implementation.
Available Tools
29 toolsmailosaur_analysis_deliverabilityC
Run deliverability analysis for a message.
Inputs: messageId (required).
mailosaur_analysis_spamC
Run spam analysis for a message.
Inputs: messageId (required).
mailosaur_devices_createB
Create a Mailosaur virtual security device from a base32 shared secret.
Inputs: sharedSecret (required), name.
mailosaur_devices_deleteC
Permanently delete a Mailosaur virtual security device.
Inputs: id (required), confirm.
mailosaur_devices_listA
List Mailosaur virtual security devices used for TOTP testing.
Inputs: no named parameters.
mailosaur_devices_otpB
Retrieve the current TOTP code for a saved device ID or base32 shared secret.
Inputs: query (required).
mailosaur_files_get_attachmentC
Download a message attachment. Returns base64 content.
Inputs: attachmentId (required).
mailosaur_files_get_emailC
Download a message as an EML file. Returns base64 content.
Inputs: messageId (required).
mailosaur_files_get_previewB
Download a generated email preview screenshot. Returns base64 content.
Inputs: previewId (required).
mailosaur_messages_createC
Create a message and optionally send it to a verified external address.
Inputs: server (required), to (required), cc, from, +5 more.
mailosaur_messages_deleteB
Permanently delete a message and its attachments.
Inputs: id (required), confirm.
mailosaur_messages_delete_allC
Permanently delete all messages and attachments on a server.
Inputs: server (required), confirm.
mailosaur_messages_forwardC
Forward an email message to a verified address.
Inputs: id (required), to (required), cc, text, +1 more.
mailosaur_messages_generate_previewsC
Generate screenshots of an email rendered in selected email clients.
Inputs: messageId (required), previews (required).
mailosaur_messages_getA
Wait for and return the first full message matching criteria. Best for test flows where an email/SMS may arrive shortly.
Inputs: server (required), criteria (required), options.
mailosaur_messages_get_by_idB
Retrieve the full detail for a single message by ID.
Inputs: id (required).
mailosaur_messages_listC
List message summaries for a server.
Inputs: server (required), options.
mailosaur_messages_replyC
Reply to an email message.
Inputs: id (required), body (required).
mailosaur_messages_searchC
Search message summaries by sender, recipient, subject, or body.
Inputs: server (required), criteria (required), options.
mailosaur_previews_list_email_clientsA
List email clients available for generated email previews.
Inputs: no named parameters.
mailosaur_servers_createC
Create a Mailosaur server.
Inputs: name (required).
mailosaur_servers_deleteB
Permanently delete a Mailosaur server and all contained messages.
Inputs: id (required), confirm.
mailosaur_servers_generate_email_addressB
Generate a random email address for a Mailosaur server.
Inputs: id (required).
mailosaur_servers_getB
Get a Mailosaur server by ID.
Inputs: id (required).
mailosaur_servers_get_passwordB
Get the SMTP/POP3 password for a Mailosaur server.
Inputs: id (required).
mailosaur_servers_listA
List all Mailosaur servers.
Inputs: no named parameters.
mailosaur_servers_updateC
Update a Mailosaur server.
Inputs: id (required), name (required).
mailosaur_usage_limitsB
Retrieve account usage limits. Requires an account-level API key.
Inputs: no named parameters.
mailosaur_usage_transactionsB
Retrieve recent transaction usage. Requires an account-level API key.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Each tool has a distinct resource-action pair clearly indicated by the naming convention, making it easy to differentiate between tools for different purposes.
All tools follow a consistent 'mailosaur_<resource>_<action>' snake_case pattern, providing predictability and ease of understanding.
With 29 tools, the count exceeds the typical well-scoped range (above 25), making the tool set feel heavy and potentially overwhelming for an agent.
The tools comprehensively cover server management, message lifecycle, device handling, file operations, analysis, and usage tracking, leaving no obvious gaps for email testing workflows.
Maintenance
Related MCP Connectors
Read the verification code (OTP) and test emails your app sends to a catch-all test hostname. Four read-only tools: list_domains, get_latest_otp, list_messages, get_message. Needs a MailBots API key from the 14-day free trial (no card, no DNS) or a paid plan. Setup: https://mailbots.top/docs/mcp
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Test-inbox API for email and SMS: create inboxes, long-poll messages, extract OTPs and links.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with Microsoft 365 Outlook Mail, allowing email operations via natural language.314 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with email accounts via IMAP and SMTP, supporting mailbox listing, email search, retrieval, sending, and management.MIT

CloudMailin MCPofficial
AlicenseNot gradedqualityFmaintenanceEnables AI models to manage CloudMailin email data, including listing addresses, messages, and sending emails with markdown support.MIT- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read, search, and manage emails from Mailpit, an email and SMTP testing tool, during development and testing.MIT