Communication · Developer Tools

Mailtrap MCP logo

Mailtrap MCP

railsware/mailtrap-mcp

The official MCP server for Mailtrap — the email delivery platform. It connects your Mailtrap account to Claude, Cursor, VS Code, and other MCP-compatible AI assistants.

Install

npx -y mcp-mailtrap

Client configuration

{
  "mcpServers": {
    "mailtrap": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mailtrap"
      ],
      "env": {
        "MAILTRAP_API_TOKEN": "<MAILTRAP_API_TOKEN>",
        "DEFAULT_FROM_EMAIL": "<DEFAULT_FROM_EMAIL>",
        "MAILTRAP_ACCOUNT_ID": "<MAILTRAP_ACCOUNT_ID>",
        "MAILTRAP_SANDBOX_ID": "<MAILTRAP_SANDBOX_ID>"
      }
    }
  }
}

Environment variables

MAILTRAP_API_TOKENDEFAULT_FROM_EMAILMAILTRAP_ACCOUNT_IDMAILTRAP_SANDBOX_IDASDF_DIRASDF_DATA_DIRASDF_NODEJS_VERSION
GitHub stars
21
Category
Communication, Developer Tools
License
MIT
Updated
Oct 6, 2026

About Mailtrap MCP

Send transactional and bulk email, test messages safely in Email Sandbox, manage templates, contacts, sending domains, and webhooks, inspect email logs and delivery statistics, troubleshoot deliverability, and manage account resources — all using natural-language prompts.

Features

  • Email API and SMTP — Send transactional and bulk email, including batch and template-based messages.

  • Email testing — Test messages in Email Sandbox and inspect content, headers, attachments, spam scores, and HTML client compatibility.

  • Delivery monitoring — Search email logs, inspect event history, and analyze delivery, bounce, open, click, and spam rates.

  • Email infrastructure — Manage sending domains, DNS verification, webhooks, and suppressions.

  • Contacts — Manage contacts, lists, custom fields, and events, with imports and exports.

  • Account management — Review billing usage and manage access, permissions, API tokens, and sub-accounts.

Tools (40)

  • send-email

    Sends a transactional email through Mailtrap.

  • batch-send-transactional-email

    Sends a batch of transactional emails in one Mailtrap API call (default sending stream).

  • batch-send-bulk-email

    Sends a batch of bulk emails through Mailtrap's bulk-stream API.

  • list-email-logs

    Lists sent email logs (delivery history) with optional pagination and filters.

  • get-email-log-message

    Gets a single email log message by ID (UUID): a readable summary (from, to, subject, sent time, status, category, stream, engagement, delivery context), then…

  • get-sending-stats

    Get email sending statistics (delivery, bounce, open, click, spam rates) for a date range.

  • create-template

    Creates a new email template in your Mailtrap account.

  • list-templates

    Lists all email templates in your Mailtrap account.

  • get-template

    Get a single email template by ID, including subject, category, and HTML/text body.

  • update-template

    Updates an existing email template.

  • delete-template

    Deletes an existing email template.

  • send-sandbox-email

    Sends an email to your Mailtrap test inbox for development and testing purposes.

  • batch-send-sandbox-email

    Sends a batch of emails to your Mailtrap test inbox in one API call, without delivering to real recipients.

  • get-sandbox-messages

    Retrieves a list of messages from your Mailtrap test inbox.

  • show-sandbox-email-message

    Shows detailed information and content of a specific email message from your Mailtrap test inbox, including HTML and text body content.

  • get-sandbox-project

    Get a sandbox project by ID, including its inboxes and email counts.

  • update-sandbox-project

    Rename an existing sandbox project.

  • list-sandboxes

    List every sandbox accessible to the API token across all projects.

  • mark-sandbox-as-read

    Mark all messages in a sandbox as read.

  • reset-sandbox-credentials

    Reset the SMTP credentials for a sandbox.

  • enable-sandbox-email-address

    Enable the receive-by-email address for a sandbox (turns on the Mailtrap address that delivers messages to the sandbox via SMTP).

  • reset-sandbox-email-address

    Generate a new receive-by-email address for a sandbox.

  • forward-sandbox-message

    Forward a sandbox message to an external email address.

  • update-sandbox-message

    Mark a sandbox message as read or unread.

  • delete-sandbox-message

    Delete a single sandbox message.

  • get-sandbox-message-spam-score

    Get the SpamAssassin spam report for a sandbox message (score, rules, full report).

  • get-sandbox-message-html-analysis

    Get the HTML analysis report for a sandbox message (client compatibility scores, problematic elements).

  • get-sandbox-message-headers

    Get the parsed mail headers for a sandbox message.

  • get-sandbox-message-html

    Get the rendered HTML body of a sandbox message.

  • get-sandbox-message-text

    Get the plain-text body of a sandbox message.

  • get-sandbox-message-raw

    Get the raw, MIME-formatted message (headers + body) for a sandbox message.

  • get-sandbox-message-eml

    Get the message rendered as an EML file payload (suitable for attaching to a ticket or importing into another mail client).

  • get-sandbox-message-html-source

    Get the unrendered HTML source of a sandbox message (HTML before any Mailtrap-side transformations like CID-link rewrites).

  • list-sandbox-attachments

    List all attachments on a sandbox message (filename, content type, size, download path).

  • get-sandbox-attachment

    Get metadata and download URL for a single attachment.

  • list-sending-domains

    List sending domains and their DNS verification status.

  • get-sending-domain

    Get a sending domain by ID and its verification status (including DNS records).

  • create-sending-domain

    Create a new sending domain.

  • update-sending-domain

    Update a sending domain's tracking and inbound settings.

  • delete-sending-domain

    Delete a sending domain.

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

Desktop · Freemium · MIT

VS Code integrates MCP with GitHub Copilot through agent mode, allowing direct interaction with MCP-provided tools in your agentic coding workflow. Configure servers in Claude Desktop, workspace, or user settings, with guided MCP installation and secure handling of secrets in input variables to avoid leaking hardcoded keys.

WindowsMacOSLinuxWeb

Related MCP servers

More servers
Inbox Zero AI MCP logo

Inbox Zero AI MCP

elie222/inbox-zero

7.1k

To help you spend less time in your inbox, so you can focus on what matters most.

Communication
whatsapp logo

whatsapp

lharries/whatsapp-mcp

3.6k

This is a Model Context Protocol (MCP) server for WhatsApp.

Communication
Apple MCP Server logo

Apple MCP Server

Dhravya/apple-mcp

1.5k

Apple MCP toolset is a collection of Apple native tools based on the MCP protocol, providing integration services for Messages, Notes, Contacts, Mail, Reminders, Calendar and other Apple ecosystem features.

Communication
supergateway logo

supergateway

supercorp-ai/supergateway

1.1k

Supergateway runs MCP stdio-based servers over SSE (Server-Sent Events) or WebSockets (WS) with one command. This is useful for remote access, debugging, or connecting to clients when your MCP server only supports stdio.

Communication
Line Bot MCP Server logo

Line Bot MCP Server

line/line-bot-mcp-server

338

Model Context Protocol (MCP) server implementation that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

Communication
MCP Send Email logo

MCP Send Email

resend/mcp-send-email

325

Connect your AI agent to the Resend platform. Send and receive emails, manage contacts, broadcasts, domains, and more, directly from any MCP client like Claude, Cursor, or Claude Code.

Communication