Smartlead MCP server for AI agents

Live

API KEY

COLD EMAIL

Marketing

Smartlead gives your agent cold email outreach in your Smartlead account: create campaigns and sequences, add and manage leads, attach sending accounts, and read campaign analytics and warmup stats.

  • 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.
Smartlead
agent · Acme Q3
Run
How is my Q4 outbound campaign performing?
S
smartlead_campaign_analytics_get
238ms
Outbound agent
Q4 outbound has sent 3,240 emails: 41% opened and 3.1% replied.
Sources: Smartlead campaign, 1 campaign
smartlead
1 campaign
18:29
Message Claude...

Tools your cold email agent reaches for on Smartlead, scoped per user.

CALL ANY TOOL
30 tools for cold email in Smartlead: list campaigns and leads, read analytics and message history, create campaigns and sequences, import leads, and pause, resume, or unsubscribe them.
smartlead_campaign_analytics_get
Get campaign analytics
Get campaign-wide totals for a Smartlead campaign. Returns totals of emails sent, opened, clicked and replied, and the open, click, reply, bounce and unsubscribe rates. Use Get Campaign Statistics for per-email rows.
Parameters
Name
Type
Required
Description
campaign_id
integer
Required
Numeric ID of the Smartlead campaign. Get it from List Campaigns. Example: 123.
smartlead_campaign_create
Create campaign
smartlead_campaign_delete
Delete campaign
smartlead_campaign_email_accounts_add
Add campaign email accounts
smartlead_campaign_email_accounts_list
List campaign email accounts
smartlead_campaign_email_accounts_remove
Remove campaign email accounts
smartlead_campaign_get
Get campaign
smartlead_campaign_lead_category_update
Update campaign lead category
smartlead_campaign_lead_delete
Delete campaign lead
smartlead_campaign_lead_message_history_get
Get campaign lead message history
smartlead_campaign_lead_pause
Pause campaign lead
smartlead_campaign_lead_resume
Resume campaign lead
smartlead_campaign_lead_unsubscribe
Campaign lead unsubscribe
smartlead_campaign_lead_update
Update campaign lead
smartlead_campaign_leads_add
Add campaign leads
smartlead_campaign_leads_list
List campaign leads
smartlead_campaign_sequences_get
Get campaign sequences
smartlead_campaign_sequences_save
Campaign sequences save
smartlead_campaign_settings_update
Update campaign settings
smartlead_campaign_statistics_get
Get campaign statistics
smartlead_campaign_status_update
Update campaign status
smartlead_campaign_webhook_delete
Delete campaign webhook
smartlead_campaign_webhook_save
Campaign webhook save
smartlead_campaign_webhooks_list
List campaign webhooks
smartlead_campaigns_list
List campaigns
smartlead_email_account_get
Get email account
smartlead_email_account_warmup_stats_get
Get email account warmup stats
smartlead_email_accounts_list
List email accounts
smartlead_lead_categories_list
List lead categories
smartlead_lead_get_by_email
Lead get by email
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);

// Smartlead tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["smartlead"], toolNames: [
    "smartlead_campaign_create",
    "smartlead_campaign_leads_add",
    "smartlead_campaign_analytics_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Create a campaign, import these leads into it, and report its analytics" }] });
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: ["smartlead"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Create a campaign, import these leads into it, and report its analytics" }],
  tools,
});

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

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Create a campaign, import these leads into it, and report its analytics" }],
  tools,
});

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

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

await agent.run("Create a campaign, import these leads into it, and report its analytics");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Smartlead tool. Click to copy, paste into your agent, done.
Campaigns
Copy the prompt
Copied
Create a drafted campaign called Q4 outbound.
Copy the prompt
Copied
Show campaign-wide stats for my Q4 outbound campaign.
Copy the prompt
Copied
Save a 3-step email sequence on this campaign.
Leads
Copy the prompt
Copied
Import these 200 leads into the Q4 campaign.
Copy the prompt
Copied
Show the email thread with this lead.
Copy the prompt
Copied
Mark this lead as Interested and pause their sequence.
Sending accounts
Copy the prompt
Copied
List the email accounts attached to this campaign.
Copy the prompt
Copied
Show the 7-day warmup stats for this mailbox.
Copy the prompt
Copied
Attach 3 sending accounts to the campaign.
SEE HOW AUTH WORKS
Each user connects their own Smartlead API key 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
Smartlead
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
Smartlead
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
Smartlead
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
Smartlead
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 and sales 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.
Test other agents
See the same per-user auth pattern across other marketing and sales connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Smartlead API key looks fine in a demo. In production every campaign and lead 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.
Smartlead 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 Smartlead as the user or through a shared key?
As the user. Each user connects their own Smartlead API key once, and Scalekit sends it with every call. Every campaign, lead import, and status change in your audit trail is attributed to that user, not a shared service account.
Where is the Smartlead 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 Smartlead?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the analytics and list tools without smartlead_campaign_status_update, which can start sending, or smartlead_campaign_delete, which permanently deletes a campaign. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Smartlead 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.
Does creating a campaign start sending?
No. smartlead_campaign_create makes a campaign in DRAFTED status with a name and an optional client. Sending begins only when the agent calls smartlead_campaign_status_update with START.
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"": {
""smartlead"": {
""url"": ""https://mcp.scalekit.com/smartlead"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.smartlead]
url = ""https://mcp.scalekit.com/smartlead""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""smartlead"": {
""url"": ""https://mcp.scalekit.com/smartlead"",
""type"": ""http""
}
}
}