Skip to content
Agentmart
Submit a tool

Mailtrap

Official MCP Server for Mailtrap

Connector by mailtrap.ioOfficial · Domain verified by the MCP Registry

IndexedMITLocal (stdio)★ 66
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/mailtrap-io-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Official MCP Server for Mailtrap

Use cases: email, marketing-content

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
55 read · 30 write · 45 delete
Secrets
1 (API keys, tokens or passwords)
Install scripts
None found
Runs as
Node.js package

Tools by what they do 130

Read from the source code; the running server may list different tools.

Read 55 · Look things up without changing anything.

  • get-api-token
  • get-billing-usage
  • get-company-info
  • get-contact
  • get-contact-export
  • get-contact-field
  • get-contact-import
  • get-contact-list
  • get-email-campaign
  • get-email-campaign-stats
  • get-email-log-message
  • get-inbound-folder
Show 43 more tools
  • get-inbound-forward-rule
  • get-inbound-inbox
  • get-inbound-message
  • get-inbound-thread
  • get-permission-resources
  • get-sandbox-attachment
  • get-sandbox-inbox
  • get-sandbox-message-eml
  • get-sandbox-message-headers
  • get-sandbox-message-html
  • get-sandbox-message-html-analysis
  • get-sandbox-message-html-source
  • get-sandbox-message-raw
  • get-sandbox-message-spam-score
  • get-sandbox-message-text
  • get-sandbox-messages
  • get-sandbox-project
  • get-sending-domain
  • get-sending-stats
  • get-template
  • get-webhook
  • list-account-accesses
  • list-accounts
  • list-api-tokens
  • list-contact-fields
  • list-contact-lists
  • list-email-campaigns
  • list-email-logs
  • list-inbound-folders
  • list-inbound-forward-rules
  • list-inbound-inboxes
  • list-inbound-messages
  • list-inbound-threads
  • list-sandbox-attachments
  • list-sandbox-projects
  • list-sandboxes
  • list-sending-domains
  • list-sub-accounts
  • list-suppressions
  • list-templates
  • list-tracking-opt-outs
  • list-webhooks
  • show-sandbox-email-message

Write 30 · Create, change, send or run things.

  • batch-send-bulk-email
  • batch-send-sandbox-email
  • batch-send-transactional-email
  • create-api-token
  • create-company-info
  • create-contact
  • create-contact-event
  • create-contact-export
  • create-contact-field
  • create-contact-import
  • create-contact-list
  • create-email-campaign
Show 18 more tools
  • create-inbound-folder
  • create-inbound-forward-rule
  • create-inbound-inbox
  • create-sandbox-inbox
  • create-sandbox-project
  • create-sending-domain
  • create-sub-account
  • create-suppression
  • create-template
  • create-tracking-opt-out
  • create-webhook
  • forward-inbound-message
  • forward-sandbox-message
  • reply-all-to-inbound-message
  • reply-to-inbound-message
  • send-email
  • send-sandbox-email
  • send-sending-domain-setup-instructions

Delete 45 · Delete, drop, revoke or wipe things.

  • bulk-update-permissions
  • cancel-email-campaign
  • clean-sandbox-inbox
  • delete-api-token
  • delete-contact
  • delete-contact-field
  • delete-contact-list
  • delete-email-campaign
  • delete-inbound-folder
  • delete-inbound-forward-rule
  • delete-inbound-inbox
  • delete-inbound-message
Show 33 more tools
  • delete-inbound-thread
  • delete-sandbox-inbox
  • delete-sandbox-message
  • delete-sandbox-project
  • delete-sending-domain
  • delete-suppression
  • delete-template
  • delete-tracking-opt-out
  • delete-webhook
  • enable-sandbox-email-address
  • mark-sandbox-as-read
  • remove-account-access
  • reset-api-token
  • reset-email-campaign
  • reset-sandbox-credentials
  • reset-sandbox-email-address
  • schedule-email-campaign
  • start-email-campaign
  • terminate-email-campaign
  • update-company-info
  • update-contact
  • update-contact-field
  • update-contact-list
  • update-email-campaign
  • update-inbound-folder
  • update-inbound-forward-rule
  • update-inbound-inbox
  • update-sandbox-inbox
  • update-sandbox-message
  • update-sandbox-project
  • update-sending-domain
  • update-template
  • update-webhook

