Features

Email MCP server

Connect an AI tool to your MailerSend account for live data access that makes task automation faster and more reliable.

MailerSend

Real-time AI power for developers

Turn any compatible AI tool into your very own smart email engine. Fetch information and perform everyday tasks based on real-time data, without the need to visit the app or make an API call.
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.

Connect the MailerSend MCP in seconds

Step 1

Get the MailerSend MCP server URL

Step 2

Connect your AI tool by adding the URL

Step 3

Authorize the tool to access your MailerSend account and get started!

SDKs that drop right into your code

Choose your language, check out our comprehensive documentation, and integrate our robust email API in minutes.
Read our API docs
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(); } }
MailerSend

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

Easily connect other web apps with MailerSend so they seamlessly work together to share information, automate workflows and enhance your customer experience.
MailerSend is extremely easy to use and super fast to set up. I was able to send the first email via the API in minutes. With the predefined templates and drag and drop editor, you're able to get started really quickly.
Super easy-to-use API for devs and user-friendly mail templating for designers. I love the fact that we can define data from the dashboard and simply call it with the API from the backend to easily send emails. Devs don't need to do design work and designers don't need to code. It's awesome!
Raphael A. CTO
Very good tool, it took me just one day to get it working on production. The interface is clean with everything exactly where expected. It works fantastically—emails are delivered immediately and as configured (conditional statements saved my life, no need to create lots of templates). The API documentation is also fantastic, plus the support team is really fast! 10 out of 10.
Roger S. -

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.

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.