Skip to content

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.

Connect Mailtrap free

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.

29 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_contactChanges dataCreate a contact: `contact.email` plus optional custom `fields` and `list_ids` to add it to.
  • create_contact_listChanges dataCreate a contact list with `name`.
  • create_templateChanges dataCreate an email template with `name`, `subject`, `category` and `body_html` and/or `body_text`.
  • delete_contactDeletesPermanently delete a contact by `contact_identifier` (ID or email).
  • 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_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_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_templateGet one email template by `template_id` with its subject, HTML and text body.
  • list_accountsList the Mailtrap accounts the API token can access, with their IDs and names.
  • 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_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_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.
  • schedule_email_campaignVisible to othersSchedule a campaign by `email_campaign_id` to send at `datetime`. It will email all its recipients then.
  • send_email_campaignVisible to othersStart sending a campaign by `email_campaign_id` now. All recipients are emailed; this cannot be undone.
  • 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_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_templateChanges dataUpdate an email template by `template_id`: name, subject, category or body. Only the fields you pass change.

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Mailtrap from the app list.

  2. 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. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    1. Click your name, then Settings › Connectors › Add custom connector.
    2. Paste your link as the Remote MCP server URL.
    3. 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 PipMCP 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?

PipMCP 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 PipMCP. Mailtrap shows the token only once, so paste it into PipMCP 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 free

PipMCP is not affiliated with Mailtrap. Product names are trademarks of their owners.