Secrets and settings it asks for

Secrets: values you paste in that let it act as you.

  • MAILTRAP_API_TOKEN

Other settings (environment variables or headers).

  • MAILTRAP_ACCOUNT_ID

Tools (130)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • batch-send-bulk-email

    Send a batch of bulk emails (Mailtrap bulk-stream API) in one call. Shared fields go on `base`; per-recipient overrides go in `requests[]`. Each request must include at least one of `to`/`cc`/`bcc`.

  • batch-send-sandbox-email

    Send a batch of emails in sandbox mode to a test inbox in one Mailtrap API call. Shared fields go on `base`; per-recipient overrides go in `requests[]`. Requires `sandbox_id` or the MAILTRAP_SANDBOX_ID env var.

  • batch-send-transactional-email

    Send a batch of transactional emails in one Mailtrap API call. Shared fields go on `base`; per-recipient overrides go in `requests[]`. Each request must include `to`.

  • bulk-update-permissionscan change or delete data

    Bulk create, update, or destroy permissions for an account access. Existing (resource_type, resource_id) pairs are updated; new ones are created. Set `destroy: true` to remove.

  • cancel-email-campaigncan change or delete data

    Cancel a `scheduled` email campaign, returning it to `draft`; only `scheduled` campaigns can be cancelled.

  • clean-sandbox-inboxcan change or delete data

    Delete all messages from a sandbox inbox without deleting the inbox itself

  • create-api-token

    Create a new API token. The response includes the secret `token` value — this is the **only time** the full token is returned, so store it immediately.

  • create-company-info

    Set the company info of a sending domain, required for domain compliance verification.

  • create-contact

    Create a new contact. Requires `email`; optionally accepts custom `fields`, `list_ids` to subscribe to, and `unsubscribed` to start in unsubscribed status.

  • create-contact-event

    Record a contact event (by `name` + arbitrary `params`) against a contact ID or email. Used to trigger automations.

  • create-contact-export

    Export contacts matching a set of AND-combined filters. Returns an export job; poll status with `get-contact-export` to retrieve the download URL.

  • create-contact-field

    Create a new contact field definition. `merge_tag` must be unique and is used in template variables.

  • create-contact-import

    Bulk import contacts. Returns an import job record; poll status via `get-contact-import`.

  • create-contact-list

    Create a new contact list.

  • create-email-campaign

    Create a new email campaign in the `draft` state; requires `name`, `domain_id`, `from_local_part`, and a `template_attributes.subject`.

