Purpose: The official Mailtrap MCP server connects the Mailtrap email delivery platform to MCP-compatible AI assistants such as Claude Desktop, Claude Code, Cursor, and VS Code, allowing users to perform email-related operations through natural language prompts.
Main capabilities: Send transactional and bulk emails (including bulk and template emails) via the Email API and SMTP; safely test emails in Email Sandbox by checking content, headers, attachments, spam scores, and HTML client compatibility; search email logs, view event history, and analyze delivery, bounces, opens, clicks, and spam rates; manage sending domains, DNS verification, webhooks, and suppression lists; manage contacts, lists, custom fields, and events, with import and export support; view billing usage and manage access permissions, API tokens, and sub-accounts.
How to use: You must first create a Mailtrap account, verify a domain, and obtain an API token from the API settings and an Account ID from account management. The required environment variables are MAILTRAP_API_TOKEN and MAILTRAP_ACCOUNT_ID (the latter is optional for sending tools, email campaign tools, company information tools, and tracking opt-out tools). Optional variables include DEFAULT_FROM_EMAIL, MAILTRAP_SANDBOX_ID, MAILTRAP_TEST_INBOX_ID, MAILTRAP_ORGANIZATION_ID, and MAILTRAP_ORGANIZATION_API_TOKEN. It can be run via the Docker MCP Catalog image with stdio, or built from the repository with docker build -t mcp/mailtrap .; it supports installation via Smithery (mailtrap/mailtrap-mcp) and MCPB installation (download the .MCPB file and open it to configure). Claude Desktop or Cursor requires adding configuration in the corresponding configuration file, and after modifying env, the MCP server must be restarted.
Applicable scenarios: Send and test emails directly in an IDE or AI assistant, troubleshoot delivery issues, view sending statistics, manage templates and contacts, configure domains and webhooks, and manage accounts and sub-accounts.
Limitations: Requires a valid Mailtrap account, verified domain, and API token; some tools depend on the Account ID or organization-level token; sending tools support two mutually exclusive modes: inline content and templates. When using template_uuid, subject, text, html, and category must be omitted; bulk sending requires a non-empty requests array, and each request must contain at least one recipient.