Mailtrap MCP Server
Mailtrap MCP Server lets you automate email workflows from your AI IDE (e.g., VS Code, Cursor) or send emails with simple prompts from AI assistants like Claude Desktop.
The MCP server provides tools for:
Sending emails – Send transactional emails through Mailtrap Email API.
Sandbox testing – Send test emails to your sandbox, retrieve and view messages.
Template management – Create, list, update, and delete email templates.
Mailtrap MCP server is implemented as a Node.js command line utility, so please install the latest Node.js version before getting started.
Quick install
Install in Cursor Install in VS Code
For Claude Desktop, Mailtrap is available as a Desktop extension in the Connectors catalog. Open Claude Desktop settings, go to Connectors, select Desktop extensions, and search for "Mailtrap".

For manual configuration and available tools documentation, visit the official GitHub repository.
Where to find your credentials
During installation, you'll need to provide your Mailtrap credentials:
API Token and From email– Navigate to Sending Domains > Integration > API in your Mailtrap account.

Account ID (for template management) – Go to Settings > Account Settings.
Sandbox ID (for sandbox testing) – Find it in your Email Sandbox inbox URL.
Use cases
Once configured, you can prompt the AI/agent to perform various email operations:
"Send an email to [email protected] with the subject 'Meeting Tomorrow' and a friendly reminder about our upcoming meeting."
"Send a test email to my sandbox inbox with a sample welcome message"
"Show me the last 5 emails in my sandbox inbox"
"Create a new email template called 'Welcome Email' with a friendly onboarding message"
"List all my email templates"
You can combine Mailtrap MCP with other MCP servers for advanced functionality. For example, send a report email via Mailtrap MCP, and use the Slack MCP to post a message in the team's channel.
Last updated
Was this helpful?

