LeadSync

me.leadsync由 leadsync.me 发布v0.1.1更新于 Oct 30, 2026

Manage Facebook and Instagram lead ad delivery: CRMs, alerts, autoresponders and test leads.

概览

AI 生成的概览

LeadSync 的 MCP 服务器,让助手配置并排查 Facebook 和 Instagram 潜在客户广告的投递,包括 CRM、提醒和自动回复。

可以做什么
  • 查看账户、API 密钥权限范围与限额,并用管理员密钥查找其他账户
  • 查看来源页面、列表、目标连接及其自动回复
  • 读取近期潜在客户及各目标的投递状态,并查看已发送邮件日志
  • 从 Meta 重新读取页面的潜在客户表单及其问题,用于字段映射
  • 把表单挂接到连接、设置或清空字段映射、暂停或恢复列表
  • 创建邮件自动回复、重发失败或挂起的投递、发送测试潜在客户
适用场景
当你使用 LeadSync 把 Meta 潜在客户广告表单接入 CRM、Google 表格或邮件,并希望助手帮忙配置映射、添加自动回复或排查潜在客户未送达的原因时适用。
运行要求
以 stdio 在本地运行,通常通过 npx @leadsync/mcp 启动,需要 Node.js。需要 LeadSync API 密钥,放在环境变量 LEADSYNC_API_KEY 中,或由 LeadSync skills 的登录命令保存到 ~/.leadsync/.env。可选 LEADSYNC_API_BASE 覆盖 API 地址,LEADSYNC_ACCOUNT 仅供 LeadSync 员工使用。需要访问 LeadSync API 的网络连接。
安装前请注意
API 密钥可访问 LeadSync 账户,若使用登录命令会保存在本地 .env 文件中。多个工具会写入或发送:挂接表单可能重放最多 7 天的潜在客户,set_mapping 会整体替换映射,自动回复会向客户的潜在客户发邮件,resend_lead 可能产生不可撤销的重复投递,send_test_lead 会进入真实目标并可能给客户发邮件。管理员密钥可操作其他账户,操作前先确认目标账户。

安装

在 SourceWeft 中

  1. 打开 控制台中的 LeadSync,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@leadsync/mcp

The MCP server for the LeadSync API. It lets Claude and other MCP clients set up and troubleshoot LeadSync lead delivery: connect Meta lead forms to destinations, map fields, add autoresponders, send test leads and check what happened to a lead.

Most people install it with the installer, which also adds the LeadSync skills:

bash
npx @leadsync/skills --claude    # or --cursor, --codexnpx @leadsync/skills login

To run it by hand in any MCP client, use the command npx -y @leadsync/mcp. The full guide, the tools list and the safety rules are in the repository README.

Settings

The server reads each setting from the environment first, then from ~/.leadsync/.env (one KEY=value per line, written by npx @leadsync/skills login).

VariableWhat it does
LEADSYNC_API_KEYRequired. Your API key, from Account, Settings, API keys in LeadSync. Never written to logs or tool output.
LEADSYNC_API_BASEOptional. Defaults to https://leadsync.me.
LEADSYNC_ACCOUNTOptional. LeadSync staff only.

Licence: MIT.

来源:packages/mcp/README.md,提交 04ff954

工具

14

get_me

Returns the account (id, email, username, plan level, subscription), the key (name, scope, can_write_accounts, can_test_lead), acting_on_other_account and limits; no balance. Use it first to confirm which account you are working on.

输入参数account_id

find_accounts

Admin keys only. Matches email, username or page name, up to 20 accounts, so you can pick an account_id to act on.

输入参数q必填account_id

get_connections

Returns the sources (pages) -> lists graph (each list with `active`, `mapping_set` and its destinations) plus the account's connections with their autoresponders. A source's LeadSync page id is `page.id`; its Facebook id is `page.page_fb_id`. Use it to find a page_id, list_id or connection_id. It cannot show a list's current mapping, only whether one is set.

输入参数account_id

get_destination_fields

