# Mailtrap MCP Server

> Manage Mailtrap sending, testing, and monitoring from AI assistants.

- **URL**: https://followmcp.com/en/servers/mailtrap-mcp
- **Category**: Other
- **Origin**: Official
- **Stars**: 66
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/mailtrap/mailtrap-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 22+
- **Auth**: API key / credential required

## Overview
Mailtrap MCP Server connects the Mailtrap email platform to MCP-compatible AI assistants. Its tools cover transactional and bulk sending, Email Sandbox testing, templates and contacts, domains and webhooks, delivery logs and statistics, marketing campaigns, and inbound inboxes. The source identifies it as the official Mailtrap server and specifies stdio transport. Some features require an account ID; organization sub-account operations also require an organization ID and organization-scoped API token.

## Best for
- Teams already using Mailtrap that want to manage email workflows from an MCP client.
- Developers who need email sending, Sandbox testing, and delivery monitoring in one assistant.
- Users who need to manage Mailtrap contacts, campaigns, domains, or account resources.

## Not for
- Users who do not use the Mailtrap email platform.
- People seeking only a personal email client rather than Mailtrap API and account management.
- Users without authorization to manage the target Mailtrap account, domains, or contact data.

## Required permissions
- Requires a Mailtrap API token; the server manifest marks MAILTRAP_API_TOKEN as required and secret.
- Many template, stats, log, Sandbox, domain, and suppression features require MAILTRAP_ACCOUNT_ID.
- Available actions are limited by the API token's permissions and the Mailtrap account's access controls.
- Account access management requires admin or owner permissions; organization sub-account tools require an organization ID, organization-scoped token, and appropriate permissions.

## Risks
- Sending email, replying to inbound messages, and forwarding Sandbox messages can result in external email delivery or consume forwarding quota.
- Deleting contacts, domains, webhooks, Sandboxes, folders, or sub-accounts changes or removes account data; deleting a sub-account removes all its data.
- Creating or rotating API tokens returns sensitive credentials; a webhook signing secret is returned only at creation and should be stored securely.
- The server can perform account and email operations, so incorrect requests may send unintended messages, change permissions, or alter delivery and tracking settings.

## Client config (JSON)
```json
{
  "mcpServers": {
    "mailtrap": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mailtrap"
      ],
      "env": {
        "MAILTRAP_API_TOKEN": "your_mailtrap_api_token",
        "DEFAULT_FROM_EMAIL": "your_sender@example.com",
        "MAILTRAP_ACCOUNT_ID": "your_account_id",
        "MAILTRAP_SANDBOX_ID": "your_sandbox_id"
      }
    }
  }
}
```

