mailtrap-mcp

mailtrap-mcp

MCP.Pizza Chef: mailtrap

mailtrap-mcp is an MCP server that enables sending transactional emails through the Mailtrap service. It integrates seamlessly with MCP hosts like Claude Desktop or Cursor, allowing developers to configure and send emails programmatically using Mailtrap's API. This server simplifies email workflows by providing a secure, token-based connection to Mailtrap, supporting automated email dispatch in development and testing environments.

Use This MCP server To

Send transactional emails from MCP-enabled applications Automate email testing with Mailtrap integration Configure email sending in development environments Integrate email dispatch into AI workflows Use Mailtrap API for secure email delivery Manage email sending tokens and sender addresses Test email templates without spamming real users

README

TypeScript test NPM

MCP Mailtrap Server

An MCP server that provides a tool for sending transactional emails via Mailtrap

Setup

Claude Desktop or Cursor

Add the following configuration:

{
  "mcpServers": {
    "mailtrap": {
      "command": "npx",
      "args": ["-y", "mcp-mailtrap"],
      "env": {
        "MAILTRAP_API_TOKEN": "your_mailtrap_api_token",
        "DEFAULT_FROM_EMAIL": "your_sender@example.com"
      }
    }
  }
}

If you are using asdf for managing Node.js you must use absolute path to executable (example for Mac)

mailtrap-mcp FAQ

How do I configure mailtrap-mcp with my API token?
Set the MAILTRAP_API_TOKEN environment variable with your Mailtrap API token in the MCP server configuration.
Can mailtrap-mcp be used with multiple MCP hosts?
Yes, it can be integrated with any MCP host that supports external MCP servers, such as Claude Desktop or Cursor.
Is mailtrap-mcp suitable for production email sending?
It is primarily designed for development and testing environments using Mailtrap's sandbox, not for production email delivery.
How do I specify the sender email address?
Use the DEFAULT_FROM_EMAIL environment variable in the server configuration to set the default sender address.
Does mailtrap-mcp support email template management?
It focuses on sending emails; template management should be handled externally or via Mailtrap's dashboard.
What programming languages can interact with mailtrap-mcp?
Any language or tool that can communicate with MCP servers can use mailtrap-mcp, as it exposes email sending functionality via MCP protocol.
How is security handled for email sending?
Security is managed via API tokens and environment variables, ensuring only authorized email sending through Mailtrap.
Can I test email sending without sending real emails?
Yes, Mailtrap provides a sandbox environment to capture emails without delivering them to real recipients.