Show 115 more tools
  • create-inbound-folder

    Create a new inbound folder.

  • create-inbound-forward-rule

    Create a forward rule on an inbound inbox. Received messages matching all `conditions` (none = every message) are forwarded to the `destinations`.

  • create-inbound-inbox

    Create a new inbound inbox in a folder. Omit `domain_id` for a Mailtrap-hosted inbox; pass it for a custom-domain (catch-all) inbox.

  • create-sandbox-inbox

    Create a new sandbox test inbox within a project. Returns SMTP credentials for the new inbox.

  • create-sandbox-project

    Create a new sandbox project to group test inboxes

  • create-sending-domain

    Create a new sending domain

  • create-sub-account

    Create a new sub-account under the organization. Requires `MAILTRAP_ORGANIZATION_ID` and sub-account management permissions.

  • create-suppression

    Add an email address to the account's suppression list, so Mailtrap stops delivering to it.

  • create-template

    Create a new email template

  • create-tracking-opt-out

    Exclude an email address from open and click tracking for a sending domain.

  • create-webhook

    Create a webhook. `webhook_type` may be `email_sending`, `audit_log`, or `inbound_receiving`; for `inbound_receiving`, `inbound_inbox_id` is optional (scopes the webhook to one inbox — omit to apply to all inboxes). The response includes a `signing_secret` for verifying webhook payload signatures — this secret is returned only on creation, so store it now.

  • delete-api-tokencan change or delete data

    Permanently delete an API token by ID. The token can no longer authenticate after deletion.

  • delete-contactcan change or delete data

    Permanently delete a contact by ID or email. Returns the deleted contact record when available.

  • delete-contact-fieldcan change or delete data

    Permanently delete a contact field definition by ID.

  • delete-contact-listcan change or delete data

    Permanently delete a contact list by ID.

  • delete-email-campaigncan change or delete data

    Delete an email campaign by ID; only a campaign in the `draft` state can be deleted.

  • delete-inbound-foldercan change or delete data

    Permanently delete an inbound folder along with all of its inboxes.

  • delete-inbound-forward-rulecan change or delete data

    Permanently delete an inbound forward rule.

  • delete-inbound-inboxcan change or delete data

    Permanently delete an inbound inbox.

  • delete-inbound-messagecan change or delete data

    Permanently delete an inbound message.

  • delete-inbound-threadcan change or delete data

    Permanently delete an inbound thread.

  • delete-sandbox-inboxcan change or delete data

    Delete a sandbox inbox and all its messages

  • delete-sandbox-messagecan change or delete data

    Delete a single sandbox message

  • delete-sandbox-projectcan change or delete data

    Delete a sandbox project and all its inboxes

  • delete-sending-domaincan change or delete data

    Delete a sending domain

  • delete-suppressioncan change or delete data

    Delete a suppression by ID. Mailtrap will resume delivery to this email unless it gets suppressed again.

  • delete-templatecan change or delete data

    Delete an existing email template

  • delete-tracking-opt-outcan change or delete data

    Remove an email address from the tracking opt-out list, so open and click tracking applies to it again.

  • delete-webhookcan change or delete data

    Permanently delete a webhook by ID. Returns the deleted webhook record.

  • enable-sandbox-email-addresscan change or delete data

    Enable the receive-by-email address for a sandbox

  • forward-inbound-message

    Forward an inbound message to new recipients (at least one `to` is required). Sends a real email.

  • forward-sandbox-message

    Forward a sandbox message to an email address (counts against your monthly forwarding quota)

  • get-api-tokenread-only

    Get an API token by ID. The secret token value is NOT returned here — only the metadata (name, last 4 digits, resources).

  • get-billing-usageread-only

    Get the current billing cycle usage for the account (sending and testing plans, limits, and current counts).

  • get-company-inforead-only

    Get the company info of a sending domain, used for domain compliance verification.

  • get-contactread-only

    Get a contact by ID or email address. Returns the full contact record including list memberships, status, and custom fields.

  • get-contact-exportread-only

    Get the status of a contact export job. Once `status` is `finished`, the `url` field holds the download link.

  • get-contact-fieldread-only

    Get a contact field definition by ID.

  • get-contact-importread-only

    Get the status of a contact import job, including created/updated/over-limit counts.

  • get-contact-listread-only

    Get a contact list by ID.

  • get-email-campaignread-only

    Get an email campaign by ID.

  • get-email-campaign-statsread-only

    Get aggregated performance statistics for an email campaign; optionally narrow the window with `start_date`/`end_date` (`YYYY-MM-DD`).

  • get-email-log-messageread-only

    Get a single email log message by ID (UUID) to inspect delivery status and event history.

  • get-inbound-folderread-only

    Get a single inbound folder by ID.

  • get-inbound-forward-ruleread-only

    Get a single inbound forward rule by ID, with its conditions and destinations.

  • get-inbound-inboxread-only

    Get a single inbound inbox by ID.

  • get-inbound-messageread-only

    Get a single inbound message with its full body and attachment download URLs.

  • get-inbound-threadread-only

    Get a single inbound thread with its messages embedded (oldest first).

  • get-permission-resourcesread-only

    Get all resources (inboxes, projects, domains, billing, account) to which the API token has admin access, nested by hierarchy.

  • get-sandbox-attachmentread-only

    Get the metadata and download URL for a single sandbox attachment.

  • get-sandbox-inboxread-only

    Get sandbox inbox details including SMTP credentials, email counts, and status

  • get-sandbox-message-emlread-only

    Get a sandbox message as an EML file payload.

  • get-sandbox-message-headersread-only

    Get the parsed mail headers for a sandbox message.

  • get-sandbox-message-htmlread-only

    Get the rendered HTML body of a sandbox message.

  • get-sandbox-message-html-analysisread-only

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

  • get-sandbox-message-html-sourceread-only

    Get the unrendered HTML source of a sandbox message.

  • get-sandbox-message-rawread-only

    Get the raw message (MIME-formatted) for a sandbox message.

  • get-sandbox-message-spam-scoreread-only

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

  • get-sandbox-message-textread-only

    Get the plain-text body of a sandbox message.

  • get-sandbox-messagesread-only

    Get list of messages from the sandbox test inbox

  • get-sandbox-projectread-only

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

  • get-sending-domainread-only

    Get a sending domain by ID and its verification status. Optionally include DNS setup instructions via include_setup_instructions.

  • get-sending-statsread-only

    Get email sending statistics (delivery, bounce, open, click, spam rates) for a date range. Optionally break down by domain, category, email service provider, or date.

  • get-templateread-only

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

  • get-webhookread-only

    Get a single webhook by ID.

  • list-account-accessesread-only

    List account accesses (users, invites, API tokens) for the account. Optionally scope by domain UUIDs, inbox IDs, or project IDs. Requires account admin/owner permissions.

  • list-accountsread-only

    List Mailtrap accounts accessible to the API token, with each account's access levels.

  • list-api-tokensread-only

    List all API tokens for the account.

  • list-contact-fieldsread-only

    List all contact field definitions for the account.

  • list-contact-listsread-only

    List all contact lists for the account. Optionally filter by name with `search` (case-insensitive match).

  • list-email-campaignsread-only

    List the account's email campaigns, newest first, with page-token pagination (`token`, `per_page`). Optionally filter by name with `search`.

  • list-email-logsread-only

    List sent email logs (delivery history) with optional pagination and filters; use to debug delivery issues.

  • list-inbound-foldersread-only

    List all inbound folders in the account.

  • list-inbound-forward-rulesread-only

    List the forward rules of an inbound inbox. Forward rules automatically forward copies of received messages to other addresses.

  • list-inbound-inboxesread-only

    List all inboxes in an inbound folder.

  • list-inbound-messagesread-only

    List received messages in an inbound inbox (paginated). Pass `last_id` from a previous response to fetch the next page.

  • list-inbound-threadsread-only

    List conversation threads in an inbound inbox (paginated), optionally filtered by `search` (subject or from/to/cc/bcc address). Pass `last_id` from a previous response to fetch the next page.

  • list-sandbox-attachmentsread-only

    List all attachments on a sandbox message.

  • list-sandbox-projectsread-only

    List all sandbox projects and their inboxes in your Mailtrap account

  • list-sandboxesread-only

    List all sandboxes accessible to the API token across projects

  • list-sending-domainsread-only

    List sending domains and their DNS verification status

  • list-sub-accountsread-only

    List sub-accounts in the organization. Requires `MAILTRAP_ORGANIZATION_ID` env var and sub-account management permissions.

  • list-suppressionsread-only

    List or search suppressions. Optionally filter by email. Returns up to 1000 suppressions per call.

  • list-templatesread-only

    List the account's email templates with page-token pagination (`token`, `per_page`). Pages are offsets over the newest-first list, so after deleting templates list again from token 1 instead of continuing with the next token.

  • list-tracking-opt-outsread-only

    List email addresses excluded from open and click tracking. Returns up to 1000 records per call.

  • list-webhooksread-only

    List all webhooks for the account.

  • mark-sandbox-as-readcan change or delete data

    Mark all messages in a sandbox as read

  • remove-account-accesscan change or delete data

    Remove an account access by ID. For User specifiers this revokes permissions; for Invite or ApiToken specifiers it removes the specifier itself. Requires admin/owner.

  • reply-all-to-inbound-message

    Reply to an inbound message and copy the original's other recipients. Sends a real email.

  • reply-to-inbound-message

    Reply to an inbound message (sends to the original sender). Sends a real email.

  • reset-api-tokencan change or delete data

    Reset (rotate) an API token by ID. The response includes the **new** secret `token` value — returned only on this call, so store it immediately. The previous token is invalidated.

  • reset-email-campaigncan change or delete data

    Reset a `scheduled` email campaign back to `draft`; only `scheduled` campaigns can be reset.

  • reset-sandbox-credentialscan change or delete data

    Reset the SMTP credentials for a sandbox

  • reset-sandbox-email-addresscan change or delete data

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

  • schedule-email-campaigncan change or delete data

    Schedule a `draft` email campaign to start sending at `datetime` (ISO 8601, must be in the future and no more than 1 month ahead); only `draft` campaigns can be scheduled.

  • send-email

    Send an email to your recipient email address using Mailtrap Email API. You can send emails to multiple recipients at once.

  • send-sandbox-email

    Send an email in sandbox mode to a test inbox without delivering to your recipients

  • send-sending-domain-setup-instructions

    Email DNS setup instructions for a sending domain to a given address.

  • show-sandbox-email-messageread-only

    Show sandbox email message details and content from the sandbox test inbox. Optionally include spam report (SpamAssassin score) and HTML analysis (client compatibility) for email testing workflows.

  • start-email-campaigncan change or delete data

    Start sending a `draft` email campaign immediately; only `draft` campaigns can be started.

  • terminate-email-campaigncan change or delete data

    Terminate an email campaign that is currently sending (`started`, `queued`, or `paused`), aborting the in-flight send.

  • update-company-infocan change or delete data

    Update the company info of a sending domain.

  • update-contactcan change or delete data

    Update a contact (identified by ID or email). `list_ids` replaces the membership set; `list_ids_included`/`list_ids_excluded` add/remove without disturbing the rest.

  • update-contact-fieldcan change or delete data

    Update a contact field definition. Any combination of `name`, `merge_tag`, or `data_type` can be changed.

  • update-contact-listcan change or delete data

    Rename an existing contact list.

  • update-email-campaigncan change or delete data

    Update a `draft` email campaign; only the provided fields change, and campaigns in any other state cannot be updated.

  • update-inbound-foldercan change or delete data

    Rename an inbound folder.

  • update-inbound-forward-rulecan change or delete data

    Update an inbound forward rule. Only the provided fields change; a provided `conditions` or `destinations` array replaces the whole set (`[]` clears it).

  • update-inbound-inboxcan change or delete data

    Rename an inbound inbox.

  • update-sandbox-inboxcan change or delete data

    Update a sandbox inbox name or email username

  • update-sandbox-messagecan change or delete data

    Mark a sandbox message as read or unread

  • update-sandbox-projectcan change or delete data

    Rename an existing sandbox project

  • update-sending-domaincan change or delete data

    Update a sending domain's tracking and inbound settings.

  • update-templatecan change or delete data

    Update an existing email template

  • update-webhookcan change or delete data

    Update a webhook's mutable fields (`url`, `active`, `payload_format`, `event_types`, `inbound_inbox_id`). `webhook_type`, `sending_stream`, and `domain_id` cannot be changed after creation.

Compare and alternatives

    Featured in

    Signals

    Stars
    66
    Forks
    13
    Open issues
    0
    Contributors
    15
    Last commit
    Oct 12, 2026 (16 days ago)
    Last release
    Oct 9, 2026 (19 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    Registry name
    io.mailtrap/mcp
    Version
    0.9.0
    Auth
    API key
    Packages
    npm mcp-mailtrap
    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026
    Cite this page

    Mailtrap MCP server. Agent Mart. https://agentmart.dev/connectors/mailtrap-io-mcp (last updated 2026-10-24)