For the complete documentation index, see llms.txt. This page is also available as Markdown.

MCP Server

Automate email workflows from AI IDEs like VS Code or send emails send emails with simple prompts from AI assistants, such as Claude.

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.

Note: Mailtrap offers a free, 4,000 email/month Email API/SMTP plan.

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".

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.

Account ID (for template management) – Go to Settings > Account Settings.

Sandbox ID (for sandbox testing) – Find it in your Email Sandbox inbox URL.

You can also do this with a ready-to-copy prompt, which you can find on the Sending Setup page.

Use cases

Once configured, you can prompt the AI/agent to perform various email operations:

  • "Send an email to john.doe@example.com 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"

Last updated

Was this helpful?