
Gambot - Official WhatsApp Business API
io.github.gambot-ai由 GitHub 账号 gambot-ai 发布v1.9.1更新于 Oct 29, 2026
Official WhatsApp Business API MCP server for AI agents: messages, templates, webhooks, CRM.
概览
Gambot 官方 WhatsApp Business API 服务器,让助手发送 WhatsApp 消息与模板,并管理联系人、营销活动、机器人、CRM 记录和财务单据。
- 可以做什么
- 发送 WhatsApp 文本消息和已审核模板,并检查 24 小时会话窗口是否开启
- 读取会话、消息历史、对话记录和媒体链接,列出发送号码
- 创建、搜索和批量更新联系人、线索、工单、任务与备注
- 管理模板、营销活动(含 Excel 合并群发)、机器人与自动化,以及 Gambot AI 配置
- 处理报价、发票、订单、付款、签名、表单和文档模板,并生成分析报表
- 处理开户引导、Webhook、邮件、日历事件和 Facebook 潜在客户广告连接
- 适用场景
- 适合希望让助手端到端操作 WhatsApp Business 账号的场景:回复客户、执行模板群发、维护 CRM 记录,或搭建和开关自动回复机器人。也适合不想直接在 Meta Cloud API 上自建基础设施、倾向使用受管且经 Meta 认证服务商的团队。
- 运行要求
- 通过 npm 包 gambot-mcp 以 stdio 在本地运行,需要 Node.js 18 或更高版本。在 GAMBOT_TOKEN 中提供 Gambot 账号令牌可解锁完整工具集;不提供时服务器进入开户模式,仅暴露自助创建账号的工具。GAMBOT_API_BASE 可覆盖 API 基础地址。部分客户端还可使用托管远程端点。
安装
在 SourceWeft 中
- 打开 控制台中的 Gambot - Official WhatsApp Business API,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Gambot MCP Server — WhatsApp API for AI agents
[npm] [MCP Registry] [License: MIT]
Connect WhatsApp to Claude, ChatGPT, Gemini and Cursor. This is a Model Context Protocol server for the Gambot WhatsApp Business API (an official, Meta‑approved WhatsApp Business Solution Provider). It lets any MCP‑compatible client drive your Gambot account through tools — send WhatsApp messages & templates, run marketing campaigns, and manage contacts, leads, cases, tasks, quotes, invoices, orders, forms, signatures, document templates and users.
One-click install (Cursor): ➕ Add to Cursor — then paste your Gambot token into the server's env.
No Gambot account yet? Install exactly the same way but leave the token empty — the server starts in token‑less onboarding mode and the agent creates your WhatsApp Business account from scratch. See Token‑less onboarding mode.
It wraps the public REST API at https://api.gambot.co.il/api/v1, authenticated with your organization's Gambot Token. MCP is an AI‑facing interface over Gambot — it uses the same business logic as the REST API, and is not a separate backend.
Why Gambot instead of building on Meta's Cloud API directly
Both Gambot and a do-it-yourself integration run on the same official WhatsApp Business (Cloud) API from Meta — Gambot is an authorized Meta Business Solution Provider (BSP), not a WhatsApp Web/unofficial workaround, and you keep your own number/WABA. The difference is how much infrastructure you build and maintain:
Net: same official API, none of the plumbing to build or maintain, compliance enforced for you, and it's agent-ready. Full comparison: https://gambot.co.il/whatsapp-api-vs-meta-cloud-api/.
Supported AI clients
Step‑by‑step setup guides per client:
- Cursor — one‑click install or
.cursor/mcp.json→ https://gambot.co.il/whatsapp-mcp/cursor/ - Claude — Claude Desktop (npx) or a remote connector → https://gambot.co.il/whatsapp-mcp/claude/
- ChatGPT — hosted connector (Streamable HTTP + OAuth) → https://gambot.co.il/whatsapp-mcp/chatgpt/
- Gemini — Gemini CLI settings → https://gambot.co.il/whatsapp-mcp/gemini/
Hosted (remote) server: https://mcp.gambot.co.il/mcp (Streamable HTTP; OAuth or bearer token) — no local install needed.
Prerequisites
- Node.js 18+
- No account yet? You need nothing — start the server without a token and it runs in token‑less onboarding mode to create your Gambot account from scratch.
- Already have an account? A Gambot Token (
gmbt_…) from the Gambot admin panel → Settings → General, to unlock the full tool set.
Quick start (npx — recommended)
Once published to npm, no clone or build is needed — MCP clients run it on demand with npx.
Cursor (.cursor/mcp.json) / Claude Desktop (claude_desktop_config.json)
Optional env var GAMBOT_API_BASE overrides the base URL (defaults to https://api.gambot.co.il/api/v1).
No token yet? Token‑less onboarding mode
You don't need a Gambot account to get started. The token is a result of finishing onboarding (chicken‑and‑egg: a brand‑new org has no token yet), so the server also runs without GAMBOT_TOKEN. Just omit it — leave env empty:
Started token‑less, it enters onboarding mode and exposes only the public self‑serve tools — create a brand‑new account (free / co‑existence / bring‑your‑own number, or buy a number after e‑mail+WhatsApp verification), open the Meta Embedded Signup link in the browser, then poll gambot_get_onboarding_status until WhatsApp is connected. Just tell the agent "create a Gambot WhatsApp account for my business" and it walks you through it. Once connected, you get your gmbt_… token in‑app (Settings → General); add GAMBOT_TOKEN to the env above to unlock the full tool set. (Remote/OAuth clients like Claude & ChatGPT authorize per‑session through the hosted consent page instead.)
Local development (from source)
Then point your MCP client at the built entrypoint:
Tools
Bots & automations model
A conversational bot in Gambot is usually a package of botomations that were deployed together and share a sourceFlowId. gambot_list_bots returns role, triggerKind, sourceFlowId and linkedBotomationId on every item so an agent can reconstruct it. The full package, in order, is:
- Main bot (
role: main_bot,isBot: true) — the conversation itself. Three flavours:- menu — an opening template whose quick-reply buttons route to replies.
- ai — a
GambotAistep that hands the conversation to Gambot AI (the AI operator). - combined — a menu where some branches route to Gambot AI.
- Activator / מפעיל (
role: activator) — the trigger that starts the bot.triggerKindtells you how it fires:incoming_message(keyword/any),template_button,campaign_lead(a lead arrived from an ad/campaign),owner_assigned(a contact was assigned to an owner — e.g. Gambot AI),scheduled, or inactivity re-engagement ("no message in X days"). - Human-intervention cancel / ביטול בוט בהתערבות אנושית (
role: human_intervention_cancel) — fires when a human agent sends a message and stops the running bot so it never talks over a human. One is seeded active per org; a package can deploy its own.
Gambot AI (the AI operator) = ownership. To route a contact to Gambot AI, assign the contact's owner to Gambot AI. The Gambot-AI botomation's trigger is contactOwner == the Gambot AI user, so it then answers with a GambotAi step. An activator can therefore do "if no communication in X days → assign the contact to Gambot AI", and the AI takes over.
Building a bot in one call. gambot_deploy_bot_package assembles the whole package for you, in order — (1) main bot, (2) activator, (3) human-intervention cancel — all sharing one sourceFlowId. Pick botType: "menu" (give openingTemplateName + options, and an activator that sends the opening template: keyword / any_message / inactivity / campaign_lead) or botType: "keyword" (self-activating — its keyword IS the activator, so no separate activator is created). AI/combined bots (Gambot AI) are built in the Bot Builder app because they need a Gambot AI configuration.
Turning a bot on/off: gambot_set_bot_status toggles one botomation; pass includePackage: true to turn the whole bot (main + activator + cancel + Gambot AI) on or off together. Use gambot_get_bot_package first to see exactly what will change.
Example prompts
- "Send a WhatsApp to +972 50‑123‑4567 saying their order shipped."
- "Message everyone tagged
VIPwith thepromo_launchtemplate." - "How many WhatsApp messages did we receive today, and how many are waiting for a reply?"
- "Summarize today's customer‑service conversations."
- "Schedule a campaign to the
newslettertag for tomorrow at 10:00." - "Build a lead bot: when a lead arrives from an ad, send the
welcome_leadtemplate with buttons Sales/Support, and stop if I jump in." →gambot_deploy_bot_package(botType: "menu", openingTemplateName: "welcome_lead", options: [...], activator: { type: "campaign_lead" }). - "Turn off my lead bot completely (the bot, its trigger and the AI answer)." →
gambot_get_bot_packagethengambot_set_bot_status(includePackage: true, status: "inactive"). - "Which bots are active, and what triggers each one?" →
gambot_list_bots(readrole+triggerKind).
Agent behavior, errors & recovery
Gambot MCP is designed so an AI agent can understand what happened and what to do next — it interprets the API's structured business state and returns actionable guidance.
-
Structured errors. On an API error the tool result is JSON with a stable machine‑readable
code, the humanmessage, the API'sdata(state flags), and — when recoverable — arecommendedActionnaming a real tool. Example: -
Common recoveries.
CONVERSATION_WINDOW_CLOSED/TEMPLATE_REQUIRED→gambot_send_template;MISSING_TEMPLATE_VARIABLES→gambot_get_template_variables(then ask the user);CONTACT_NOT_FOUND→gambot_list_contacts(never guess a recipient);RATE_LIMITED/ messaging‑limit → back off, don't loop, use a campaign for bulk. -
Safety. The agent never silently picks an ambiguous recipient, and never loops single‑send tools for bulk — it's routed to campaigns.
-
Tool annotations. Read tools are marked read‑only/idempotent;
delete_*,disable_userandissue_invoiceare marked destructive; every tool isopenWorld(it talks to the live WhatsApp/Gambot backend). Use these to gate confirmations for external‑communication and high‑impact actions.
REST API & docs
- REST reference, auth, scopes and the full error‑code vocabulary: https://gambot.co.il/developers/
- WhatsApp API for AI agents: https://gambot.co.il/whatsapp-api-for-ai-agents/
Security
The Gambot Token is a secret (like a password). Keep it out of source control (use the client's env). You can rotate it any time from Gambot Settings → General, and optionally narrow its scopes there.
Publishing (maintainers)
This package ships with a server.json manifest for the official MCP Registry (registry.modelcontextprotocol.io). The registry only stores metadata, so the npm package must be published first, and the reverse‑DNS name in server.json must match mcpName in package.json (io.github.gambot-ai/gambot-mcp).
If your GitHub owner is not
gambot-ai, update thenameinserver.json,mcpNameinpackage.json, and therepository/identifierfields to match before publishing.
Once listed in the official registry, aggregators such as Glama, PulseMCP and Smithery
index the server automatically. A smithery.yaml is also included for Smithery.
来源:README.md,提交 a4a8fd8
工具
0版本历史
7- v1.9.1最新Oct 29, 2026
- v1.6.1Sep 27, 2026
- v1.6.0Sep 27, 2026
- v1.5.0Sep 23, 2026
- v1.4.0Sep 22, 2026
- v1.3.0Sep 20, 2026
- v1.0.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分