Mailtrap
MCP-Server von Mailtrap
Send transactional and bulk email, test messages in sandbox inboxes, and manage templates, domains, contacts and webhooks in Mailtrap.
Mailtrap installieren
Läuft auf deinem Rechner. Dein Client startet ihn mit diesem Befehl:
Braucht Node.js auf deinem Rechner. Die Schritte unten zeigen, wo der Befehl in jedem Client hingehört.
MAILTRAP_API_TOKENgeheim Mailtrap API token from https://mailtrap.io/api-tokensMAILTRAP_ACCOUNT_IDoptional Mailtrap account ID from https://mailtrap.io/account-management
Diesen Server teilen
Öffnet diese Seite, mit dem Installationsbefehl und den Einrichtungsschritten.
mcp.tc/i/mailtrapÜber den Server
Connects an assistant to a Mailtrap account. It can send transactional and bulk email, including batches, test messages in Email Sandbox inboxes, and inspect spam scores, headers and HTML compatibility. It also manages templates, sending domains, suppressions, webhooks, contacts and lists, and reads email logs and delivery statistics.
Runs locally over stdio with npx -y mcp-mailtrap (Node.js required). A Mailtrap API token is needed in MAILTRAP_API_TOKEN. MAILTRAP_ACCOUNT_ID is required for templates, stats, logs, sandbox listing, domains and suppressions. Optional variables set a default sender and sandbox.
Was du damit machen kannst
- Send single, batch transactional and bulk emails
- Send test emails to sandbox inboxes and read their messages
- Check spam score and HTML client compatibility of test messages
- Create, update and delete email templates
- Manage sending domains, suppressions and webhooks
- Manage contacts, lists, custom fields and imports
- View sending statistics and email delivery logs
Tools 125
send-emailSend an email with HTML or text content to one or more recipients.
batch-send-transactional-emailSend a batch of transactional emails with shared fields and per-recipient overrides.
batch-send-bulk-emailSend a batch of bulk emails with shared fields and per-recipient overrides.
create-templateCreate a new email template.
list-templatesList all email templates in the account.
get-templateGet a template with its subject, category and bodies.
update-templateUpdate an existing email template.
delete-templateDelete an email template.
send-sandbox-emailSend a test email to the sandbox without reaching real recipients.
batch-send-sandbox-emailSend a batch of emails to a sandbox test inbox.
get-sandbox-messagesList messages in the sandbox test inbox.
show-sandbox-email-messageShow sandbox message details, with optional spam report and HTML analysis.
113 weitere Tools anzeigen
list-sandbox-projectsList sandbox projects and their inboxes.
create-sandbox-projectCreate a sandbox project to group test inboxes.
get-sandbox-projectGet a sandbox project and its inboxes.
update-sandbox-projectRename a sandbox project.
delete-sandbox-projectDelete a sandbox project and all its inboxes.
create-sandbox-inboxCreate a sandbox test inbox in a project.
get-sandbox-inboxGet inbox details including SMTP credentials and counts.
update-sandbox-inboxUpdate a sandbox inbox name or email username.
delete-sandbox-inboxDelete a sandbox inbox and its messages.
clean-sandbox-inboxDelete all messages in an inbox but keep the inbox.
list-sandboxesList all sandbox inboxes accessible to the token.
mark-sandbox-as-readMark all messages in a sandbox inbox as read.
reset-sandbox-credentialsReset the SMTP credentials of a sandbox inbox.
enable-sandbox-email-addressEnable the forwarding email address of a sandbox inbox.
reset-sandbox-email-addressReset the forwarding email address of a sandbox inbox.
forward-sandbox-messageForward a sandbox message to a real email address.
update-sandbox-messageMark a sandbox message as read or unread.
delete-sandbox-messageDelete a single sandbox message.
get-sandbox-message-spam-scoreGet the SpamAssassin report and score for a message.
get-sandbox-message-html-analysisCheck message HTML for email client compatibility issues.
get-sandbox-message-headersGet the headers of a sandbox message.
get-sandbox-message-htmlGet the rendered HTML body of a sandbox message.
get-sandbox-message-textGet the plain text body of a sandbox message.
get-sandbox-message-rawGet the raw source of a sandbox message.
get-sandbox-message-emlDownload a sandbox message as an EML file.
get-sandbox-message-html-sourceGet the unrendered HTML source of a sandbox message.
list-sandbox-attachmentsList attachments on a sandbox message.
get-sandbox-attachmentGet details and download URL of a message attachment.
get-sending-statsGet email sending statistics (delivery, bounce, open, click, spam rates) for a date range with optional breakdowns.
list-email-logsList sent email logs (delivery history) with optional pagination and filters.
get-email-log-messageGet a single email log message by ID to inspect delivery status and event history.
list-sending-domainsList sending domains and their DNS verification status.
get-sending-domainGet a sending domain by ID and its verification status, with optional DNS setup instructions.
create-sending-domainCreate a new sending domain.
update-sending-domainUpdate a sending domain's tracking and inbound settings.
delete-sending-domainDelete a sending domain.
send-sending-domain-setup-instructionsEmail a sending domain's DNS setup instructions to a colleague.
get-company-infoGet the company info of a sending domain, used for domain compliance verification.
create-company-infoSet the company info of a sending domain, required for domain compliance verification.
update-company-infoUpdate the company info of a sending domain.
list-suppressionsList or search the suppressed email addresses on the account.
create-suppressionAdd an email address to the account's suppression list, so Mailtrap stops delivering to it.
delete-suppressionRemove an email address from the suppression list, so Mailtrap resumes delivering to it.
list-tracking-opt-outsList email addresses excluded from open and click tracking.
create-tracking-opt-outExclude an email address from open and click tracking for a sending domain.
delete-tracking-opt-outRemove an email address from the tracking opt-out list, so open and click tracking applies to it again.
list-webhooksList all webhooks configured on the account.
get-webhookGet a single webhook and its configuration.
create-webhookCreate a webhook for email sending, audit log, or inbound receiving events.
update-webhookUpdate a webhook's URL, active state, payload format, or subscribed events.
delete-webhookPermanently delete a webhook.
get-contactGet a contact by ID or email address, with list memberships and custom fields.
create-contactCreate a contact and optionally subscribe it to contact lists.
update-contactUpdate a contact's fields and list memberships.
delete-contactPermanently delete a contact.
create-contact-eventRecord an event against a contact to trigger automations.
list-contact-listsList the contact lists on the account.
get-contact-listGet a single contact list.
create-contact-listCreate a new contact list.
update-contact-listRename an existing contact list.
delete-contact-listPermanently delete a contact list.
list-contact-fieldsList the custom contact field definitions on the account.
get-contact-fieldGet a single custom contact field definition.
create-contact-fieldCreate a custom contact field for use as a template variable.
update-contact-fieldUpdate the name, merge tag, or data type of a custom contact field.
delete-contact-fieldPermanently delete a custom contact field.
create-contact-importBulk import contacts and return an import job to poll.
get-contact-importGet the status and counts of a contact import job.
create-contact-exportExport the contacts matching a set of filters and return an export job to poll.
get-contact-exportGet the status of a contact export job and its download link once finished.
list-email-campaignsList the account's email campaigns, newest first, with optional search by name.
get-email-campaignGet a single email campaign.
create-email-campaignCreate a draft email campaign for a verified sending domain.
update-email-campaignUpdate a draft email campaign and its template.
delete-email-campaignDelete a draft email campaign.
start-email-campaignStart sending a draft email campaign immediately.
schedule-email-campaignSchedule a draft email campaign to start sending at a future time.
cancel-email-campaignCancel a scheduled email campaign, returning it to draft.
terminate-email-campaignTerminate a campaign that is currently sending, aborting the send.
reset-email-campaignReset a scheduled email campaign back to draft.
get-email-campaign-statsGet the performance statistics of an email campaign, optionally for a date range.
list-accountsList the Mailtrap accounts the API token can access, with their access levels.
get-billing-usageGet the current billing cycle's plans, limits, and usage.
list-account-accessesList the users, invites, and API tokens with access to the account.
remove-account-accessRevoke a user's permissions, or delete an invite or API token.
get-permission-resourcesList the inboxes, projects, domains, and billing resources the token administers.
bulk-update-permissionsCreate, update, or remove several permissions on an account access in one call.
list-api-tokensList the API tokens on the account.
create-api-tokenCreate an API token; the secret value is returned only on creation.
get-api-tokenGet an API token's metadata; the secret value is not returned.
reset-api-tokenRotate an API token, invalidating the previous secret value.
delete-api-tokenPermanently delete an API token.
list-sub-accountsList the sub-accounts in the organization.
create-sub-accountCreate a new sub-account under the organization.
list-inbound-foldersList the inbound folders on the account.
get-inbound-folderGet a single inbound folder.
create-inbound-folderCreate a new inbound folder to group inboxes.
update-inbound-folderRename an inbound folder.
delete-inbound-folderDelete an inbound folder and all the inboxes it contains.
list-inbound-inboxesList the inbound inboxes in a folder.
get-inbound-inboxGet a single inbound inbox and its receiving address.
create-inbound-inboxCreate a Mailtrap-hosted or custom-domain inbound inbox.
update-inbound-inboxUpdate an inbound inbox's settings.
delete-inbound-inboxDelete an inbound inbox and the messages it holds.
list-inbound-messagesList the messages received in an inbound inbox.
get-inbound-messageGet a received message with its body and attachment download URLs.
delete-inbound-messageDelete a received message.
reply-to-inbound-messageReply to a received message, sending real email to its sender.
reply-all-to-inbound-messageReply to a received message and all its recipients, sending real email.
forward-inbound-messageForward a received message to other recipients, sending real email.
list-inbound-threadsList the conversation threads in an inbound inbox.
get-inbound-threadGet a conversation thread and the messages it contains.
delete-inbound-threadDelete a conversation thread and its messages.
Am 3. Okt. 2026 aus dem Manifest des Pakets gelesen, nicht über eine Live-Verbindung.
Beispiel-Prompts
Send a welcome email to jane@example.com using my Mailtrap template
Show the spam score of the latest message in my sandbox inbox
List my sending domains and their DNS verification status
Get delivery and bounce rates for the last 7 days
Einrichtung
Jeder Client startet Mailtrap mit demselben Befehl auf deinem Rechner. Wähl deinen; die Seite merkt sich deine Wahl.
Claude Code
- Führe das in einem Terminal in deinem Projektordner aus:
claude mcp add --transport stdio mailtrap --env "MAILTRAP_API_TOKEN=<YOUR_MAILTRAP_API_TOKEN>" -- npx -y mcp-mailtrap- Starte Claude Code und tippe
/mcp. mailtrap sollte als verbunden angezeigt werden.
Ergänze --scope user, damit er in jedem Projekt verfügbar ist. Ersetze die Platzhalter durch deine eigenen Werte.
Claude Desktop
- Öffne Settings → Developer → Edit Config. Das öffnet
claude_desktop_config.json. Füge hinzu:
{
"mcpServers": {
"mailtrap": {
"command": "npx",
"args": [
"-y",
"mcp-mailtrap"
],
"env": {
"MAILTRAP_API_TOKEN": "<YOUR_MAILTRAP_API_TOKEN>"
}
}
}
}- Speichere die Datei und starte Claude Desktop neu. Ersetze die Platzhalter durch deine eigenen Werte.
Braucht Node.js auf deinem Rechner. Die Datei liegt unter macOS in ~/Library/Application Support/Claude/ und unter Windows in %APPDATA%\Claude\.
Cursor
Zu Cursor hinzufügen (öffnet in einem neuen Tab)
Oder trag ihn von Hand in ~/.cursor/mcp.json (alle Projekte) oder .cursor/mcp.json (dieses Projekt) ein:
{
"mcpServers": {
"mailtrap": {
"command": "npx",
"args": [
"-y",
"mcp-mailtrap"
],
"env": {
"MAILTRAP_API_TOKEN": "<YOUR_MAILTRAP_API_TOKEN>"
}
}
}
}Braucht Node.js auf deinem Rechner. Ersetze die Platzhalter durch deine eigenen Werte.
VS Code
Füge ihn zu .vscode/mcp.json hinzu. VS Code fragt beim ersten Mal nach dem Secret und speichert es sicher:
{
"servers": {
"mailtrap": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-mailtrap"
],
"env": {
"MAILTRAP_API_TOKEN": "${input:mailtrap-api-token}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "mailtrap-api-token",
"description": "MAILTRAP_API_TOKEN",
"password": true
}
]
}Braucht Node.js auf deinem Rechner.
Devin Desktop
- Füge ihn zu
~/.config/devin/mcp_config.json(macOS und Linux) oder%APPDATA%\devin\mcp_config.json(Windows) hinzu:
{
"mcpServers": {
"mailtrap": {
"command": "npx",
"args": [
"-y",
"mcp-mailtrap"
],
"env": {
"MAILTRAP_API_TOKEN": "<YOUR_MAILTRAP_API_TOKEN>"
}
}
}
}- Aktualisiere die Liste der MCP-Server in Cascade. Ersetze die Platzhalter durch deine eigenen Werte.
Devin Desktop ist der neue Name von Windsurf.
Codex
codex mcp add mailtrap --env "MAILTRAP_API_TOKEN=<YOUR_MAILTRAP_API_TOKEN>" -- npx -y mcp-mailtrapOder bearbeite ~/.codex/config.toml direkt:
[mcp_servers.mailtrap]
command = "npx"
args = ["-y", "mcp-mailtrap"]
env = { MAILTRAP_API_TOKEN = "<YOUR_MAILTRAP_API_TOKEN>" }Braucht Node.js auf deinem Rechner. Ersetze die Platzhalter durch deine eigenen Werte.
Gemini CLI
gemini mcp add -e "MAILTRAP_API_TOKEN=<YOUR_MAILTRAP_API_TOKEN>" mailtrap npx -- -y mcp-mailtrapDamit fügst du ihn dem aktuellen Projekt hinzu. Ergänze -s user, um ihn überall zu nutzen.
Jeder Client
Die meisten Clients, die lokale Server starten, akzeptieren diese Form:
{
"mcpServers": {
"mailtrap": {
"command": "npx",
"args": [
"-y",
"mcp-mailtrap"
],
"env": {
"MAILTRAP_API_TOKEN": "<YOUR_MAILTRAP_API_TOKEN>"
}
}
}
}Zed legt Server in seinen Einstellungen unter context_servers ab, mit denselben Feldern command, args und env.
Braucht Node.js auf deinem Rechner. Ersetze die Platzhalter durch deine eigenen Werte.
Häufige Fragen
Kann ich mcp.tc/i/mailtrap in meinen MCP-Client einfügen?
Nein. Mailtrap läuft auf deinem eigenen Rechner und wird von deinem Client gestartet, hat also keine Webadresse, mit der man sich verbinden könnte. Der Quick-Link ist die Seite zum Teilen; der Installationsbefehl lautet npx -y mcp-mailtrap.
Braucht Mailtrap einen API-Schlüssel?
Ja. Er liest MAILTRAP_API_TOKEN aus seiner Umgebung, und MAILTRAP_API_TOKEN ist geheim. Trag den Wert in die Konfiguration deines Clients auf deinem eigenen Rechner ein, nie in eine geteilte Datei.
Ist Mailtrap ein Remote- oder ein lokaler Server?
Lokal. Dein Client startet ihn als Prozess auf deinem Rechner, mit npx -y mcp-mailtrap, was Node.js braucht.
Was kann Mailtrap?
Er hat 125 Tools, darunter send-email, batch-send-transactional-email und batch-send-bulk-email. Du kannst damit: Send single, batch transactional and bulk emails, Send test emails to sandbox inboxes and read their messages und Check spam score and HTML client compatibility of test messages.
Welche Clients können ihn nutzen?
Jeder Client, der lokale Server startet: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed und andere. claude.ai und ChatGPT verbinden sich nur mit Remote-Servern.
Wer hat diese Seite geschrieben?
Der Roboter von mcp.tc hat die öffentlichen Metadaten von Mailtrap (seine Paket- und Repository-Seiten) gelesen, und ein KI-Modell hat daraus den Text entworfen. Ein Mensch prüft alles, was die Prüfungen nicht bestätigen können. Der Text kann trotzdem falsch sein; wenn dir ein Fehler auffällt, nutze Eintrag melden auf dieser Seite.
Einbinden
Zeig Mailtrap in einem README oder auf deiner Website. Jede Einbindung verlinkt auf diese Seite, nutzt den Installationsbefehl des Servers und setzt keine Cookies. So funktionieren Einbindungen
README-Badge
[](https://mcp.tc/i/mailtrap)<a href="https://mcp.tc/i/mailtrap"><img src="https://mcp.tc/i/mailtrap/badge.svg" alt="Mailtrap on mcp.tc" height="20"></a>Es folgt dem hellen oder dunklen Modus der Lesenden. Hänge ?theme=light oder ?theme=dark an, um ihn festzulegen, oder ?style=compact, um das Zeichen ohne Schriftzug zu zeigen.
Website-Karte
<script src="https://mcp.tc/w/mailtrap.js" async></script>Die Karte erscheint dort, wo das Tag steht. Füge dem Tag data-theme="dark" oder data-size="compact" hinzu, um sie zu ändern. Die Datei enthält alles, was sie braucht, stellt also keine weiteren Anfragen und setzt keine Cookies.
iframe
<iframe src="https://mcp.tc/embed/mailtrap" title="Mailtrap on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>Nutze es auf Seiten, die keine Skripte erlauben. Hänge ?theme=light oder ?theme=dark an die Adresse an, um die Farben festzulegen.
JSON
Der Eintrag als Daten für deine eigenen Seiten und Tools: Name, Kurzbeschreibung, Installationsbefehl, Tools und die „Add to“-Links. Jede Website kann ihn lesen (CORS ist offen).
https://mcp.tc/i/mailtrap.jsonmcp.tc ist nicht mit Mailtrap verbunden. Diese Seite entstand aus den öffentlichen Metadaten von Mailtrap, zuletzt geprüft am 3. Okt. 2026, und ein KI-Modell hat die Beschreibung geschrieben, sie kann also Fehler enthalten. Namen und Marken gehören ihren Inhabern. Stimmt etwas nicht? Eintrag melden.