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.

circle-info

Mailtrap MCP server is implemented as a Node.js command line utility, so please install the latest Node.js versionarrow-up-right 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".

Claude Desktop Connectors catalog showing Mailtrap - Send Emails extension

For manual configuration and available tools documentation, visit the official GitHub repository.

View on GitHub

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.

Mailtrap Sending Domains Integration page showing API credentials with Host and Api Token fields

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"

circle-check

Last updated

Was this helpful?