Mailjet MCP server for AI agents

Live

API KEY

EMAIL MARKETING

Communication

Mailjet gives your agent email marketing and sending in your Mailjet account: manage contact lists, segments, and templates, create, schedule, and send campaign drafts, send emails, and read campaign and message statistics.

  • Per-user credentials: each call uses the actual user's API key, 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.
Mailjet
agent · Acme Q3
Run
How did our email do over the last 7 days?
S
mailjet_stat_counters_get
290ms
Email marketing agent
Over the last 7 days Mailjet processed 12,400 messages: 12,050 delivered, 3,410 opened, and 612 clicked.
Sources: Mailjet counters, 7 days
mailjet
12,400 messages
18:29
Message Claude...

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

CALL ANY TOOL
63 tools for email marketing in Mailjet: manage contacts, lists, segments, and templates, create, test, schedule, and send campaign drafts, send email, and read campaign and message statistics.
mailjet_campaign_draft_content_set
Set campaign draft content
Set a campaign draft's HTML part, text part, MJML and headers. Returns Data with the saved content.
Parameters
Name
Type
Required
Description
draft_id
integer
Required
Campaign draft ID. Example: 54321
headers
object
Optional
Headers for the campaign, such as Subject and Reply-To. Example: {"Subject": "November news"}
html_part
string
Optional
The HTML-formatted part of the message. Example: <h3>Dear passenger, welcome to Mailjet!</h3><br />May the delivery force be with you!
mjml_content
string
Optional
The content of the message in MJML. Note: Any update of the MJMLContent property of the /campaigndraft/{draft_ID}/detailcontent resource will not automatically generate the Html-part version of the content. In this case, you should regenerate the Html-part with the MJML tools. Example: <mjml><mj-body><mj-text>Hello</mj-text></mj-body></mjml>
text_part
string
Optional
The plain text part of the message. Example: Dear passenger, welcome to Mailjet! May the delivery force be with you!
mailjet_campaign_draft_create
Create campaign draft
mailjet_campaign_draft_get
Get campaign draft
mailjet_campaign_draft_schedule
Campaign draft schedule
mailjet_campaign_draft_schedule_delete
Delete campaign draft schedule
mailjet_campaign_draft_send
Send campaign draft
mailjet_campaign_draft_update
Update campaign draft
mailjet_campaign_drafts_list
List campaign drafts
mailjet_campaign_get
Get campaign
mailjet_campaigns_list
List campaigns
mailjet_contact_data_update
Update contact data
mailjet_contact_get
Get contact
mailjet_contact_list_bulk_manage
Contact list bulk manage
mailjet_contact_list_delete
Delete contact list
mailjet_contact_list_manage_contact
Contact list manage contact
mailjet_contact_lists_list
List contact lists
mailjet_contact_lists_manage
Contact lists manage
mailjet_contact_property_create
Create contact property
mailjet_contacts_list
List contacts
mailjet_link_click_statistics_list
List link click statistics
mailjet_message_get
Get message
mailjet_messages_list
List messages
mailjet_recipient_esp_statistics_list
List recipient esp statistics
mailjet_segment_create
Create segment
mailjet_sender_delete
Delete sender
mailjet_senders_list
List senders
mailjet_stat_counters_get
Get stat counters
mailjet_template_create
Create template
mailjet_template_get
Get template
mailjet_template_update
Update template

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

// Mailjet tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailjet"], toolNames: [
    "mailjet_campaign_draft_create",
    "mailjet_campaign_draft_content_set",
    "mailjet_campaign_draft_test"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Create a campaign draft for my newsletter list, set its content, and send me a test copy" }] });
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: ["mailjet"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Create a campaign draft for my newsletter list, set its content, and send me a test copy" }],
  tools,
});

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

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Create a campaign draft for my newsletter list, set its content, and send me a test copy" }],
  tools,
});

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

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

await agent.run("Create a campaign draft for my newsletter list, set its content, and send me a test copy");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Mailjet tool. Click to copy, paste into your agent, done.
Campaign drafts
Copy the prompt
Copied
Create a campaign draft for my newsletter list.
Copy the prompt
Copied
Send a test copy of my draft to my own address.
Copy the prompt
Copied
Schedule my draft for Friday at 9 AM.
Contacts and lists
Copy the prompt
Copied
List my contact lists with their subscriber counts.
Copy the prompt
Copied
Add jane@example.com to my newsletter list.
Copy the prompt
Copied
Create a segment of contacts in Germany.
Sending and statistics
Copy the prompt
Copied
Send an email to sam@example.com from my verified sender.
Copy the prompt
Copied
Show click counts per link for my last campaign.
Copy the prompt
Copied
Show message counts for the last 7 days.
SEE HOW AUTH WORKS
Each user connects their own Mailjet API key and secret once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Mailjet
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
Mailjet
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
Mailjet
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
Mailjet
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.
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 communication 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 Mailjet API key looks fine in a demo. In production every campaign send and list 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 key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Mailjet 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 Mailjet as the user or through a shared key?
As the user. Each user connects their own Mailjet API key and secret once, and Scalekit sends it with every call. Every campaign send, list change, and delete in your audit trail is attributed to that user, not a shared service account.
Where is the Mailjet API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Mailjet?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the statistics and list tools without mailjet_campaign_draft_send, mailjet_email_send, or the delete tools such as mailjet_contact_list_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Mailjet 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 send a campaign without my review?
Only if you expose mailjet_campaign_draft_send, which sends a draft to its contact list immediately. mailjet_campaign_draft_test sends a test copy to a few addresses first, and mailjet_campaign_draft_schedule_delete cancels a scheduled send. Leave the send and schedule tools 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"": {
""mailjet"": {
""url"": ""https://mcp.scalekit.com/mailjet"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.mailjet]
url = ""https://mcp.scalekit.com/mailjet""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""mailjet"": {
""url"": ""https://mcp.scalekit.com/mailjet"",
""type"": ""http""
}
}
}