跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Smartlead,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
在任意 AI 智能体中使用 Smartlead 冷邮件外联:创建并运行带序列和发送计划的营销活动,添加和管理线索及其分类,在主收件箱中查看并回复,对比营销活动和账户的分析数据,检查发件邮箱和预热状态。使用 Smartlead API 密钥;不可撤销的退订和删除在安装时关闭。
试试这样问
Smartlead 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Smartlead、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Smartlead + Gemini
在任意 AI 智能体中使用 Smartlead 冷邮件外联:创建并运行带序列和发送计划的营销活动,添加和管理线索及其分类,在主收件箱中查看并回复,对比营销活动和账户的分析数据,检查发件邮箱和预热状态。使用 Smartlead API 密钥;不可撤销的退订和删除在安装时关闭。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
SMARTLEAD_API_KEY
步骤 1 — 获取凭证
设置大约需要 2 分钟。使用 API 需要 Smartlead 的付费套餐。
- 在 Smartlead 中打开 Settings 和 API Keys 部分(部分套餐中位于 Settings、Integrations 下)。
- 把 API 密钥复制到
SMARTLEAD_API_KEY。连接器会把它作为查询参数api_key附加到每个请求上,所以只粘贴密钥本身。 - 安装连接器并运行
smartlead_list_campaigns:它会列出你的营销活动,并确认密钥可用。
该密钥拥有账户的完整访问权限,请像密码一样保管。
营销活动:先用 smartlead_list_campaigns,因为每个营销活动的 id 就是其他所有工具里的 campaign_id。smartlead_get_campaign、smartlead_get_campaign_sequences 和 smartlead_list_campaign_email_accounts 显示其配置。新建时,AI 依次调用 smartlead_create_campaign(状态为 DRAFTED 的空营销活动)、smartlead_save_campaign_sequences、smartlead_update_campaign_schedule(时区、星期、发送时段、邮件间隔分钟数、每天新线索数、开始时间)、smartlead_update_campaign_settings(名称、打开和点击跟踪、何时停止给线索发信、纯文本、跟进比例、AI 邮箱匹配、退订文字)、smartlead_add_email_accounts_to_campaign 和 smartlead_add_leads_to_campaign,最后用 START 调用 smartlead_update_campaign_status。状态有 START(不是 ACTIVE)、PAUSED、STOPPED(最终状态;临时暂停请用 PAUSED)和 ARCHIVED。启动会发出真实邮件,所以请先让 AI 展示序列、发送计划和线索数量。
序列:smartlead_save_campaign_sequences 会替换整个序列:未包含的步骤会被删除。AI 先用 smartlead_get_campaign_sequences 读取,保留现有步骤的 id,并发送所有步骤。个性化可用 {{first_name}}、{{company_name}} 以及你的自定义字段名。
线索:
smartlead_list_campaign_leads列出营销活动的线索。每行包含营销活动与线索的关联 id(该行的id,供smartlead_create_lead_note使用)和线索本身(lead.id,作为lead_id使用)。smartlead_get_lead_by_email在所有营销活动中查找线索,smartlead_get_lead按 id 读取,smartlead_get_lead_campaign_overview显示它所在的全部营销活动。smartlead_add_leads_to_campaign每次最多 400 条线索。在全局屏蔽名单中、已退订或已在其他营销活动中的线索会被跳过,除非设置另有规定;返回结果统计上传、重复和被屏蔽的线索数。- 修改:
smartlead_update_lead(即使邮箱不变,API 也要求提供;最多 200 个自定义字段)、smartlead_update_lead_category(id 来自smartlead_list_lead_categories,可同时暂停)、smartlead_pause_lead、smartlead_resume_lead(立即或若干天后),以及针对单个营销活动退订的smartlead_unsubscribe_lead_from_campaign。
回复:smartlead_list_inbox_replies 跨营销活动列出主收件箱中的回复,按时间从新到旧,可按营销活动、邮箱、分类或回复时间筛选;smartlead_get_inbox_item 打开一个会话。回复时,smartlead_get_lead_message_history 给出每封邮件的 stats_id、message_id 和 time;AI 把它们作为 email_stats_id、reply_message_id 和 reply_email_time 传给 smartlead_reply_to_lead。回复从该会话的邮箱发出,可以立即发送,也可以在 scheduled_time 发送。smartlead_create_lead_note 添加内部备注。
分析:针对单个营销活动有 smartlead_get_campaign_analytics(累计总数和线索进度)、smartlead_get_campaign_analytics_by_date、smartlead_get_campaign_sequence_analytics(按步骤和 A/B 变体)以及 smartlead_get_campaign_statistics(每封已发送邮件一行)。smartlead_get_overall_analytics 覆盖整个账户,也可限定为部分营销活动或客户。
邮箱和预热:smartlead_list_email_accounts 显示地址、服务商、每日上限、SMTP/IMAP 状态和预热情况;连接损坏时为 isSmtpSuccess=false。此外还有 smartlead_get_email_account、smartlead_get_warmup_stats(最近 7 天:已发预热邮件、进入收件箱、进入垃圾箱、回复)、smartlead_update_email_account(每日发送上限、发件人名称、签名、密送、自定义跟踪域名、邮件间隔分钟数)和 smartlead_update_warmup(开启或关闭、每日量、递增节奏、回复率)。
Webhook、代理商和列表:smartlead_list_campaign_webhooks 和 smartlead_upsert_campaign_webhook(新建,或在传入 id 时更新),事件包括 EMAIL_SENT、EMAIL_OPEN、EMAIL_LINK_CLICK、EMAIL_REPLY、EMAIL_BOUNCE、LEAD_UNSUBSCRIBED 和 LEAD_CATEGORY_UPDATED。smartlead_list_clients 返回代理商(白标)账户的客户 id;smartlead_list_lead_lists 列出线索列表。
安装时关闭:smartlead_unsubscribe_lead_globally(让线索退订所有营销活动,并阻止今后导入该地址)、smartlead_delete_lead_from_campaign(从该营销活动中移除线索及其进度)和 smartlead_delete_campaign_webhook。这些操作无法撤销,因此由工作区管理员在团队需要时开启。
数据格式:计数是邮件或线索的数量;比率是百分比。分析日期为 YYYY-MM-DD,可选用 IANA 时区(默认 UTC)划分每天的边界。除非传入时区,时间戳均为 UTC 的 ISO 8601。
分页:列表接受 offset(默认 0)和 limit(默认 100;收件箱默认 20)。AI 每次把 offset 增加 limit,直到返回的行数少于 limit;smartlead_list_campaign_leads 还会返回 total_leads。
限制和常见错误:Smartlead 会限制突发请求(标准套餐约每 2 秒 10 次请求),超出时返回 429;稍等后重试。401 Invalid API Key 表示密钥错误,404 表示 id 错误或属于其他账户,400 会指出无效的字段。
连接器不会接入新的发件邮箱,也不会删除营销活动。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Gemini 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Gemini CLI 从 ~/.gemini/settings.json(Windows 上为 %USERPROFILE%\.gemini\settings.json)读取 MCP 服务器。添加:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- 在 AnythingMCP 的 MCP Servers → 你的服务器 → API keys 中创建 MCP API 密钥,并用它替换
YOUR_MCP_API_KEY。 - 保存文件并重启
gemini。 - 在 Gemini CLI 中运行
/mcp(或在终端运行gemini mcp list),anythingmcp应显示为已连接。 - 开始输入提示,Gemini CLI 现在可以调用
Smartlead的工具。
可用工具
| Tool | What it does |
|---|---|
smartlead_list_campaigns | List all email campaigns, newest first, with status (DRAFTED, ACTIVE, PAUSED, STOPPED, ARCHIVED), schedule, sending limits and tracking… |
smartlead_get_campaign | Get one campaign: status, schedule, sending limits, stop-lead setting, tracking settings and client |
smartlead_get_campaign_sequences | Get the email sequence of a campaign: steps with delays, subjects, bodies and A/B variants |
smartlead_list_campaign_email_accounts | List the sender mailboxes attached to a campaign, with their sending limits and warmup state |
smartlead_create_campaign | Create an empty campaign in DRAFTED status |
smartlead_update_campaign_status | Start, pause, stop or archive a campaign |
smartlead_update_campaign_settings | Change campaign settings: name, open and click tracking, when to stop emailing a lead, plain text, follow-up percentage, AI mailbox… |
smartlead_update_campaign_schedule | Set when a campaign sends: time zone, weekdays, sending window, minutes between emails, new leads per day and start time |
smartlead_save_campaign_sequences | Replace the email sequence of a campaign |
smartlead_add_email_accounts_to_campaign | Attach sender mailboxes to a campaign so it can send from them |
smartlead_list_campaign_leads | List the leads of a campaign with their status, category and lead fields |
smartlead_get_lead_by_email | Find a lead by email address across all campaigns |
smartlead_get_lead | Get one lead by its id: contact fields, custom fields and global status |
smartlead_get_lead_campaign_overview | Show every campaign a lead is in, with its status and progress in each |
smartlead_get_lead_message_history | Get the full email thread between a campaign and a lead: sent emails and replies with times, subjects, bodies and the stats_id and… |
smartlead_add_leads_to_campaign | Add up to 400 leads to a campaign |
smartlead_update_lead | Update the fields of a lead in a campaign (email is required by the API even when unchanged) |
smartlead_update_lead_category | Set the category of a lead in a campaign (Interested, Meeting Request, Not Interested, Out Of Office...), optionally pausing it |
smartlead_pause_lead | Pause a lead in a campaign: no further sequence emails go out until it is resumed |
smartlead_resume_lead | Resume a paused lead in a campaign, now or after a delay in days |
smartlead_unsubscribe_lead_from_campaign | Unsubscribe a lead from one campaign |
smartlead_unsubscribe_lead_globally | Unsubscribe a lead from every campaign of the account and block future imports of the address |
smartlead_delete_lead_from_campaign | Remove a lead from a campaign, with its progress in that campaign |
smartlead_list_lead_categories | List the lead categories (global and custom) with ids, e.g |
smartlead_list_inbox_replies | List lead replies from the master inbox across campaigns, newest first, with filters for campaign, mailbox, category and reply time |
smartlead_get_inbox_item | Get one master inbox thread by its id, with lead, campaign and messages |
smartlead_reply_to_lead | Send a reply to a lead in an existing campaign thread, from the mailbox of that thread |
smartlead_create_lead_note | Add an internal note to a lead in a campaign (shown in the master inbox) |
smartlead_get_campaign_analytics | Get the totals of a campaign: sent, opened, clicked, replied, bounced, unsubscribed, plus lead progress counts |
smartlead_get_campaign_analytics_by_date | Get campaign totals (sent, opens, clicks, replies, bounces, unsubscribes) for a date range |
smartlead_get_campaign_sequence_analytics | Get per-step and per-variant results of a campaign sequence for a date range: sent, opens, clicks, replies, positive replies, bounces |
smartlead_get_campaign_statistics | List the individual sent emails of a campaign with lead, step, sent time, open, click, reply and bounce state |
smartlead_get_overall_analytics | Get account-wide sending results for a date range: sent, opens, clicks, replies, positive replies, bounces and rates, optionally limited to… |
smartlead_list_email_accounts | List the sender mailboxes of the account: address, provider, daily limits, SMTP/IMAP health, warmup status and campaigns in use |
smartlead_get_email_account | Get one sender mailbox with its limits, signature, connection health and warmup details |
smartlead_get_warmup_stats | Get the warmup results of a mailbox for the last 7 days: warmup emails sent, landed in inbox, landed in spam, replies |
smartlead_update_email_account | Change a mailbox: daily sending limit, sender name, signature, BCC, custom tracking domain, minutes between emails |
smartlead_update_warmup | Turn warmup on or off for a mailbox and set its daily warmup volume, ramp-up and reply rate |
smartlead_list_campaign_webhooks | List the webhooks of a campaign with their URL and event types |
smartlead_upsert_campaign_webhook | Create a campaign webhook, or update one when its id is passed |
smartlead_delete_campaign_webhook | Delete a webhook of a campaign |
smartlead_list_clients | List the clients of an agency (white-label) account with their ids, names and emails |
smartlead_list_lead_lists | List the lead lists (lead pools outside campaigns) with ids, names and lead counts |
示例提示
- “我正在运行的营销活动中,本月哪个回复率最高?列出每个的发送数、回复数和退信数。”
- “给我看过去 24 小时内被归类为 Interested 的回复。”
- “回复 Q4 Outreach 营销活动中 [email protected] 发来的最新邮件,提议下周通个电话。发送前先给我看正文。”
- “哪些发件邮箱的 SMTP 连接损坏,或者有很多预热邮件进了垃圾箱?”
- “在 [email protected] 所在的所有营销活动中暂停这条线索。”
FAQ
Gemini CLI 从哪里读取 MCP 服务器? 用户级配置位于 ~/.gemini/settings.json,项目级配置位于项目内的 .gemini/settings.json。gemini mcp list 会列出每个服务器及其连接状态。
下一步
这份指南对你有帮助吗?