MCP server for the Mailtrap email platform β analytics, sending, contacts, sandbox
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Mailtrap.
get_statsSending statistics β delivery, bounce, open, click, spam rates. Group by domain, category, ESP, or date
get_email_logsList sent emails with filtering by status, stream, date. Cursor-based pagination
get_email_logSingle message detail with delivery events timeline
get_suppressionsList suppressed emails (bounces, spam complaints, unsubscribes)
delete_suppressionRe-enable sending to a suppressed address
check_list_hygieneFind suppressed emails that still exist in contact lists and suggest exact cleanup actions
Mailtrap MCP server β analytics, email logs, contacts, sandbox testing & more via natural language.
Built with Bun + TypeScript. Works with Claude, Cursor, and any MCP client.
Get an API token from Mailtrap API Tokens.
Minimal
Full
That's it. Restart Claude Code and the tools are available.
Also works with
bunx mcpj-mailtrap@latestif you have Bun. Requires Node 18+ when running vianpx.
Minimal
Full
Download a pre-built binary from Releases:
| Platform | File |
|---|---|
| macOS (Apple Silicon) | mcpj-mailtrap-darwin-arm64 |
| macOS (Intel) | mcpj-mailtrap-darwin-x64 |
| Linux | mcpj-mailtrap-linux-x64 |
| Windows | mcpj-mailtrap-windows-x64.exe |
macOS / Linux:
Windows (PowerShell):
| Tool | Description |
|---|---|
get_stats | Sending statistics β delivery, bounce, open, click, spam rates. Group by domain, category, ESP, or date |
| Tool | Description |
|---|---|
get_email_logs | List sent emails with filtering by status, stream, date. Cursor-based pagination |
get_email_log | Single message detail with delivery events timeline |
get_suppressions | List suppressed emails (bounces, spam complaints, unsubscribes) |
delete_suppression | Re-enable sending to a suppressed address |
check_list_hygiene | Find suppressed emails that still exist in contact lists and suggest exact cleanup actions |
| Tool | Description |
|---|---|
send_email | Send via transactional or bulk stream. Supports HTML, text, or templates |
batch_send | Send up to 500 emails in one request |
send_test_email | Send to a sandbox inbox for testing, with optional env defaults for inbox and sender |
| Tool | Description |
|---|---|
list_templates | List all email templates |
get_template | Get template details including HTML/text body |
create_template | Create a new template |
update_template | Update an existing template |
delete_template | Delete a template |
render_react_email | Render a react-email component file (.tsx, .jsx, .js, .mjs) to HTML + plain text |
| Tool | Description |
|---|---|
create_contact | Create a contact with email, custom fields, list membership |
get_contact | Get contact by UUID or email |
update_contact | Update contact fields, list membership, subscription status |
delete_contact | Delete a contact |
trigger_contact_event | Trigger automations for a contact |
list_contact_lists | List all contact lists |
get_contact_list | Get a single contact list |
create_contact_list | Create a new contact list |
update_contact_list | Rename a contact list |
delete_contact_list | Delete a contact list |
manage_contact_field | List, get, create, update, or delete custom contact fields |
import_contacts | Bulk import up to 50k contacts, or check import status |
export_contacts | Start contact export or check export status |
| Tool | Description |
|---|---|
list_projects | List sandbox projects with inboxes |
get_project | Get a single project |
manage_project | Create, update, or delete a project |
list_inboxes | List all sandbox inboxes |
get_inbox | Get inbox details (credentials redacted by default) |
manage_inbox | Create, update, clean, mark read, reset credentials, or delete |
get_messages | List messages in a sandbox inbox |
get_message | Get message body in HTML/text/raw/EML format, with optional attachments |
analyze_message | Combined spam score + HTML analysis + headers report |
forward_message | Forward a test message to an email |
| Tool | Description |
|---|---|
list_domains | List sending domains with DNS status |
get_domain | Get domain details including DNS records |
manage_domain | Create or delete a sending domain |
send_domain_setup_instructions | Email DNS setup instructions to a colleague |
| Tool | Description |
|---|---|
list_accounts | List accounts or get one by ID |
get_billing_usage | Plan limits and current usage |
manage_account_access | List, remove, update permissions, view resources |
manage_api_token | List, get, create, delete, or reset API tokens |
| Variable | Required | Default | Description |
|---|---|---|---|
MAILTRAP_API_TOKEN | Yes | β | General API token from mailtrap.io/api-tokens |
MAILTRAP_SENDING_TOKEN | No | MAILTRAP_API_TOKEN | Separate token for transactional and bulk send.api requests |
MAILTRAP_ACCOUNT_ID | No | auto-discovered | Default account ID |
MAILTRAP_DEFAULT_FROM_EMAIL | No | β | Default sender email for send_email / send_test_email |
MAILTRAP_TEST_INBOX_ID | No | β | Default sandbox inbox ID for send_test_email |
DEBUG | No | β | Enable debug logging |
Using npx @latest (recommended): You always get the latest version β no manual updates needed.
Using a binary: The server checks for new releases on startup and logs to stderr if outdated:
Check your installed version:
Requires Bun.
MIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-mailtrap)<a href="https://allmcps.com/mcp/mcp-mailtrap"><img src="https://allmcps.com/api/badge/mcp-mailtrap?style=directory" alt="MCP Mailtrap on AllMCPs" /></a>