Mailtrap
Official MCP Server for Mailtrap
Connector by mailtrap.ioOfficial · Domain verified by the MCP Registry
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.
About
Use cases: email, marketing-content
Reviews
Write a reviewNo 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-tokenget-billing-usageget-company-infoget-contactget-contact-exportget-contact-fieldget-contact-importget-contact-listget-email-campaignget-email-campaign-statsget-email-log-messageget-inbound-folder
Show 43 more tools
get-inbound-forward-ruleget-inbound-inboxget-inbound-messageget-inbound-threadget-permission-resourcesget-sandbox-attachmentget-sandbox-inboxget-sandbox-message-emlget-sandbox-message-headersget-sandbox-message-htmlget-sandbox-message-html-analysisget-sandbox-message-html-sourceget-sandbox-message-rawget-sandbox-message-spam-scoreget-sandbox-message-textget-sandbox-messagesget-sandbox-projectget-sending-domainget-sending-statsget-templateget-webhooklist-account-accesseslist-accountslist-api-tokenslist-contact-fieldslist-contact-listslist-email-campaignslist-email-logslist-inbound-folderslist-inbound-forward-ruleslist-inbound-inboxeslist-inbound-messageslist-inbound-threadslist-sandbox-attachmentslist-sandbox-projectslist-sandboxeslist-sending-domainslist-sub-accountslist-suppressionslist-templateslist-tracking-opt-outslist-webhooksshow-sandbox-email-message
Write 30 · Create, change, send or run things.
batch-send-bulk-emailbatch-send-sandbox-emailbatch-send-transactional-emailcreate-api-tokencreate-company-infocreate-contactcreate-contact-eventcreate-contact-exportcreate-contact-fieldcreate-contact-importcreate-contact-listcreate-email-campaign
Show 18 more tools
create-inbound-foldercreate-inbound-forward-rulecreate-inbound-inboxcreate-sandbox-inboxcreate-sandbox-projectcreate-sending-domaincreate-sub-accountcreate-suppressioncreate-templatecreate-tracking-opt-outcreate-webhookforward-inbound-messageforward-sandbox-messagereply-all-to-inbound-messagereply-to-inbound-messagesend-emailsend-sandbox-emailsend-sending-domain-setup-instructions
Delete 45 · Delete, drop, revoke or wipe things.
bulk-update-permissionscancel-email-campaignclean-sandbox-inboxdelete-api-tokendelete-contactdelete-contact-fielddelete-contact-listdelete-email-campaigndelete-inbound-folderdelete-inbound-forward-ruledelete-inbound-inboxdelete-inbound-message
Show 33 more tools
delete-inbound-threaddelete-sandbox-inboxdelete-sandbox-messagedelete-sandbox-projectdelete-sending-domaindelete-suppressiondelete-templatedelete-tracking-opt-outdelete-webhookenable-sandbox-email-addressmark-sandbox-as-readremove-account-accessreset-api-tokenreset-email-campaignreset-sandbox-credentialsreset-sandbox-email-addressschedule-email-campaignstart-email-campaignterminate-email-campaignupdate-company-infoupdate-contactupdate-contact-fieldupdate-contact-listupdate-email-campaignupdate-inbound-folderupdate-inbound-forward-ruleupdate-inbound-inboxupdate-sandbox-inboxupdate-sandbox-messageupdate-sandbox-projectupdate-sending-domainupdate-templateupdate-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-emailSend 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-emailSend 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-emailSend 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 dataBulk 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 dataCancel a `scheduled` email campaign, returning it to `draft`; only `scheduled` campaigns can be cancelled.
clean-sandbox-inboxcan change or delete dataDelete all messages from a sandbox inbox without deleting the inbox itself
create-api-tokenCreate 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-infoSet the company info of a sending domain, required for domain compliance verification.
create-contactCreate a new contact. Requires `email`; optionally accepts custom `fields`, `list_ids` to subscribe to, and `unsubscribed` to start in unsubscribed status.
create-contact-eventRecord a contact event (by `name` + arbitrary `params`) against a contact ID or email. Used to trigger automations.
create-contact-exportExport 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-fieldCreate a new contact field definition. `merge_tag` must be unique and is used in template variables.
create-contact-importBulk import contacts. Returns an import job record; poll status via `get-contact-import`.
create-contact-listCreate a new contact list.
create-email-campaignCreate 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-folderCreate a new inbound folder.
create-inbound-forward-ruleCreate a forward rule on an inbound inbox. Received messages matching all `conditions` (none = every message) are forwarded to the `destinations`.
create-inbound-inboxCreate 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-inboxCreate a new sandbox test inbox within a project. Returns SMTP credentials for the new inbox.
create-sandbox-projectCreate a new sandbox project to group test inboxes
create-sending-domainCreate a new sending domain
create-sub-accountCreate a new sub-account under the organization. Requires `MAILTRAP_ORGANIZATION_ID` and sub-account management permissions.
create-suppressionAdd an email address to the account's suppression list, so Mailtrap stops delivering to it.
create-templateCreate a new email template
create-tracking-opt-outExclude an email address from open and click tracking for a sending domain.
create-webhookCreate 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 dataPermanently delete an API token by ID. The token can no longer authenticate after deletion.
delete-contactcan change or delete dataPermanently delete a contact by ID or email. Returns the deleted contact record when available.
delete-contact-fieldcan change or delete dataPermanently delete a contact field definition by ID.
delete-contact-listcan change or delete dataPermanently delete a contact list by ID.
delete-email-campaigncan change or delete dataDelete an email campaign by ID; only a campaign in the `draft` state can be deleted.
delete-inbound-foldercan change or delete dataPermanently delete an inbound folder along with all of its inboxes.
delete-inbound-forward-rulecan change or delete dataPermanently delete an inbound forward rule.
delete-inbound-inboxcan change or delete dataPermanently delete an inbound inbox.
delete-inbound-messagecan change or delete dataPermanently delete an inbound message.
delete-inbound-threadcan change or delete dataPermanently delete an inbound thread.
delete-sandbox-inboxcan change or delete dataDelete a sandbox inbox and all its messages
delete-sandbox-messagecan change or delete dataDelete a single sandbox message
delete-sandbox-projectcan change or delete dataDelete a sandbox project and all its inboxes
delete-sending-domaincan change or delete dataDelete a sending domain
delete-suppressioncan change or delete dataDelete a suppression by ID. Mailtrap will resume delivery to this email unless it gets suppressed again.
delete-templatecan change or delete dataDelete an existing email template
delete-tracking-opt-outcan change or delete dataRemove an email address from the tracking opt-out list, so open and click tracking applies to it again.
delete-webhookcan change or delete dataPermanently delete a webhook by ID. Returns the deleted webhook record.
enable-sandbox-email-addresscan change or delete dataEnable the receive-by-email address for a sandbox
forward-inbound-messageForward an inbound message to new recipients (at least one `to` is required). Sends a real email.
forward-sandbox-messageForward a sandbox message to an email address (counts against your monthly forwarding quota)
get-api-tokenread-onlyGet an API token by ID. The secret token value is NOT returned here — only the metadata (name, last 4 digits, resources).
get-billing-usageread-onlyGet the current billing cycle usage for the account (sending and testing plans, limits, and current counts).
get-company-inforead-onlyGet the company info of a sending domain, used for domain compliance verification.
get-contactread-onlyGet a contact by ID or email address. Returns the full contact record including list memberships, status, and custom fields.
get-contact-exportread-onlyGet the status of a contact export job. Once `status` is `finished`, the `url` field holds the download link.
get-contact-fieldread-onlyGet a contact field definition by ID.
get-contact-importread-onlyGet the status of a contact import job, including created/updated/over-limit counts.
get-contact-listread-onlyGet a contact list by ID.
get-email-campaignread-onlyGet an email campaign by ID.
get-email-campaign-statsread-onlyGet aggregated performance statistics for an email campaign; optionally narrow the window with `start_date`/`end_date` (`YYYY-MM-DD`).
get-email-log-messageread-onlyGet a single email log message by ID (UUID) to inspect delivery status and event history.
get-inbound-folderread-onlyGet a single inbound folder by ID.
get-inbound-forward-ruleread-onlyGet a single inbound forward rule by ID, with its conditions and destinations.
get-inbound-inboxread-onlyGet a single inbound inbox by ID.
get-inbound-messageread-onlyGet a single inbound message with its full body and attachment download URLs.
get-inbound-threadread-onlyGet a single inbound thread with its messages embedded (oldest first).
get-permission-resourcesread-onlyGet all resources (inboxes, projects, domains, billing, account) to which the API token has admin access, nested by hierarchy.
get-sandbox-attachmentread-onlyGet the metadata and download URL for a single sandbox attachment.
get-sandbox-inboxread-onlyGet sandbox inbox details including SMTP credentials, email counts, and status
get-sandbox-message-emlread-onlyGet a sandbox message as an EML file payload.
get-sandbox-message-headersread-onlyGet the parsed mail headers for a sandbox message.
get-sandbox-message-htmlread-onlyGet the rendered HTML body of a sandbox message.
get-sandbox-message-html-analysisread-onlyGet HTML analysis for a sandbox message (client compatibility, problematic elements).
get-sandbox-message-html-sourceread-onlyGet the unrendered HTML source of a sandbox message.
get-sandbox-message-rawread-onlyGet the raw message (MIME-formatted) for a sandbox message.
get-sandbox-message-spam-scoreread-onlyGet the SpamAssassin spam report for a sandbox message (score, rules, report).
get-sandbox-message-textread-onlyGet the plain-text body of a sandbox message.
get-sandbox-messagesread-onlyGet list of messages from the sandbox test inbox
get-sandbox-projectread-onlyGet a sandbox project by ID, including its inboxes and email counts
get-sending-domainread-onlyGet a sending domain by ID and its verification status. Optionally include DNS setup instructions via include_setup_instructions.
get-sending-statsread-onlyGet 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-onlyGet a single email template by ID, including subject, category, and HTML/text body.
get-webhookread-onlyGet a single webhook by ID.
list-account-accessesread-onlyList 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-onlyList Mailtrap accounts accessible to the API token, with each account's access levels.
list-api-tokensread-onlyList all API tokens for the account.
list-contact-fieldsread-onlyList all contact field definitions for the account.
list-contact-listsread-onlyList all contact lists for the account. Optionally filter by name with `search` (case-insensitive match).
list-email-campaignsread-onlyList the account's email campaigns, newest first, with page-token pagination (`token`, `per_page`). Optionally filter by name with `search`.
list-email-logsread-onlyList sent email logs (delivery history) with optional pagination and filters; use to debug delivery issues.
list-inbound-foldersread-onlyList all inbound folders in the account.
list-inbound-forward-rulesread-onlyList the forward rules of an inbound inbox. Forward rules automatically forward copies of received messages to other addresses.
list-inbound-inboxesread-onlyList all inboxes in an inbound folder.
list-inbound-messagesread-onlyList received messages in an inbound inbox (paginated). Pass `last_id` from a previous response to fetch the next page.
list-inbound-threadsread-onlyList 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-onlyList all attachments on a sandbox message.
list-sandbox-projectsread-onlyList all sandbox projects and their inboxes in your Mailtrap account
list-sandboxesread-onlyList all sandboxes accessible to the API token across projects
list-sending-domainsread-onlyList sending domains and their DNS verification status
list-sub-accountsread-onlyList sub-accounts in the organization. Requires `MAILTRAP_ORGANIZATION_ID` env var and sub-account management permissions.
list-suppressionsread-onlyList or search suppressions. Optionally filter by email. Returns up to 1000 suppressions per call.
list-templatesread-onlyList 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-onlyList email addresses excluded from open and click tracking. Returns up to 1000 records per call.
list-webhooksread-onlyList all webhooks for the account.
mark-sandbox-as-readcan change or delete dataMark all messages in a sandbox as read
remove-account-accesscan change or delete dataRemove 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-messageReply to an inbound message and copy the original's other recipients. Sends a real email.
reply-to-inbound-messageReply to an inbound message (sends to the original sender). Sends a real email.
reset-api-tokencan change or delete dataReset (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 dataReset a `scheduled` email campaign back to `draft`; only `scheduled` campaigns can be reset.
reset-sandbox-credentialscan change or delete dataReset the SMTP credentials for a sandbox
reset-sandbox-email-addresscan change or delete dataGenerate a new receive-by-email address for a sandbox
schedule-email-campaigncan change or delete dataSchedule 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-emailSend an email to your recipient email address using Mailtrap Email API. You can send emails to multiple recipients at once.
send-sandbox-emailSend an email in sandbox mode to a test inbox without delivering to your recipients
send-sending-domain-setup-instructionsEmail DNS setup instructions for a sending domain to a given address.
show-sandbox-email-messageread-onlyShow 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 dataStart sending a `draft` email campaign immediately; only `draft` campaigns can be started.
terminate-email-campaigncan change or delete dataTerminate an email campaign that is currently sending (`started`, `queued`, or `paused`), aborting the in-flight send.
update-company-infocan change or delete dataUpdate the company info of a sending domain.
update-contactcan change or delete dataUpdate 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 dataUpdate a contact field definition. Any combination of `name`, `merge_tag`, or `data_type` can be changed.
update-contact-listcan change or delete dataRename an existing contact list.
update-email-campaigncan change or delete dataUpdate a `draft` email campaign; only the provided fields change, and campaigns in any other state cannot be updated.
update-inbound-foldercan change or delete dataRename an inbound folder.
update-inbound-forward-rulecan change or delete dataUpdate 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 dataRename an inbound inbox.
update-sandbox-inboxcan change or delete dataUpdate a sandbox inbox name or email username
update-sandbox-messagecan change or delete dataMark a sandbox message as read or unread
update-sandbox-projectcan change or delete dataRename an existing sandbox project
update-sending-domaincan change or delete dataUpdate a sending domain's tracking and inbound settings.
update-templatecan change or delete dataUpdate an existing email template
update-webhookcan change or delete dataUpdate 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
- Repository
- github.com/mailtrap/mailtrap-mcp
- 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)