## Tools (100)
- `send-email`: Send transactional email through Mailtrap using inline content or a template.
- `batch-send-transactional-email`: Send a batch of transactional messages in one API call.
- `batch-send-bulk-email`: Send a batch of messages through Mailtrap's bulk email endpoint.
- `list-email-logs`: Search delivery logs with optional date, recipient, status, and other filters.
- `get-email-log-message`: Get an email log entry, event history, and optionally its body by message ID.
- `get-sending-stats`: Get email sending and delivery statistics for a date range.
- `get-marketing-stats`: Get aggregate statistics for marketing campaigns and automations.
- `create-template`: Create an email template in the Mailtrap account.
- `list-templates`: List email templates with pagination.
- `get-template`: Get a template and its content by ID.
- `update-template`: Update an existing email template.
- `delete-template`: Delete an email template.
- `send-sandbox-email`: Send a test message to a Mailtrap Sandbox without delivering it to real recipients.
- `batch-send-sandbox-email`: Send a batch of test messages to one Sandbox in a single API call.
- `get-sandbox-messages`: List messages received in a Sandbox, with pagination and search options.
- `show-sandbox-email-message`: View a Sandbox message's details and content.
- `list-sandbox-projects`: List Sandbox projects and their Sandboxes.
- `create-sandbox-project`: Create a Sandbox project.
- `get-sandbox-project`: Get a Sandbox project, its Sandboxes, and email counts by ID.
- `update-sandbox-project`: Rename a Sandbox project.
- `delete-sandbox-project`: Delete a Sandbox project and all its Sandboxes.
- `create-sandbox`: Create a Sandbox in a project and return its SMTP credentials.
- `get-sandbox`: Get Sandbox details, SMTP credentials, email counts, and status.
- `update-sandbox`: Update a Sandbox name or email username.
- `delete-sandbox`: Delete a Sandbox and all its messages.
- `clean-sandbox`: Delete all messages from a Sandbox while keeping the Sandbox.
- `list-sandboxes`: List all Sandboxes accessible to the API token.
- `mark-sandbox-as-read`: Mark all messages in a Sandbox as read.
- `reset-sandbox-credentials`: Reset a Sandbox's SMTP credentials.
- `enable-sandbox-email-address`: Enable a Sandbox's receive-by-email address.
- `reset-sandbox-email-address`: Generate a new receive-by-email address for a Sandbox.
- `forward-sandbox-message`: Forward a Sandbox message to an external address; this counts against the monthly forwarding quota.
- `update-sandbox-message`: Mark a Sandbox message as read or unread.
- `delete-sandbox-message`: Delete a Sandbox message.
- `get-sandbox-message-spam-score`: Get a SpamAssassin report for a Sandbox message.
- `get-sandbox-message-html-analysis`: Get the HTML client compatibility analysis for a Sandbox message.
- `get-sandbox-message-headers`: Get parsed mail headers for a Sandbox message.
- `get-sandbox-message-html`: Get the HTML body of a Sandbox message.
- `get-sandbox-message-text`: Get the plain-text body of a Sandbox message.
- `get-sandbox-message-raw`: Get the raw MIME content of a Sandbox message.
- `get-sandbox-message-eml`: Get a Sandbox message as EML content for an attachment or mail client import.
- `get-sandbox-message-html-source`: Get the unrendered HTML source of a Sandbox message.
- `list-sandbox-attachments`: List a Sandbox message's attachments and their metadata.
- `get-sandbox-attachment`: Get metadata and a download URL for one Sandbox attachment.
- `list-domains`: List domains and their DNS verification status.
- `get-domain`: Get a domain and its verification status, with optional DNS setup instructions.
- `create-domain`: Create a domain; DNS records must then be added for verification.
- `update-domain`: Update a domain's tracking and inbound settings.
- `delete-domain`: Delete a domain.
- `send-domain-setup-instructions`: Email DNS setup instructions for a domain to an address.
- `get-company-info`: Get a domain's company information used for compliance verification.
- `create-company-info`: Set the company information required for domain compliance verification.
- `update-company-info`: Update a domain's company information.
- `list-suppressions`: List or search the suppression list.
- `create-suppression`: Add an address to the suppression list for a domain and sending stream.
- `delete-suppression`: Delete a suppression record so Mailtrap can resume delivery to that address.
- `list-tracking-opt-outs`: List addresses excluded from open and click tracking.
- `create-tracking-opt-out`: Exclude an address from open and click tracking for a domain.
- `delete-tracking-opt-out`: Remove a tracking opt-out so tracking applies to the address again.
- `list-webhooks`: List webhooks configured for the account.
- `get-webhook`: Get a webhook record by ID; the signing secret is not returned.
- `create-webhook`: Create a webhook; its signing secret is returned only at creation.
- `update-webhook`: Update mutable fields of a webhook.
- `delete-webhook`: Permanently delete a webhook.
- `get-contact`: Get a contact's details by ID or email.
- `create-contact`: Create a contact with optional custom fields and list memberships.
- `update-contact`: Update a contact's details, subscription status, or list memberships.
- `delete-contact`: Permanently delete a contact.
- `create-contact-event`: Record a contact event that can trigger contact-list automations.
- `list-contact-lists`: List contact lists, optionally filtered by name.
- `get-contact-list`: Get a contact list by ID.
- `create-contact-list`: Create a contact list.
- `update-contact-list`: Rename a contact list.
- `delete-contact-list`: Permanently delete a contact list.
- `list-contact-fields`: List contact field definitions for the account.
- `get-contact-field`: Get a contact field definition by ID.
- `create-contact-field`: Create a contact field definition.
- `update-contact-field`: Update a contact field definition.
- `delete-contact-field`: Permanently delete a contact field definition.
- `create-contact-import`: Bulk import contacts and return an import job record.
- `get-contact-import`: Get an import job's status and counts.
- `create-contact-export`: Create a contact export job using filters.
- `get-contact-export`: Get an export job's status and, when finished, its CSV download link.
- `list-email-campaigns`: List email campaigns with pagination and optional name search.
- `get-email-campaign`: Get an email campaign by ID.
- `create-email-campaign`: Create a draft email campaign.
- `update-email-campaign`: Update an email campaign while it is in draft state.
- `delete-email-campaign`: Delete a draft email campaign.
- `start-email-campaign`: Start sending a draft campaign immediately.
- `schedule-email-campaign`: Schedule a draft campaign to send in the future.
- `cancel-email-campaign`: Cancel a scheduled campaign and return it to draft.
- `terminate-email-campaign`: Terminate a campaign that is currently sending.
- `reset-email-campaign`: Reset a scheduled campaign to draft.
- `get-email-campaign-stats`: Get campaign delivery, open, click, and other performance statistics.
- `list-accounts`: List Mailtrap accounts accessible to the current API token.
- `get-billing-usage`: Get sending and testing usage for the current billing cycle.
- `list-account-accesses`: List account access records for users, invites, and API tokens.
- `remove-account-access`: Remove an account access record or revoke its permissions.
- `get-permission-resources`: List resources the API token can administer.
- `bulk-update-permissions`: Bulk create, update, or remove permissions for an account access.
