Mailtrap integration
Email testing and sending platform API. Test emails in a sandbox environment without sending to real recipients, send transactional and bulk emails in production, manage inboxes, projects, and messages. Perfect for development email testing, transactional email delivery, email template verification, and spam score analysis.
Say what should happen.
The workflow builds itself.
Common Mailtrap use cases
- email verification
- inbox maintenance
- environment setup
- test environment setup
- HTML inspection
- inbox management
- content inspection
- inbox organization
- environment teardown
- organization updates
What you can do with Mailtrap
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Inbox, 10 operations
clean_inboxClean inboxPATCHDeletes all messages from an inbox while keeping the inbox itself.create_inboxCreate inboxPOSTCreates a new sandbox inbox within a project for capturing test emails.delete_inboxDelete inboxDELETEDeletes an inbox and all its messages permanently.get_inboxGet inboxGETRetrieves details of a specific inbox including SMTP credentials and message count.list_inboxesList inboxesGETRetrieves all sandbox inboxes within a Mailtrap account.mark_inbox_as_readMark inbox as readPATCHMarks all messages in an inbox as read.reset_email_usernameReset email usernamePATCHResets the unique email address for an inbox to a new one.reset_inbox_credentialsReset inbox credentialsPATCHResets SMTP credentials for an inbox.toggle_email_usernameToggle email usernamePATCHToggles the unique email address for an inbox on or off.update_inboxUpdate inboxPATCHUpdates an inbox's name or email username.
Message, 10 operations
delete_messageDelete messageDELETEDeletes a specific message from an inbox permanently.forward_messageForward messagePOSTForwards a test message to a real email address for review.get_messageGet messageGETRetrieves a specific message with full details including headers and body content.get_message_emlGet message emlGETDownloads the message in EML format for email client viewing.get_message_htmlGet message htmlGETRetrieves the HTML body of a message for rendering preview.get_message_html_sourceGet message html sourceGETRetrieves the original HTML source code of a message.get_message_rawGet message rawGETRetrieves the raw MIME source of a message.get_message_textGet message textGETRetrieves the plain text version of a message.list_messagesList messagesGETRetrieves all messages in an inbox with pagination support.update_messageUpdate messagePATCHUpdates a message's read status.
Project, 5 operations
create_projectCreate projectPOSTCreates a new project within a Mailtrap account for organizing inboxes.delete_projectDelete projectDELETEDeletes a project and all its inboxes from a Mailtrap account.get_projectGet projectGETRetrieves details of a specific project within a Mailtrap account.list_projectsList projectsGETRetrieves all projects within a Mailtrap account. Projects organize inboxes and team access.update_projectUpdate projectPATCHUpdates an existing project's name.
Attachment, 2 operations
get_attachmentGet attachmentGETDownloads a specific attachment from a message.list_attachmentsList attachmentsGETRetrieves all attachments for a specific message with metadata.
Email, 2 operations
send_bulk_emailSend bulk emailPOSTSends bulk marketing emails through Mailtrap Bulk Stream.send_emailSend emailPOSTSends a transactional email through Mailtrap Email Sending API.
Account, 1 operation
list_accountsList accountsGETRetrieves all accounts associated with your API token.
Spam report, 1 operation
get_spam_reportGet spam reportGETGets spam analysis report for a message with SpamAssassin score and rule hits.
Use Mailtrap from Claude Code, Cursor or Codex
Connect Mailtrap in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Mailtrap operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Mailtrap
- Create your workspace
Sign up free. Nothing to install.
- Connect Mailtrap once
Add your Mailtrap connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Mailtrap integration FAQ
What can you do with the Mailtrap integration?
LiveContext exposes 31 operations on Mailtrap, covering inbox, message, project and attachment. Common uses include email verification, inbox maintenance and environment setup.
