Mailtrap MCP server

Connect Mailtrap to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Mailtrap MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the get email log tool in Mailtrap
  • Use the list sandbox inboxes tool in Mailtrap
  • Use the list sandbox projects tool in Mailtrap
  • Use the list sandbox messages tool in Mailtrap
  • Use the list email logs tool in Mailtrap
  • Use the manage contact tool in Mailtrap

Supported Tools

get_email_log

Get Email Log

Get detailed information about a specific sent email by its message ID. Returns full delivery details including status, events (delivery, open, click, bounce, spam, etc.), and a temporary URL to download the raw message.

list_sandbox_inboxes

List Sandbox Inboxes

Discover accessible sandbox inbox IDs, names, project memberships, and message counts. Pass an inbox ID to list_sandbox_messages or get_sandbox_message.

list_sandbox_projects

List Sandbox Projects

List all sandbox projects and their inboxes. Projects contain sandbox inboxes where test emails are captured. Use this to discover inbox IDs needed for other sandbox operations.

list_sandbox_messages

List Sandbox Messages

List emails captured in a Mailtrap sandbox inbox. Use this to inspect test emails during development without sending to real recipients. Supports search and pagination.

list_email_logs

List Email Logs

Search and retrieve individual email delivery logs. Each log entry includes message status, subject, sender/recipient, sending stream, category, open/click counts, and related events. Supports filtering by date range, recipient, sender, subject, status, stream, and category.

manage_contact

Manage Contact

Create, retrieve, update, or delete a contact in your Mailtrap account. Contacts can be assigned to lists and have custom fields (e.g., name, location, date of birth) for personalized campaigns.

list_accounts

List Accounts

List all Mailtrap accounts accessible with the current API token. Returns account IDs, names, and access levels. Useful for discovering account IDs needed by other tools.

manage_sending_domain

Manage Sending Domain

List, create, retrieve, or delete sending domains. Domains must be verified via DNS before you can send emails. Each domain requires a compliance check after DNS verification.

manage_suppressions

Manage Suppressions

List or remove email suppression entries. Suppressions are created automatically when hard bounces, unsubscribes, or spam complaints occur. Suppressed addresses cannot receive emails. Removing a suppression reactivates the address for sending.

manage_contact_list

Manage Contact List

Create, list, update, or delete contact lists. Contact lists organize contacts into targeted groups for sending campaigns. Use this to manage your email list segmentation.

send_transactional_email

Send Transactional Email

Send a transactional email triggered by user actions such as password resets, welcome emails, or order confirmations. Supports plain text, HTML content, or pre-built templates with variable substitution. Emails can include attachments, custom headers, categories for analytics, and custom variables for tracking.

send_bulk_email

Send Bulk Email

Send a bulk/promotional email using Mailtrap's dedicated bulk infrastructure. Designed for marketing campaigns, newsletters, and non-transactional emails. Sending through the bulk stream protects your transactional email reputation. Mailtrap automatically adds unsubscribe headers.

list_contacts

List Contacts

Search contacts by email substring, subscription status, or contact list. Returns contact IDs, fields, membership, and a cursor for the next page.

get_sandbox_message

Get Sandbox Message

Retrieve detailed information about a specific email in a sandbox inbox, including its HTML/text body, spam report, HTML analysis, and attachments. Can also mark messages as read, delete them, or forward them to a real email address.

get_email_stats

Get Email Stats

Retrieve delivery statistics for your sent emails over a date range. Includes metrics like delivery count/rate, open count/rate, click count/rate, bounce count/rate, and spam complaint count/rate. Can optionally group results by date, domain, category, or email service provider.

Connect Mailtrap to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Mailtrap in Metorial. In your Metorial portal, enable the Mailtrap MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Mailtrap tools.

Run Mailtrap through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Mailtrap and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Mailtrap tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Mailtrap

Slack

Slack: connect with bot OAuth or user OAuth to work with messages, conversations, search, files, Canvases, Lists, profiles, reactions, reminders, and workspace productivity settings.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Apolloio

Search and prospect B2B contacts and companies from a database of over 275 million people and 70 million organizations. Enrich people and company data with emails, phone numbers, and firmographic details. Create and manage contacts, accounts, deals, and tasks. Add contacts to email sequences and manage sequence statuses. Log and search call records. Perform bulk operations for contact creation, account creation, task creation, and data enrichment.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Microsoft Outlook

Send, read, reply to, forward, and manage email messages in user mailboxes. Organize messages into folders, apply categories, flags, and importance levels. Manage file and item attachments. Create, update, delete, and respond to calendar events and meetings. Find available meeting times, manage attendees, handle recurrence, and work with shared or delegated calendars. Create, read, update, and delete contacts, organize them into contact folders, and manage contact photos. Manage tasks and task lists via Microsoft To Do, including due dates, reminders, recurrence, and checklist items. Subscribe to webhook notifications for changes to messages, calendar events, and contacts. Support for Focused Inbox, @-mentions, mail tips, send-on-behalf, and send-as capabilities.

Hubspot

Create, read, update, and delete CRM objects including contacts, companies, deals, tickets, and custom objects. Manage associations between CRM records. Track engagements such as calls, emails, meetings, notes, and tasks. Send transactional and marketing emails, manage campaigns, and handle subscription preferences. Build and manage marketing workflows, sequences, and automation actions. Manage CMS content including blog posts, landing pages, and HubDB tables. Handle commerce data including products, orders, invoices, quotes, and payments. Create and manage contact lists for segmentation. Configure deal, ticket, and order pipelines with custom stages. Search and filter CRM records. Bulk import and export CRM data. Manage users, teams, and account settings.

Technical notes for Mailtrap

Send transactional and bulk emails, manage email templates, and test emails in a sandbox environment. Create and organize contact lists, build dynamic segments, and manage suppressions. Track delivery statistics including open rates, click rates, bounces, and spam complaints. Manage sending domains, email logs, webhooks for real-time event notifications, and account access permissions.

Frequently asked questions

Common questions about connecting Mailtrap to AI agents with Metorial.

  1. How many tools does the Mailtrap MCP server have?
    The Mailtrap MCP server exposes 15 tools, including Get Email Log, List Sandbox Inboxes, List Sandbox Projects. Each one is governed and traced through Metorial.
  2. Mailtrap exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Mailtrap MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Mailtrap and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Mailtrap MCP server yourself or use the hosted gateway.

Connect Mailtrap to production AI agents

See how Metorial gives your team governed access to Mailtrap, with tracing and security controls built in.