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.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
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 inboxPATCHAgents: ask firstDeletes all messages from an inbox while keeping the inbox itself.create_inboxCreate inboxPOSTAgents: ask firstCreates a new sandbox inbox within a project for capturing test emails.delete_inboxDelete inboxDELETEAgents: ask firstDeletes an inbox and all its messages permanently.get_inboxGet inboxGETAgents: ask firstRetrieves details of a specific inbox including SMTP credentials and message count.list_inboxesList inboxesGETAgents: ask firstRetrieves all sandbox inboxes within a Mailtrap account.mark_inbox_as_readMark inbox as readPATCHAgents: ask firstMarks all messages in an inbox as read.reset_email_usernameReset email usernamePATCHAgents: ask firstResets the unique email address for an inbox to a new one.reset_inbox_credentialsReset inbox credentialsPATCHAgents: ask firstResets SMTP credentials for an inbox.toggle_email_usernameToggle email usernamePATCHAgents: ask firstToggles the unique email address for an inbox on or off.update_inboxUpdate inboxPATCHAgents: ask firstUpdates an inbox's name or email username.
Message, 10 operations
delete_messageDelete messageDELETEAgents: ask firstDeletes a specific message from an inbox permanently.forward_messageForward messagePOSTAgents: ask firstForwards a test message to a real email address for review.get_messageGet messageGETAgents: ask firstRetrieves a specific message with full details including headers and body content.get_message_emlGet message emlGETAgents: ask firstDownloads the message in EML format for email client viewing.get_message_htmlGet message htmlGETAgents: ask firstRetrieves the HTML body of a message for rendering preview.get_message_html_sourceGet message html sourceGETAgents: ask firstRetrieves the original HTML source code of a message.get_message_rawGet message rawGETAgents: ask firstRetrieves the raw MIME source of a message.get_message_textGet message textGETAgents: ask firstRetrieves the plain text version of a message.list_messagesList messagesGETAgents: ask firstRetrieves all messages in an inbox with pagination support.update_messageUpdate messagePATCHAgents: ask firstUpdates a message's read status.
Project, 5 operations
create_projectCreate projectPOSTAgents: ask firstCreates a new project within a Mailtrap account for organizing inboxes.delete_projectDelete projectDELETEAgents: ask firstDeletes a project and all its inboxes from a Mailtrap account.get_projectGet projectGETAgents: ask firstRetrieves details of a specific project within a Mailtrap account.list_projectsList projectsGETAgents: ask firstRetrieves all projects within a Mailtrap account. Projects organize inboxes and team access.update_projectUpdate projectPATCHAgents: ask firstUpdates an existing project's name.
Attachment, 2 operations
get_attachmentGet attachmentGETAgents: ask firstDownloads a specific attachment from a message.list_attachmentsList attachmentsGETAgents: ask firstRetrieves all attachments for a specific message with metadata.
Email, 2 operations
send_bulk_emailSend bulk emailPOSTAgents: ask firstSends bulk marketing emails through Mailtrap Bulk Stream.send_emailSend emailPOSTAgents: ask firstSends a transactional email through Mailtrap Email Sending API.
Account, 1 operation
list_accountsList accountsGETAgents: ask firstRetrieves all accounts associated with your API token.
Spam report, 1 operation
get_spam_reportGet spam reportGETAgents: ask firstGets 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.