Returns the fields a destination connection accepts, for building a field mapping. For Google Sheets pass sheet_id, the exact TAB NAME inside the spreadsheet, not the spreadsheet id. Ask the human for it (new Google Sheets often use "Sheet1", but a sheet created another way may be "Untitled"); a destination_error with a sheet_id usually means the tab name is wrong, check that before suggesting a reconnect.

输入参数sheet_idaccount_idconnection_id必填

list_autoresponders

Lists the account's autoresponders and the connection each is attached to. Every lead through a connection gets every autoresponder on it.

输入参数account_id

list_leads

Lists recent leads, newest activity first, with the delivery status for each destination. The first stop for "why didn't my lead arrive": check for failed, pending or held deliveries. `since` defaults to 7 days ago and the response echoes the value used as `since_used`; `limit` defaults to 50 (max 200). A lead counts as "never reached LeadSync" only when the window covered its time (pass `since` earlier than the lead's time) and fewer than `limit` rows came back; otherwise narrow with list_id, status or since, or escalate.

输入参数limitsincestatuslist_idaccount_id

list_email_log

Lists emails LeadSync sent (lead notifications, autoresponders, system mail). The first stop for "why didn't my lead arrive" when the destination is an email address, or to check an autoresponder fired.

输入参数typelimitsincelist_idaccount_id

refresh_forms

Re-reads the page's lead forms from Meta so newly created forms appear and attached ones are marked; each form's leads_count shows whether it is live, and forms[].questions[] lists its questions (key, label and type): use each key as the form field key when mapping. Takes the LeadSync page id (sources[].page.id from get_connections).

输入参数page_id必填account_id

attach_form

Attaches a lead form to a destination connection by creating a list. Send mapping AND settings in this same call: a NEW list immediately replays up to 7 days of that form's leads using the mapping given here, so mapping afterwards delivers the replay unmapped. Idempotent on page, form and connection (an existing list comes back with created false, mapping_applied false and a hint; its mapping is untouched). form_id "catch_all" catches every form on the page; Google Sheets needs settings.sheet_id, the TAB NAME. Gated: on another account, or a live form, wait for the human's yes first. override_limits is admin-only and audited.

输入参数form_id必填mappingpage_id必填settingsform_nameaccount_idconnection_id必填override_limits

set_list_active

Pauses or resumes delivery for one list. Resuming can use a source slot and is refused if another active list covers the same form and connection.

输入参数active必填list_id必填account_idoverride_limits

set_mapping

Sets an EXISTING list's field mapping and/or per-list settings. Replaces the whole mapping with what you send; settings keys are merged. Send `settings` alone to leave the mapping untouched. An empty mapping object clears it. No tool can read the current mapping, so on a list with mapping_set true never send `mapping` unless the human has given the complete mapping; otherwise the change is made in the LeadSync UI. Send at least one of mapping or settings. For a new list, put the mapping in attach_form instead.

输入参数list_id必填mappingsettingsaccount_id

create_autoresponder

Creates an email autoresponder on a connection. A gated write on another account: it starts emailing the customer's prospects, so wait for the human's yes (on another account there may be no 409 warning). Every lead through the connection receives every autoresponder on it; a 409 lists what is already attached, ask the human before acknowledging.

输入参数name必填content必填subject必填from_nameaccount_idreply_emailconnection_id必填content_formatoverride_limitsacknowledge_shared_connection

resend_lead

Requeues a Meta lead's failed or held deliveries. Meta leads only, only failed or held legs, refused while the lead is still in flight; duplicates are irreversible so check list_leads first. Delivery is asynchronous (about a minute); poll list_leads.

输入参数list_idaccount_idleadgen_id必填

send_test_lead

Asks Meta to create a test lead for a list's form. The test lead goes to the list's real destinations; on another account it may email the customer, so ask the human before setting acknowledge_customer_impact. Without it on another account the API answers 400 customer_impact_not_acknowledged.

输入参数list_id必填account_idacknowledge_customer_impact

版本历史

1
  1. v0.1.1最新Oct 30, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分