MailerSend MCP server for AI agents

Live

BEARER TOKEN

TRANSACTIONAL EMAIL

Communication

MailerSend gives your agent transactional email and SMS in your MailerSend account: send emails and bulk emails, send SMS, manage domains, templates, and webhooks, and read activity, analytics, and suppressions.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
MailerSend
agent · Acme Q3
Run
How many emails bounced last week?
S
mailersend_analytics_by_date_get
310ms
Email delivery agent
Last week MailerSend sent 4,812 emails and 37 bounced, about 0.8% of the total.
Sources: MailerSend analytics, 7 days
mailersend
37 bounces
18:29
Message Claude...

Tools your transactional email agent reaches for on MailerSend, scoped per user.

CALL ANY TOOL
56 tools for transactional email in MailerSend: send email, bulk email, and SMS, manage domains, templates, webhooks, and inbound routes, and read activity, analytics, and suppressions.
mailersend_account_get
Get account
Get the account's plan, email usage, rate limits and resource limits. Returns name, status, plan_type, data_retention_days, emails (sent, received, limit), rate_limits, resources and addons.
Parameters
Name
Type
Required
Description
—
No parameters required
mailersend_activity_list
List activity
mailersend_analytics_opens_by_get
Get analytics opens by
mailersend_blocklist_add
Add blocklist
mailersend_bulk_email_send
Send bulk email
mailersend_bulk_email_status_get
Get bulk email status
mailersend_domain_add
Add domain
mailersend_domain_delete
Delete domain
mailersend_domain_get
Get domain
mailersend_domain_recipients_list
List domain recipients
mailersend_domain_settings_update
Update domain settings
mailersend_domain_verify
Verify domain
mailersend_email_send
Send email
mailersend_emails_list
List emails
mailersend_identity_create
Create identity
mailersend_identity_get
Get identity
mailersend_identity_update
Update identity
mailersend_inbound_route_delete
Delete inbound route
mailersend_inbound_routes_list
List inbound routes
mailersend_message_get
Get message
mailersend_recipients_list
List recipients
mailersend_scheduled_message_delete
Delete scheduled message
mailersend_scheduled_message_get
Get scheduled message
mailersend_sms_activity_list
List sms activity
mailersend_sms_numbers_list
List sms numbers
mailersend_template_create
Create template
mailersend_template_delete
Delete template
mailersend_template_get
Get template
mailersend_template_update
Update template
mailersend_templates_list
List templates

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// MailerSend tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailersend"], toolNames: [
    "mailersend_email_send",
    "mailersend_activity_list",
    "mailersend_suppressions_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Send the welcome email to this address, then check its delivery activity and the suppression list" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailersend"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Send the welcome email to this address, then check its delivery activity and the suppression list" }],
  tools,
});

// Execute the tool call with the user's vaulted MailerSend access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailersend"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Send the welcome email to this address, then check its delivery activity and the suppression list" }],
  tools,
});

// Tool call runs with the user's vaulted MailerSend access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailersend"] }, pageSize: 100,
});

const agent = new Agent({
  name: "email_delivery_agent",
  model: "gemini-2.5-pro",
  instruction: "MailerSend tools scoped to this user",
  tools,
});

await agent.run("Send the welcome email to this address, then check its delivery activity and the suppression list");
Try these prompts
Copy any prompt into your agent. Each maps directly to a MailerSend tool. Click to copy, paste into your agent, done.
Send email and SMS
Copy the prompt
Copied
Send the welcome template to sam@example.com.
Copy the prompt
Copied
Queue these 200 personalized emails in one bulk request.
Copy the prompt
Copied
Send an SMS to this US number from my MailerSend number.
Activity and analytics
Copy the prompt
Copied
List the emails that bounced yesterday.
Copy the prompt
Copied
Show email events per day for the last 30 days.
Copy the prompt
Copied
Show email opens by email client this month.
Domains and suppressions
Copy the prompt
Copied
Check the DNS records for my sending domain.
Copy the prompt
Copied
List the hard bounces on the suppression list.
Copy the prompt
Copied
Add this address to the blocklist.
SEE HOW AUTH WORKS
Each user connects their own MailerSend access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
MailerSend
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
MailerSend
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
MailerSend
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
MailerSend
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Support and Ops Teams
Email-to-calendar agent
Reads scheduling intent out of Gmail threads, resolves the times everyone actually has free, and creates the event on the user's own Google Calendar. No shared service account.
Test other agents
See the same per-user auth pattern across other communication connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
OPS
Email-to-calendar scheduling agent
Read scheduling intent out of Gmail threads, resolve mutual free time, and create the Google Calendar event.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared MailerSend access token looks fine in a demo. In production every send and template change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
MailerSend today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access MailerSend as the user or through a shared token?
As the user. Each user connects their own MailerSend access token once, and Scalekit sends it with every call. Every send, template change, and delete in your audit trail is attributed to that user, not a shared service account.
Where is the MailerSend access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in MailerSend?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the activity and analytics tools without mailersend_email_send, mailersend_bulk_email_send, or mailersend_sms_send, or the delete tools such as mailersend_domain_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes MailerSend access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent cancel a scheduled email?
Yes. mailersend_scheduled_message_delete cancels a scheduled message up to 10 minutes before its send time, and mailersend_scheduled_messages_list finds the message first.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""mailersend"": {
""url"": ""https://mcp.scalekit.com/mailersend"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.mailersend]
url = ""https://mcp.scalekit.com/mailersend""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""mailersend"": {
""url"": ""https://mcp.scalekit.com/mailersend"",
""type"": ""http""
}
}
}