Cover image
Try Now
2025-04-14

SmartLead-MCP-Server打字稿

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Smartlead MCP Server

This is a Model Context Protocol (MCP) server for Smartlead campaign management integration. It provides tools for creating and managing campaigns, updating campaign settings, and managing campaign sequences.

Features

  • Create new campaigns
  • Update campaign schedule settings
  • Update campaign general settings
  • Get campaign details
  • List all campaigns with filtering options
  • Manage campaign email sequences (save, get, update, delete)
  • Manage email accounts in campaigns (add, update, delete)
  • Manage leads in campaigns (add, update, delete)

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Create a .env file based on .env.example and add your Smartlead API key:
SMARTLEAD_API_KEY=your_api_key_here
  1. Build the project:
npm run build

Usage

Standalone Usage

To start the server directly:

npm start

Integration with Claude

To use this MCP server with Claude, you need to add it to the MCP settings file:

  1. For Claude VSCode extension, add it to c:\Users\<username>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  2. For Claude desktop app, add it to %APPDATA%\Claude\claude_desktop_config.json on Windows

Example configuration:

{
  "mcpServers": {
    "smartlead": {
      "command": "node",
      "args": ["E:/mcp-servers/smartlead/dist/index.js"],
      "env": {
        "SMARTLEAD_API_KEY": "your_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Replace your_api_key_here with your actual Smartlead API key.

Configuration

The server can be configured using environment variables:

  • SMARTLEAD_API_KEY (required): Your Smartlead API key
  • SMARTLEAD_API_URL (optional): Custom API URL (defaults to https://server.smartlead.ai/api/v1)
  • SMARTLEAD_RETRY_MAX_ATTEMPTS: Maximum retry attempts for API calls (default: 3)
  • SMARTLEAD_RETRY_INITIAL_DELAY: Initial delay in milliseconds for retries (default: 1000)
  • SMARTLEAD_RETRY_MAX_DELAY: Maximum delay in milliseconds for retries (default: 10000)
  • SMARTLEAD_RETRY_BACKOFF_FACTOR: Backoff factor for retry delays (default: 2)

Available Tools

smartlead_create_campaign

Create a new campaign in Smartlead.

Parameters:

  • name (required): Name of the campaign
  • client_id (optional): Client ID for the campaign

smartlead_update_campaign_schedule

Update a campaign's schedule settings.

Parameters:

  • campaign_id (required): ID of the campaign to update
  • timezone: Timezone for the campaign (e.g., "America/Los_Angeles")
  • days_of_the_week: Days of the week to send emails (1-7, where 1 is Monday)
  • start_hour: Start hour in 24-hour format (e.g., "09:00")
  • end_hour: End hour in 24-hour format (e.g., "17:00")
  • min_time_btw_emails: Minimum time between emails in minutes
  • max_new_leads_per_day: Maximum number of new leads per day
  • schedule_start_time: Schedule start time in ISO format

smartlead_update_campaign_settings

Update a campaign's general settings.

Parameters:

  • campaign_id (required): ID of the campaign to update
  • name: New name for the campaign
  • status: Status of the campaign (active, paused, completed)
  • settings: Additional campaign settings

smartlead_get_campaign

Get details of a specific campaign by ID.

Parameters:

  • campaign_id (required): ID of the campaign to retrieve

smartlead_list_campaigns

List all campaigns with optional filtering.

Parameters:

  • status: Filter campaigns by status (active, paused, completed, all)
  • limit: Maximum number of campaigns to return
  • offset: Offset for pagination

smartlead_save_campaign_sequence

Save a sequence of emails for a campaign with A/B testing variants.

Parameters:

  • campaign_id (required): ID of the campaign
  • sequences (required): Array of email sequence items, each with:
    • id: ID of the sequence (only for updates, omit when creating)
    • seq_number (required): Sequence number (order in the sequence)
    • seq_delay_details (required): Delay settings with:
      • delay_in_days (required): Days to wait before sending this email
    • variant_distribution_type: Type of variant distribution (MANUAL_EQUAL, MANUAL_PERCENTAGE, AI_EQUAL)
    • lead_distribution_percentage: Sample percentage size of the lead pool to use to find the winner
    • winning_metric_property: Metric to use for determining the winning variant (OPEN_RATE, CLICK_RATE, REPLY_RATE, POSITIVE_REPLY_RATE)
    • seq_variants: Array of email variants, each with:
      • subject (required): Email subject line
      • email_body (required): Email body content (HTML)
      • variant_label (required): Label for the variant (e.g., "A", "B", "C")
      • id: ID of the variant (only for updates, omit when creating)
      • variant_distribution_percentage: Percentage of leads to receive this variant
    • subject: Email subject line (for simple follow-ups, blank makes it in the same thread)
    • email_body: Email body content (HTML) for simple follow-ups

smartlead_get_campaign_sequence

Get the sequence of emails for a campaign.

Parameters:

  • campaign_id (required): ID of the campaign

smartlead_update_campaign_sequence

Update a specific email in a campaign sequence.

Parameters:

  • campaign_id (required): ID of the campaign
  • sequence_id (required): ID of the sequence email to update
  • subject: Updated email subject line
  • body: Updated email body content
  • wait_days: Updated days to wait before sending this email

smartlead_delete_campaign_sequence

Delete a specific email from a campaign sequence.

Parameters:

  • campaign_id (required): ID of the campaign
  • sequence_id (required): ID of the sequence email to delete

smartlead_add_email_account_to_campaign

Add an email account to a campaign.

Parameters:

  • campaign_id (required): ID of the campaign
  • email_account_id (required): ID of the email account to add

smartlead_update_email_account_in_campaign

Update an email account in a campaign.

Parameters:

  • campaign_id (required): ID of the campaign
  • email_account_id (required): ID of the email account to update
  • settings: Settings for the email account in this campaign

smartlead_delete_email_account_from_campaign

Remove an email account from a campaign.

Parameters:

  • campaign_id (required): ID of the campaign
  • email_account_id (required): ID of the email account to remove

smartlead_add_lead_to_campaign

Add leads to a campaign (up to 100 leads at once).

Parameters:

  • campaign_id (required): ID of the campaign
  • lead_list (required): Array of lead information objects (max 100), each with:
    • email (required): Email address of the lead
    • first_name: First name of the lead
    • last_name: Last name of the lead
    • company_name: Company name of the lead
    • phone_number: Phone number of the lead
    • website: Website of the lead
    • location: Location of the lead
    • custom_fields: Custom fields for the lead (max 20 fields)
    • linkedin_profile: LinkedIn profile URL of the lead
    • company_url: Company URL of the lead
  • settings: Settings for lead addition:
    • ignore_global_block_list: If true, uploaded leads will bypass the global block list
    • ignore_unsubscribe_list: If true, leads will bypass the comparison with unsubscribed leads
    • ignore_community_bounce_list: If true, uploaded leads will bypass any leads that bounced across the entire userbase
    • ignore_duplicate_leads_in_other_campaign: If true, leads will NOT bypass the comparison with other campaigns

smartlead_update_lead_in_campaign

Update a lead in a campaign.

Parameters:

  • campaign_id (required): ID of the campaign
  • lead_id (required): ID of the lead to update
  • lead (required): Updated lead information with:
    • email: Email address of the lead
    • first_name: First name of the lead
    • last_name: Last name of the lead
    • company: Company of the lead
    • custom_variables: Custom variables for the lead

smartlead_delete_lead_from_campaign

Remove a lead from a campaign.

Parameters:

  • campaign_id (required): ID of the campaign
  • lead_id (required): ID of the lead to remove

License

MIT

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • paulwing
  • 使用MCP服务创建的测试存储库

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    2.8 (6)
    Avatar
    user_ncEL5xHg
    2025-04-24

    As a dedicated user of smartlead-mcp-server, I can confidently say it has transformed the way we manage our server tasks. Developed by Meerkats-Ai, this product offers reliable performance and seamless integration. Its user-friendly interface makes it incredibly easy to navigate and use. Highly recommended for anyone looking to optimize their server management!

    Avatar
    user_xd7aeSfA
    2025-04-24

    I have been using smartlead-mcp-server by Meerkats-Ai for a while now, and it has significantly improved my workflow. The user interface is intuitive, and the server’s performance is top-notch. I highly recommend this product to anyone looking for a reliable and efficient MCP application.

    Avatar
    user_i4Y1NRYM
    2025-04-24

    As a long-time user of SmartLead-MCP-Server by Meerkats-Ai, I am thoroughly impressed with its powerful features and reliability. It has significantly streamlined our operations and enhanced productivity. The intuitive interface and seamless integration have made management tasks effortless. Highly recommended for anyone seeking a robust MCP solution!

    Avatar
    user_1sekTUc8
    2025-04-24

    As an avid user of the smartlead-mcp-server by Meerkats-Ai, I'm thoroughly impressed with its capabilities and robustness. The server seamlessly integrates with multiple applications and offers excellent performance. The user-friendly interface makes setup and management a breeze. Highly recommended for anyone looking to optimize their workflows and enhance their productivity.

    Avatar
    user_5IOQoVDG
    2025-04-24

    I have been using the smartlead-mcp-server from Meerkats-Ai, and it has been a game changer for my projects. The integration is seamless, and the features are highly advanced, making my server management incredibly efficient. The user interface is intuitive, and I received excellent support from the team. Highly recommend it!

    Avatar
    user_51JzOPeW
    2025-04-24

    I recently started using the Smartlead-MCP-Server by Meerkats-Ai, and I must say, it's been a game-changer for my projects. The intuitive design and seamless integration have significantly optimized our workflow. It's versatile and robust, handling multiple tasks efficiently. Highly recommended for anyone looking to streamline their processes and improve productivity.