Get the MailerSend MCP server URL
Email MCP server
Connect an AI tool to your MailerSend account for live data access that makes task automation faster and more reliable.

Real-time AI power for developers
Automate reporting and management
Cut down time spent creating reports and performing everyday email management tasks.
No-code actions
Create and send HTML emails and use your MailerSend email templates without coding a thing, using natural language prompts.
Your on-demand AI assistant
Ask your AI tool to analyze your deliverability, check task status, and optimize your workflows any time for instant results.
Easy account configuration
Skip the tedious configuration, like domain authentication or webhook creation, and let AI do the work for you.
Email MCP in action
-
Send or schedule emails
Easily trigger HTML or plain text emails for an individual or group of recipients, or schedule emails such as maintenance notifications in just a few seconds. -
Troubleshoot sending issues
Take advantage of live account access to check for SPF/DKIM authentication issues, bounce rate, reputation score and more. -
Optimize your transactional emails
Get reports on low-performing emails based on unsubscribes, spam complaints, low open rate and more, and get suggestions for optimization. -
Set up common workflows
Use natural language prompts to instruct your AI tools to create workflows for new users, password resets, order confirmations and more.




Connect the MailerSend MCP in seconds
Connect your AI tool by adding the URL
Authorize the tool to access your MailerSend account and get started!
SDKs that drop right into your code
curl -X POST \
https://api.mailersend.com/v1/email \
-H 'Content-Type: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {place your token here without brackets}' \
-d '{
"from": {
"email": "your@email.com"
},
"to": [
{
"email": "your@client.com"
}
],
"subject": "Hello from MailerSend!",
"text": "Greetings from the team, you got this message through MailerSend.",
"html": "Greetings from the team, you got this message through MailerSend.
"
}'
import { MailerSend, EmailParams, Sender, Recipient } from "mailersend";
const mailerSend = new MailerSend({
api_key: "key",
});
const sentFrom = new Sender("you@yourdomain.com", "Your name");
const recipients = [
new Recipient("your@client.com", "Your Client")
];
const emailParams = new EmailParams()
.setFrom(sentFrom)
.setTo(recipients)
.setReplyTo(sentFrom)
.setSubject("This is a Subject")
.setHtml("This is the HTML content")
.setText("This is the text content");
await mailerSend.email.send(emailParams);
$mailersend = new MailerSend();
$recipients = [
new Recipient('your@client.com', 'Your Client'),
];
$emailParams = (new EmailParams())
->setFrom('your@email.com')
->setFromName('Your Name')
->setRecipients($recipients)
->setSubject('Subject')
->setHtml('Greetings from the team, you got this message through MailerSend.')
->setText('Greetings from the team, you got this message through MailerSend.');
$mailersend->email->send($emailParams);
php artisan make:mail ExampleEmail
Mail::to('you@client.com')->send(new ExampleEmail());
from mailersend import emails
mailer = emails.NewEmail()
mail_body = {}
mail_from = {
"name": "Your Name",
"email": "your@domain.com",
}
recipients = [
{
"name": "Your Client",
"email": "your@client.com",
}
]
mailer.set_mail_from(mail_from, mail_body)
mailer.set_mail_to(recipients, mail_body)
mailer.set_subject("Hello!", mail_body)
mailer.set_html_content("Greetings from the team, you got this message through MailerSend.
", mail_body)
mailer.set_plaintext_content("Greetings from the team, you got this message through MailerSend.", mail_body)
mailer.send(mail_body)
require "mailersend-ruby"
# Intialize the email class
ms_email = Mailersend::Email.new
# Add parameters
ms_email.add_recipients("email" => "your@client.com", "name" => "Your Client")
ms_email.add_recipients("email" => "your@client.com", "name" => "Your Client")
ms_email.add_from("email" => "your@domain.com", "name" => "Your Name")
ms_email.add_subject("Hello!")
ms_email.add_text("Greetings from the team, you got this message through MailerSend.")
ms_email.add_html("Greetings from the team, you got this message through MailerSend.")
# Send the email
ms_email.send
package main
import (
"context"
"os"
"fmt"
"time"
"github.com/mailersend/mailersend-go"
)
func main() {
// Create an instance of the mailersend client
ms := mailersend.NewMailersend(os.Getenv("MAILERSEND_API_KEY"))
ctx := context.Background()
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
subject := "Subject"
text := "This is the text content"
html := "This is the HTML content
"
from := mailersend.From{
Name: "Your Name",
Email: "your@domain.com",
}
recipients := []mailersend.Recipient{
{
Name: "Your Client",
Email: "your@client.com",
},
}
// Send in 5 minute
sendAt := time.Now().Add(time.Minute * 5).Unix()
tags := []string{"foo", "bar"}
message := ms.Email.NewMessage()
message.SetFrom(from)
message.SetRecipients(recipients)
message.SetSubject(subject)
message.SetHTML(html)
message.SetText(text)
message.SetTags(tags)
message.SetSendAt(sendAt)
message.SetInReplyTo("client-id")
res, _ := ms.Email.Send(ctx, message)
fmt.Printf(res.Header.Get("X-Message-Id"))
}
import com.mailersend.sdk.Email;
import com.mailersend.sdk.MailerSend;
import com.mailersend.sdk.MailerSendResponse;
import com.mailersend.sdk.exceptions.MailerSendException;
public void sendEmail() {
Email email = new Email();
email.setFrom("name", "your email");
email.addRecipient("name", "your@recipient.com");
// you can also add multiple recipients by calling addRecipient again
email.addRecipient("name 2", "your@recipient2.com");
// there's also a recipient object you can use
Recipient recipient = new Recipient("name", "your@recipient3.com");
email.AddRecipient(recipient);
email.setSubject("Email subject");
email.setPlain("This is the text content");
email.setHtml("This is the HTML content
");
MailerSend ms = new MailerSend();
ms.setToken("Your API token");
try {
MailerSendResponse response = ms.emails().send(email);
System.out.println(response.messageId);
} catch (MailerSendException e) {
e.printStackTrace();
}
}

SMTP for legacy systems and preferred frameworks
Fast, secure, reliable SMTP relay for developers who need a solution for legacy systems or prefer to use an existing framework or module.
Your tools connected with native integrations
What MailerSenders have to say
Try it now for free
Sign up now to try out the MCP and start sending in seconds. Subscribe to a free Hobby plan and get 3,000 emails/month.
Explore all features
Analytics

Access a wide range of key metrics in MailerSend’s email analytics dashboard to track deliverability and engagement and improve overall email performance.
Dynamic templates

Populate email templates with real-time data to create personalized content for each user.
User management

Invite team members and manage user permissions for easy collaboration.
Drag & drop builder

Build professional transactional emails with our drag & drop editor—no coding needed.
Email verification

Identify and remove invalid email addresses to lower your bounce rate and land in more inboxes.
Inbound routing

Automate inbound mail by forwarding incoming messages directly to your app or CRM to streamline workflows and improve customer support.
And much more to deliver, every single time
FAQs
What is the MailerSend MCP?
MCP stands for Model Context Protocols. It provides a standard set of rules so that AI tools can connect and communicate with other services, like MailerSend, and enhance functionality.
MailerSend’s MCP takes away the need for custom integration in order to connect your account to a compatible AI tool, allowing you to do so with just a few clicks. It then gives the AI tool access to your MailerSend account for real-time access to your data and settings so that you can perform tasks and fetch data based on the most accurate and up-to-date information. Learn how to connect the MailerSend MCP.
What is the difference between the MCP, API, and SMTP?
The API and SMTP are two ways to send emails programmatically: SMTP is the traditional protocol for email sending that uses SMTP credentials, and the email API is a developer-friendly alternative that provides more advanced features and flexibility. The MCP server simply connects your MailerSend account to an AI tool so that it can fetch data and perform actions, without writing the API calls yourself.
How does the MCP handle domain authentication?
The MCP has access to tools that allow you to add and verify domains, manage their settings, fetch their data and more. Combined with MailerSend automatic domain authentication feature, this means you can ask the AI tool to do these for you, without the need for manual intervention.
What AI clients are currently supported?
Currently, Claude, Cursor and VSCode support MCPs. We expect more tools to add MCP support soon.
How does the MCP ensure my data is secure?
MailerSend does not send any of your data to an AI tool. When you connect your AI tool/LLM/IDE to the MailerSend MCP server, you grant the tool permission to access and manage your data. This is done only when you instruct the AI tool to do so, meaning that you are in full control. The connection simply allows your chosen AI tool to communicate with your MailerSend account when you give it a command.
How do I troubleshoot issues when using the MCP?
When you connect your account, the AI tool has access to a wide range of data that can help you troubleshoot issues. Simply use natural language prompts to fetch this data, ask the tool to analyze and give feedback, and optimize your sendings. Check out our docs to see more troubleshooting examples and use cases using the MCP.
Can I use the MCP to generate code for my projects?
Yes, the MCP has access to the MailerSend API so you can generate accurate code with it.