MailSenpai MCP server for AI agents

Live

OAUTH 2.1

EMAIL MARKETING

Marketing

MailSenpai MCP gives your agent email marketing in your MailSenpai account: manage lists, subscribers, segments, and templates, create, schedule, and send campaigns, send transactional emails, and read campaign stats and bounces.

  • Per-user credentials: each call uses the actual user's 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.
MailSenpai MCP
agent · Acme Q3
Run
How did my June newsletter perform?
S
mailsenpaimcp_get_campaign_stats
260ms
Email marketing agent
The June newsletter reached 8,240 recipients, with 7,980 delivered and 41 bounces.
Sources: MailSenpai campaign stats, 1 campaign
mailsenpaimcp
8,240 recipients
18:29
Message Claude...

Tools your email marketing agent reaches for on MailSenpai MCP, scoped per user.

CALL ANY TOOL
74 tools for email marketing in MailSenpai MCP: manage lists, subscribers, segments, and templates, create, schedule, and send campaigns, send transactional email, and check blacklists, DNS, and spam tests.
mailsenpaimcp_bulk_create_subscribers
Bulk create subscribers
Adds many subscribers to one list in a single call and returns the outcome for each row. The number of rows is capped by the plan (usually 500 per call); split bigger imports. Use create_subscriber for a single contact.
Parameters
Name
Type
Required
Description
data
array
Optional
Array of subscribers, each with EMAIL and optional field tags, e.g. [{"EMAIL": "ann@example.org", "FNAME": "Ann"}, {"EMAIL": "bob@example.org"}].
list_uid
string
Optional
Unique ID of the mailing list (list_uid), a 13-character code such as "ab123cd456ef7". Find it with list_lists.
mailsenpaimcp_cancel_scheduled_campaign
Cancel scheduled campaign
mailsenpaimcp_check_blacklist
Check blacklist
mailsenpaimcp_confirm_subscriber
Confirm subscriber
mailsenpaimcp_copy_list
List copy
mailsenpaimcp_create_list_segment
Create list segment
mailsenpaimcp_create_or_update_subscriber
Create or update subscriber
mailsenpaimcp_create_subscriber
Create subscriber
mailsenpaimcp_delete_campaign
Delete campaign
mailsenpaimcp_delete_list_segment
Delete list segment
mailsenpaimcp_delete_subscriber_by_email
Delete subscriber by email
mailsenpaimcp_get_campaign
Get campaign
mailsenpaimcp_get_email_spam_test_result
Get email spam test result
mailsenpaimcp_get_list_segment
Get list segment
mailsenpaimcp_get_subscriber
Get subscriber
mailsenpaimcp_list_campaigns
List campaigns
mailsenpaimcp_list_country_zones
List country zones
mailsenpaimcp_list_list_segments
List list segments
mailsenpaimcp_list_segment_subscribers
List segment subscribers
mailsenpaimcp_list_transactional_emails
List transactional emails
mailsenpaimcp_mark_campaign_as_sent
Mark campaign as sent
mailsenpaimcp_schedule_campaign_send
Send schedule campaign
mailsenpaimcp_search_subscriber_by_email
Search subscriber by email
mailsenpaimcp_search_subscribers_by_custom_fields
Search subscribers by custom fields
mailsenpaimcp_set_subscriber_status
Set subscriber status
mailsenpaimcp_start_email_spam_test
Start email spam test
mailsenpaimcp_unsubscribe_subscriber
Unsubscribe subscriber
mailsenpaimcp_update_campaign
Update campaign
mailsenpaimcp_update_list
List update
mailsenpaimcp_update_subscriber_by_email
Update subscriber by email

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);

// MailSenpai tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailsenpaimcp"], toolNames: [
    "mailsenpaimcp_list_lists",
    "mailsenpaimcp_create_campaign",
    "mailsenpaimcp_get_campaign_stats"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find my newsletter list, create a draft campaign for it, and show the stats of my last campaign" }] });
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: ["mailsenpaimcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find my newsletter list, create a draft campaign for it, and show the stats of my last campaign" }],
  tools,
});

// Execute the tool call with the user's vaulted MailSenpai OAuth 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: ["mailsenpaimcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find my newsletter list, create a draft campaign for it, and show the stats of my last campaign" }],
  tools,
});

// Tool call runs with the user's vaulted MailSenpai OAuth 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: ["mailsenpaimcp"] }, pageSize: 100,
});

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

await agent.run("Find my newsletter list, create a draft campaign for it, and show the stats of my last campaign");
Try these prompts
Copy any prompt into your agent. Each maps directly to a MailSenpai MCP tool. Click to copy, paste into your agent, done.
Lists and subscribers
Copy the prompt
Copied
List my mailing lists.
Copy the prompt
Copied
Find jane@example.com across all my lists.
Copy the prompt
Copied
Add these 200 subscribers to my newsletter list.
Campaigns
Copy the prompt
Copied
Create a draft campaign for my newsletter list.
Copy the prompt
Copied
Schedule my draft campaign for Friday at 9 AM.
Copy the prompt
Copied
Show the bounces for my last campaign.
Deliverability and templates
Copy the prompt
Copied
Check whether my sending domain is on a blacklist.
Copy the prompt
Copied
Check the DNS records for example.com.
Copy the prompt
Copied
Start a spam test for my email.
SEE HOW AUTH WORKS
Each user signs in to MailSenpai once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
MailSenpai MCP
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
MailSenpai MCP
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
MailSenpai MCP
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
MailSenpai MCP
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 marketing 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.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other marketing connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared MailSenpai token looks fine in a demo. In production every subscriber change and campaign send 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.
MailSenpai 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 MailSenpai as the user or through a shared service account?
As the user. Each user signs in to MailSenpai once, and Scalekit stores and refreshes their tokens. Every subscriber change, campaign send, and delete in your audit trail is attributed to that user, not a shared service account.
Where is the MailSenpai OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in MailSenpai?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the get, list, and search tools without mailsenpaimcp_delete_list, which permanently deletes a list with all its subscribers, or mailsenpaimcp_create_scheduled_campaign, which schedules real sending. Docs mark 31 of the 74 tools as destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes MailSenpai 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 create a campaign without sending it?
Yes. mailsenpaimcp_create_campaign creates a draft by default, and a draft sends nothing. Sending happens through mailsenpaimcp_create_scheduled_campaign or mailsenpaimcp_schedule_campaign_send, so leave those out of toolNames to keep the agent to drafts.
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"": {
""mailsenpaimcp"": {
""url"": ""https://mcp.scalekit.com/mailsenpaimcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.mailsenpaimcp]
url = ""https://mcp.scalekit.com/mailsenpaimcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""mailsenpaimcp"": {
""url"": ""https://mcp.scalekit.com/mailsenpaimcp"",
""type"": ""http""
}
}
}