Skip to content

Integration · Email

Connect Claude & ChatGPT to MailSlurp

Ask your AI to create a test inbox, wait for a signup email and pull out the verification code. It can create and update inboxes, read, search and forward emails, get links and attachments, send and reply from your inboxes, and keep contacts. That helps when you test email flows or handle mail in separate inboxes.

Connect MailSlurp free

Free plan, no credit card. Takes about a minute.

Try asking

  • “Create a new inbox for testing our signup flow.”

    The AI creates an inbox with a real email address and gives you the address.

  • “Wait for the confirmation email in that inbox and give me the code.”

    It waits for the latest email to arrive, then extracts the verification code from it.

  • “What is the password reset link in the last email?”

    It lists the links found in the email, such as the reset link.

What your AI can do

Inboxes

Create inboxes with real email addresses, find one by address, list, read and update them, and count unread emails.

Reading and waiting

Wait for new emails, search and read them, and pull out verification codes, links and attachments.

Sending and contacts

Send, reply to and forward emails from your inboxes, read sent emails, and keep contacts and templates at hand.

  • “Send a test email from my QA inbox to [email protected].”

    It sends the email from your inbox with subject and body. The email goes out immediately.

  • “Search all my inboxes for emails that mention invoice.”

    It searches received emails across your inboxes and lists the matches.

  • “Download the PDF attachment on the latest email.”

    It lists the attachments on the email and downloads the one you want.

28 tools for MailSlurp

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • create_contactChanges dataSave a new contact with `first_name`, `last_name`, `company`, `email_addresses`, optional `tags` and `group_id`.
  • create_inboxChanges dataCreate a new inbox with a real email address. Optional: `name`, `description`, `tags`, a custom `email_address` or `prefix`, `inbox_type` and an expiry (`expires_at` or `expires_in`).
  • delete_emailDeletesPermanently delete a received email by `message_id`. This cannot be undone.
  • delete_inboxDeletesPermanently delete an inbox by `address_id`, including its email address and stored emails. This cannot be undone.
  • extract_verification_codeVisible to othersPull a verification or one-time code out of a received email by `email_id`, optionally limited by code length.
  • find_inbox_by_emailFind one of your inboxes by its `email_address`. Returns the inbox ID the other tools need.
  • forward_emailVisible to othersForward a received email by `email_id` to the `to` addresses, with optional cc, bcc and subject. The email is sent immediately.
  • get_account_infoGet the connected MailSlurp account's details. Use to confirm which account you are working in.
  • get_emailGet one received email by its ID (`message_id`), including sender, recipients, subject, body and attachment IDs.
  • get_email_attachmentDownload one attachment from an email as base64 content, by `email_id` and `attachment_id`.
  • get_email_linksList the links found in a received email by `email_id`, for example a confirmation or password-reset link.
  • get_email_summaryGet an email's headers and metadata (sender, recipients, subject, date) by `email_id`, without the body.
  • get_inboxGet one inbox by its ID (`address_id`), including its email address, name, tags and expiry.
  • get_sent_emailGet one sent email by its ID (`message_id`), including recipients, subject and body.
  • get_unread_email_countCount unread emails, across the account or for one `inbox_id`.
  • list_contactsList your saved contacts, page by page, optionally filtered by `search` text or date.
  • list_email_attachmentsList the attachments on a received email by `email_id`, with their attachment IDs.
  • list_inbox_emailsList the emails received in one inbox (`inbox_id`), page by page, optionally between `since` and `before`.
  • list_inboxesList your inboxes, page by page, optionally filtered by `search` text, `tag`, `favourite`, `inbox_type` or creation date (`since`, `before`).
  • list_sent_emailsList emails you have sent, page by page, optionally for one `inbox_id`, by `search_filter` text or date range.
  • list_templatesList your saved email templates, with their template IDs for use when sending.
  • mark_email_readDeletesMark an email (`email_id`) as read, or as unread with `read` set to false.
  • reply_to_emailVisible to othersReply to a received email by `message_id` with a `body` (set `is_html` for HTML). The reply is sent immediately to the original sender.
  • search_emailsChanges dataSearch received emails across your inboxes with `search_filter` text, optionally limited to `inbox_ids`, `unread_only`, favourites or a date range.
  • send_emailVisible to othersSend an email from one of your inboxes (`address_id`) to the `to` addresses, with `subject` and `body` (set `is_html` for HTML), optional cc, bcc and attachments. The email is sent immediately.
  • update_inboxChanges dataUpdate an inbox by `address_id`: change its `name`, `description`, `tags`, `favourite` flag or `expires_at`.
  • wait_for_emailsChanges dataWait until emails matching conditions arrive in an inbox. Requires `inbox_id` and `timeout` (milliseconds); optional `count`, `matches` (field conditions such as subject or sender) and `unread_only`.
  • wait_for_latest_emailWait until an email arrives in an inbox (`inbox_id`) and return the latest one. Set `timeout` in milliseconds, and `unread_only` or `since` to ignore older emails.

Set up in three steps

  1. 1

    Pick the app

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

  2. 2

    Paste your key

    Paste your MailSlurp API key. Sign up or log in at app.mailslurp.com and copy the key from the API section of the dashboard.

  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 MailSlurp?

The AI can create, list, find, read and update inboxes, wait for new emails, and list, search and read received and sent emails. It can extract verification codes, list links and attachments, download attachments and mark emails as read. It can send, reply to and forward emails, list templates, and list and create contacts. It can also delete an inbox or an email if you switch those tools on.

Does the AI see my MailSlurp API key?

No. Your MailSlurp credentials are encrypted at rest and never shown to the AI. After you save them, they are 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 read-only. Sending, replying and forwarding go out immediately, and deleting an inbox or an email cannot be undone. These 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 MailSlurp account.

Can the AI wait for an email to arrive?

Yes. The AI can wait until an email arrives in an inbox, up to a timeout you set in milliseconds, or until a number of emails that match conditions such as subject or sender have arrived. That is handy when you test a signup or password reset: it waits for the email, then reads it and pulls out the code or link.

Let your AI work in MailSlurp today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect MailSlurp free

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