Integrations

Claude Code integration with MailerSend

Connect your MailerSend account with Claude Code using our hosted MCP server. Integrate email sending into your apps, manage domains, send emails, troubleshoot and more.
Developer
Last Updated

December 1, 2026

Integration Support

Add MailerSend's hosted MCP server to Claude Code so you can read data and take actions inside your account, and integrate MailerSend with your applications and tools from the terminal. Set up message flows, send emails, manage domains, troubleshoot, and more.

How to connect MailerSend with Claude Code

  1. You can connect MailerSend to Claude Code by running the following command in terminal.

claude mcp add --transport http mailersend https://mcp.mailersend.com/mcp
  1. To trigger authentication, enter /mcp in the Claude Code prompt, select MailerSend from the list of MCPs, and press Enter.

  2. In the browser that opens, follow the steps to complete authentication for your MailerSend account. Choose the account you want to connect, review the permissions and click Authorize.

  3. When you've authenticated in the browser, go back to terminal and press Enter. You can now use Claude Code with MailerSend.

See a full list of available MCP tools in our developer documents.

Note:

Data privacy and authorization

Before you connect, it's important to understand what this means for your data.

By connecting your AI tool to the MailerSend MCP server, you are granting the AI tool permission to access and manage your MailerSend data (like email activity, API tokens, recipient data, and domain settings) on your behalf.

MailerSend does not send any of your data to an AI tool. You are in full control. This connection simply enables the AI tool you choose to communicate with your MailerSend account when you give it a command.

Use case examples

  • In our codebase, add a sendPasswordResetEmail(user, token) function in services/email that sends the password reset template through the MailerSend SDK. Read the API key from env and handle API errors cleanly

  • Set up delivery tracking for our transactional emails. Create a MailerSend webhook for sent, delivered, soft-bounced, hard-bounced, and spam-complaint events that points to https://api.example.com/webhooks/mailersend. Then add the handler to our app: verify the webhook signature with the signing secret, store each event in a new email_events table (write the migration), and set a email_undeliverable flag on the user after a hard bounce or spam complaint. Add tests that use sample payloads for each event type

  • A user, jane@example.com, says she requested a password reset 3 times today and got nothing. Use MailerSend to find every message sent to her today and its activity. Check whether she's on the blocklist, hard bounce, spam complaint, unsubscribe, or on-hold list. Then look at our reset code path and logs to see whether we're even calling the send. Tell me where the chain breaks and suggest a fix

  • Add two-factor verification at signup. Generate a 6-digit code, send it by email with a new MailerSend template and, if the user gave a phone number, by SMS or WhatsApp from our MailerSend number. Codes expire after 10 minutes and are rate-limited to 3 sends per hour per user. Show me the code changes, then send a test of both to me

  • Pull the DMARC aggregated report for myapp.com and tell me which sources are failing alignment

  • Add mail.example.com as a sending domain, show me the DNS records, and write them into our Terraform config

View more MCP use case examples.