Integration · Email
Connect Claude & ChatGPT to Mailtrap
Ask your AI whether an email reached a customer, what your bounce rate was last week, or what the latest test email in a sandbox looks like. It reads Mailtrap email logs, sending stats, domains and suppressions, and manages contacts, lists, templates and campaigns. Delivery questions get answered without searching through logs by hand.
Free plan, no credit card. Takes about a minute.
Try asking
“Did the password reset email to [email protected] get delivered?”
The AI searches the email logs by recipient and reads the message's delivery events: delivered, opened, clicked or bounced.
“What were our bounce and open rates last week?”
It gets sending stats for those dates: delivered, bounced, opened, clicked and spam.
“Show me the latest test email in our staging sandbox.”
It lists the messages caught in that sandbox and reads the newest one, including its HTML body.
What your AI can do
Email logs and stats
Search sent emails by recipient, subject or status, read delivery events, and get sending stats by domain or category.
Sandboxes
List test sandboxes and the emails they caught, and read each message with its HTML body.
Contacts, templates and campaigns
Manage contacts and lists, create and update templates, read campaign stats, and schedule, send or cancel campaigns.
“Is our sending domain verified?”
It reads the domain with its DNS records, verification and compliance status.
“Why is [email protected] not getting our emails?”
It checks the suppression list for that address and shows whether it bounced, unsubscribed or marked mail as spam.
“Add [email protected] to the Newsletter list.”
It finds the list ID and creates the contact on that list.
130 tools for Mailtrap
These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.
cancel_email_campaignDeletesCancel a scheduled campaign by `email_campaign_id` so it is not sent.create_an_email_campaignVisible to othersEmail a message. Has effects visible outside this system. API summary: Create an email campaign.create_api_tokenDeletesCreate a new api token. Required: name. Destructive action; may require approval. API summary: Create API token.create_api_token_resetDeletesCreate a new reset for a api token. Destructive action; may require approval. API summary: Reset API token.create_contactChanges dataCreate a contact: `contact.email` plus optional custom `fields` and `list_ids` to add it to.create_contact_eventChanges dataCreate a new contact for a contact. Search contacts first to avoid duplicates. API summary: Create contact event.create_contact_exportChanges dataCreate a new contact. Search contacts first to avoid duplicates. API summary: Create Contact Export.create_contact_fieldChanges dataCreate a new contact. Search contacts first to avoid duplicates. API summary: Create Contact Field.create_contact_listChanges dataCreate a contact list with `name`.create_domainChanges dataCreate a new domain. Required: domain. API summary: Create domain.create_domain_company_infoChanges dataCreate a new company info for a domain. Required: company info. API summary: Create company info.create_email_templateVisible to othersEmail a template. Has effects visible outside this system. API summary: Create Email Template.create_folderChanges dataCreate a new folder. Required: name. API summary: Create a folder.create_folder_inboxChanges dataCreate a new inbox for a folder. Required: name. API summary: Create an inbox.create_message_forward_inbound_messageVisible to othersCreate a new message for a message. Search messages first to avoid duplicates. Has effects visible outside this system. API summary: Forward a message.create_message_forward_sandbox_email_messageVisible to othersCreate a new message for a message. Search messages first to avoid duplicates. Has effects visible outside this system. API summary: Forward message.create_message_reply_all_to_inbound_messageVisible to othersCreate a new message for a message. Search messages first to avoid duplicates. Has effects visible outside this system. API summary: Reply all to a message.create_message_reply_to_inbound_messageVisible to othersCreate a new message for a message. Search messages first to avoid duplicates. Has effects visible outside this system. API summary: Reply to a message.create_message_resetVisible to othersCreate a new reset for a message. Has effects visible outside this system. API summary: Reset an email campaign to draft.create_message_terminateVisible to othersCreate a new terminate for a message. Has effects visible outside this system. API summary: Terminate a sending email campaign.create_organization_accountChanges dataCreate a new account for a organization. Required: account. API summary: Create organization sub account.create_projectChanges dataCreate a new project. API summary: Create project.create_project_sandboxChanges dataCreate a new sandbox for a project. API summary: Create a sandbox.create_suppressionChanges dataCreate a new suppression. Required: email, domain id or sending stream. Search suppressions first to avoid duplicates. API summary: Create suppression.create_templateChanges dataCreate an email template with `name`, `subject`, `category` and `body_html` and/or `body_text`.create_tracking_opt_outChanges dataGet the current status of a opt out. API summary: Create tracking opt-out.create_webhookDeletesCreate a new webhook. Required: webhook. Destructive action; may require approval. API summary: Create a webhook.delete_accountDeletesPermanently delete a account by account id. Destructive action; may require approval. API summary: Remove account access.delete_api_tokenDeletesPermanently delete a api token by api token id. Destructive action; may require approval. API summary: Delete API token.delete_contactDeletesPermanently delete a contact by `contact_identifier` (ID or email).delete_contact_fieldDeletesPermanently delete a contact by contact id. Destructive action; may require approval. API summary: Delete Contact Field.delete_contact_listDeletesPermanently delete a contact by contact id. Destructive action; may require approval. API summary: Delete Contact List.delete_domainDeletesPermanently delete a domain by domain id. Destructive action; may require approval. API summary: Delete domain.delete_email_templateDeletesPermanently delete a email template by email template id. Destructive action; may require approval. API summary: Delete Email Template.delete_folderDeletesPermanently delete a folder by folder id. Destructive action; may require approval.delete_folder_inboxDeletesPermanently delete a inbox by inbox id. Destructive action; may require approval. API summary: Delete an inbox.delete_inbox_messageDeletesPermanently delete a message by message id. Destructive action; may require approval.delete_inbox_threadDeletesPermanently delete a thread by thread id. Destructive action; may require approval.delete_messageDeletesPermanently delete a message by message id. Destructive action; may require approval. API summary: Delete an email campaign.delete_projectDeletesPermanently delete a project by project id. Destructive action; may require approval. API summary: Delete project.delete_sandboxDeletesPermanently delete a sandbox by sandbox id. Destructive action; may require approval.delete_sandbox_messageDeletesPermanently delete a message by message id. Destructive action; may require approval. API summary: Delete message.delete_suppressionDeletesPermanently delete a suppression by suppression id. Destructive action; may require approval. API summary: Delete suppression.delete_templateDeletesPermanently delete a template by template id. Destructive action; may require approval. API summary: Delete Email Template (Experimental).delete_tracking_opt_outDeletesPermanently delete a tracking opt out by tracking opt out id. Destructive action; may require approval. API summary: Delete tracking opt-out.delete_webhookDeletesPermanently delete a webhook by webhook id. Destructive action; may require approval.get_api_tokenGet one api token by api token id. API summary: Get API token.get_campaign_statsGet a campaign's stats (delivered, opens, clicks, unsubscribes) by `email_campaign_id`, optionally between `start_date` and `end_date`.get_contactGet one contact by `contact_identifier` (contact ID or email) with its fields and lists.get_contact_exportGet one contact by contact id. API summary: Get Contact Export.get_contact_fieldGet one contact by contact id. API summary: Get Contact Field.get_contact_importGet one contact by contact id. API summary: Get Contact Import.get_contact_listGet one contact by contact id. API summary: Get Contact List.get_email_campaignGet one email campaign by `message_id` (the campaign ID) with sender, audience, content and status.get_email_logGet one sent email by `sending_message_id` with its delivery events (delivered, opened, clicked, bounced).get_email_templateGet one email template by email template id. API summary: Get Email Template.get_folderGet one folder by folder id. API summary: Get a folder.get_folder_inboxGet one inbox for a folder by inbox id. API summary: Get an inbox.get_inbox_messageGet one message for a inbox by message id. API summary: Get a message.get_inbox_threadGet one thread for a inbox by thread id. API summary: Get a thread.get_message_documentGet one document for a message by document id. API summary: Get single attachment.get_opt_out_statusGet the current status of a opt out. API summary: List tracking opt-outs.get_projectGet one project by project id. API summary: Get project by ID.get_sandboxGet one sandbox by sandbox id. API summary: Get sandbox attributes.get_sandbox_messageGet one test email by `sandbox_id` and `message_id` with its sender, recipients, subject and size.get_sandbox_message_htmlGet the HTML body of a test email by `sandbox_id` and `message_id`.get_sending_domainGet one sending domain by `domain_id` with its DNS records, verification and compliance status.get_sending_statsGet sending stats (delivered, bounced, opened, clicked, spam) between `start_date` and `end_date`, optionally for given `domain_ids`, `categories` or `sending_streams`.get_sending_stats_by_domainsList domains. Optional filters: start date, end date, domain ids, sending streams, categories or email service providers. API summary: Get Sending Stats by Domains.get_templateGet one email template by `template_id` with its subject, HTML and text body.get_webhookGet one webhook by webhook id. API summary: Get a webhook.list_accountsList the Mailtrap accounts the API token can access, with their IDs and names.list_api_tokensList api tokens.list_categoriesList categories. Optional filters: start date, end date, domain ids, sending streams, categories or email service providers. API summary: Get Sending Stats by Categories.list_contact_listsList contact lists, optionally filtered by `search`. Returns list IDs.list_contactsList contacts, filtered by `email`, `list_id` or `status` (subscribed, unsubscribed).list_contacts_2List contacts. API summary: Get all Contact Fields.list_datesList dates. Optional filters: start date, end date, domain ids, sending streams, categories or email service providers. API summary: Get Sending Stats by Date.list_domain_company_infosList company infos for a domain. API summary: Get company info.list_email_campaignsVisible to othersList email campaigns, optionally filtered by `search`. Returns campaign IDs and status.list_email_logsVisible to othersList sent emails from the email logs, filtered in `filters` by recipient, sender, subject, status, category, domain or sent date. Page with `search_after`.list_folder_inboxesList inboxes for a folder.list_foldersList folders.list_inbox_messagesList messages for a inbox. Optional filters: last id.list_inbox_threadsList threads for a inbox. Optional filters: last id.list_message_analyzesList analyzes for a message. API summary: Get message HTML analysis.list_message_body_emlsList body emls for a message. API summary: Get message as .eml.list_message_body_htmlsourcesList body htmlsources for a message. API summary: Get message source.list_message_body_rawsList body raws for a message. API summary: Get raw message.list_message_body_txtsList body txts for a message. API summary: Get text message.list_message_documentsList documents for a message. Optional filters: attachment type. API summary: Get attachments.list_message_mail_headersList mail headers for a message. API summary: Get mail headers.list_message_spam_reportsList spam reports for a message. API summary: Get message spam score.list_organization_accountsList accounts for a organization. API summary: Get organization sub accounts.list_projectsList projects. API summary: Get a list of projects.list_resourcesList resources. API summary: Get resources.list_sandbox_messagesList test emails caught in a sandbox by `sandbox_id`, optionally filtered by `search`.list_sandboxesList test sandboxes (inboxes that catch test emails) with their IDs.list_sending_domainsList sending domains with their IDs and DNS verification status.list_suppressionsList suppressed addresses (bounced, unsubscribed or spam complaints) that will not receive email; filter by `email` or time range.list_templatesList email templates with their IDs, names and categories.list_usagesList usages. API summary: Get current billing cycle usage.list_user_invite_account_accessesList accounts. Optional filters: project ids, sandbox ids or domain ids. API summary: List User & Invite account accesses.list_webhooksList webhooks.restore_toggle_email_usernameDeletesRestore a toggle email username (sandbox id). Destructive action; may require approval. API summary: Enable email address.schedule_email_campaignVisible to othersSchedule a campaign by `email_campaign_id` to send at `datetime`. It will email all its recipients then.send_domain_setup_instructionsVisible to othersSend a domain (domain id). Has effects visible outside this system. API summary: Send setup instructions.send_email_campaignVisible to othersStart sending a campaign by `email_campaign_id` now. All recipients are emailed; this cannot be undone.send_stat_service_providersVisible to othersEmail a stat. Has effects visible outside this system. API summary: Get Sending Stats by Email Service Providers.send_templateVisible to othersEmail a template. Has effects visible outside this system. API summary: Get all Email Templates.update_bulksMoves moneyUpdate an existing bulk identified by account access id. Financial or irreversible action; may require approval. API summary: Manage user or token permissions.update_contactChanges dataUpdate a contact by `contact_identifier` (ID or email): change email or fields, add to or remove from lists, or set `unsubscribed`.update_contact_fieldChanges dataUpdate an existing contact identified by contact id. Only the fields you pass are changed. API summary: Update Contact Field.update_contact_listChanges dataUpdate an existing contact identified by contact id. Only the fields you pass are changed. API summary: Update Contact List.update_domainChanges dataUpdate an existing domain identified by domain id. Only the fields you pass are changed. API summary: Update domain.update_domain_company_infosVisible to othersUpdate an existing company info identified by domain id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Update company info.update_email_campaignVisible to othersUpdate a draft campaign by `message_id` (the campaign ID): name, sender (`domain_id`, `from_local_part`, `from_display_name`), `contact_list_ids` or delivery mode.update_email_templateVisible to othersUpdate an existing email template identified by email template id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Update Email Template.update_folderChanges dataUpdate an existing folder identified by folder id. Only the fields you pass are changed. API summary: Update a folder.update_folder_inboxChanges dataUpdate an existing inbox identified by inbox id. Only the fields you pass are changed. API summary: Update an inbox.update_projectChanges dataUpdate an existing project identified by project id. Only the fields you pass are changed. API summary: Update project.update_sandboxChanges dataUpdate an existing sandbox identified by sandbox id. Only the fields you pass are changed. API summary: Update a sandbox.update_sandbox_all_readsVisible to othersUpdate an existing all read identified by sandbox id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Mark as read.update_sandbox_cleansVisible to othersUpdate an existing clean identified by sandbox id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Clean sandbox.update_sandbox_messageVisible to othersUpdate an existing message identified by message id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Update message.update_sandbox_reset_credentialsVisible to othersUpdate an existing reset credential identified by sandbox id. Only the fields you pass are changed. Has effects visible outside this system. API summary: Reset credentials.update_sandbox_reset_email_usernamesDeletesUpdate an existing reset email username identified by sandbox id. Only the fields you pass are changed. Destructive action; may require approval. API summary: Reset email address.update_templateChanges dataUpdate an email template by `template_id`: name, subject, category or body. Only the fields you pass change.update_webhookDeletesUpdate an existing webhook identified by webhook id. Only the fields you pass are changed. Destructive action; may require approval. API summary: Update a webhook.upload_contactChanges dataUpload a contact. API summary: Import contacts.
Set up in three steps
- 1
Pick the app
Create a free HeyMyApps account and choose Mailtrap from the app list.
- 2
Paste your key
Paste a Mailtrap API token. In Mailtrap open Settings > API Tokens (mailtrap.io/settings/api-tokens), click Add Token, give it the permissions you need and copy the token. It is shown only once.
- 3
Add the link to your AI
You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:
- Click your name, then Settings › Connectors › Add custom connector.
- Paste your link as the Remote MCP server URL.
- Switch it on from the + menu in a chat.
Questions
What can the AI do in Mailtrap?
It can read accounts, sending domains, email logs, sending stats, suppressions, sandboxes and their test emails, contacts, contact lists, templates and campaigns with their stats. It can create and update contacts, lists and templates, update draft campaigns, schedule, send or cancel campaigns, and delete contacts.
Does the AI see my Mailtrap API token?
No. Your Mailtrap API token is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.
Can I control what the AI is allowed to do?
Yes. You choose which tools are switched on, so you can start with logs and stats only. Sending or scheduling a campaign emails all its recipients, and cancelling a campaign or deleting a contact cannot be reversed, so those can require your approval before they run. Every tool call is logged.
Does it work with ChatGPT?
Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your HeyMyApps link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.
What does it cost?
HeyMyApps has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Mailtrap account.
Which permissions should my API token have?
Only the ones you need. You choose them when you click Add Token under Settings > API Tokens in Mailtrap, and you can combine that with the tools you switch on in HeyMyApps. Mailtrap shows the token only once, so paste it into HeyMyApps right after you create it.
Let your AI work in Mailtrap today.
Start free. Your key stays encrypted, and you decide what the AI may do.
Connect Mailtrap freeHeyMyApps is not affiliated with Mailtrap. Product names are trademarks of their owners.






