Developer Tools

Mailtrap MCP Server

Use Studio chat to drive this server — credentials stay in your workspace.

Mailtrap is a tool designed for safe email testing and development, allowing users to capture, analyze, and debug outgoing email messages before sending them to real recipients. It helps developers ensure emails are formatted correctly and contain the expected content.

10 tools
Agent guide included
API Key
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for Mailtrap — workflow patterns, data models, and gotchas for your AI agent.

Mailtrap

Email testing sandbox that captures outgoing emails in virtual inboxes instead of delivering them. Inspect captured messages, manage test inboxes, and monitor sending domain configuration.

Entity Hierarchy

Everything is scoped by account_id. Always enumerate accounts first to obtain one.

  • Accounts — top-level container. Enumerate accounts to get account_id, which is required for all other operations.
  • Projects — organizational groups within an account. Each project contains inboxes.
  • Inboxes — virtual mailboxes that capture test emails. Requires account_id. Resolve inbox_id before querying messages.
  • Messages — individual captured emails within an inbox. Requires both account_id and inbox_id. Each message has headers, body (HTML/text), attachments, and delivery metadata. Fetch rendered HTML or plain text bodies separately for content inspection.
  • Sending Domains — configured domains for Mailtrap's email sending product. Account-scoped.
  • Billing Usage — current billing cycle usage metrics. Account-scoped.
  • Resources — account resource limits and quotas. Account-scoped.

Workflows

  • Inspect test emails: enumerate accounts → enumerate inboxes (with account_id) → fetch messages (with account_id + inbox_id) → open message metadata → fetch HTML/text body for content inspection.
  • Project organization: enumerate accounts → enumerate projects to see how inboxes are grouped.
  • Domain setup audit: enumerate accounts → enumerate sending domains to review configured sending domains and their verification status.
  • Usage monitoring: enumerate accounts → open billing usage for current consumption metrics.

Gotchas

  • account_id is required everywhere: list accounts first — it's a prerequisite for every other call.
  • inbox_id required for messages: list inboxes before fetching messages. Two-step discovery.
  • Two products: Mailtrap has Email Testing (sandbox inboxes) and Email Sending (transactional delivery). This integration covers the Email Testing API. Sending domains relate to the Email Sending product.
  • Pagination: messages endpoint supports page and per_page params.

Tools in this Server (10)

Mailtrap Fetch Messages

List captured test emails in a Mailtrap inbox — returns subject, from/to, sent date, and SMTP metadata. Use 'page' and 'per_page' for pagination. Requ...

Mailtrap Get Message

Get a specific test email by ID — full details including subject, headers, HTML body, text body, attachments, and SMTP delivery metadata. Requires 'ac...

Mailtrap Get Message Html Body

Get the rendered HTML body of a captured test email. Returns the raw HTML content for inspection. Requires 'account_id', 'inbox_id', and 'message_id'.

Mailtrap Get Message Text Body

Get the plain text body of a captured test email. Returns the text content for inspection. Requires 'account_id', 'inbox_id', and 'message_id'.

Mailtrap List Accounts

Retrieve a list of all available accounts in your Mailtrap profile. Use this tool to manage and gain insights into different accounts under your owner...

Mailtrap List Billing Usage

Access detailed billing usage information for a specific account. This is useful for monitoring account consumption and managing expenses. Requires th...

Mailtrap List Inboxes

List all test inboxes in a Mailtrap account — returns inbox name, SMTP credentials, email counts, and forward addresses. Requires 'account_id'.

Mailtrap List Projects

Retrieve a list of projects associated with a specific account to organize and track email test environments effectively. Use with 'account_id' to gai...

Mailtrap List Resources

List all available resources with assigned permissions for a specified account. Use this to audit which resources are accessible and what permissions ...

Mailtrap List Sending Domains

Fetch a list of approved sending domains for a specific Mailtrap account. Ideal for verifying which domains are configured for sending test emails. Re...

Frequently Asked Questions

What is the Mailtrap MCP server?

Mailtrap is a tool designed for safe email testing and development, allowing users to capture, analyze, and debug outgoing email messages before sending them to real recipients. It helps developers ensure emails are formatted correctly and contain the expected content. It provides 10 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Mailtrap to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/mailtrap. Authentication is handled automatically.

How many tools does Mailtrap provide?

Mailtrap provides 10 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does Mailtrap require?

Mailtrap uses API Key. Mailtrap requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect Mailtrap to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/mailtrap

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to chat with Mailtrap?

Same flow: Studio opens on this server after sign-in. Keep chatting to call tools from the conversation.

Mailtrap MCP Server & Skill — 10 Tools