原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Green API WhatsApp

作者:green-api版本 0.1.2i★ –i在云端运行
注册名称com.green-api/whatsapp

安装

概览

作者提供的说明(英文原文)

MCP gateway for WhatsApp via Green API: messaging, contacts, groups and instance management.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在云端运行
  • 传输方式: Streamable HTTP, SSE
  • 分类: 聊天与邮件
  • 你需要填写:X-Instance-Id, X-Api-Token

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。

在终端中运行这条命令

claude mcp add --transport http whatsapp https://mcp.green-api.com/mcp --header 'X-Instance-Id: your-value' --header 'X-Api-Token: your-value'

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "whatsapp": {
      "url": "https://mcp.green-api.com/mcp",
      "headers": {
        "X-Instance-Id": "your-value",
        "X-Api-Token": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "whatsapp": {
      "type": "http",
      "url": "https://mcp.green-api.com/mcp",
      "headers": {
        "X-Instance-Id": "your-value",
        "X-Api-Token": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • X-Instance-Id 机密 必填 HTTP header
    Green API instance ID
  • X-Api-Token 机密 必填 HTTP header
    Green API instance token

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

工具名称和描述与服务器在 2026年11月10日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • whatsapp_add_group_participant

    Add a participant to a WhatsApp group

  • whatsapp_check_whatsapp

    Check whether a phone number has a WhatsApp account

  • whatsapp_connect

    Connect a WhatsApp instance. Call this before using other tools. Validates credentials via getStateInstance.

  • whatsapp_create_group

    Create a WhatsApp group

  • whatsapp_create_instance

    Create a new WhatsApp instance via the GREEN-API Partner API

  • whatsapp_delete_instance

    Delete a WhatsApp instance via the GREEN-API Partner API

  • whatsapp_delete_message

    Delete a message

  • whatsapp_delete_notification

    Delete a notification from the queue (acknowledge receipt)

  • whatsapp_disconnect

    Disconnect a WhatsApp instance and remove credentials from the session

  • whatsapp_edit_message

    Edit a previously sent message

  • whatsapp_forward_messages

    Forward messages to another chat

  • whatsapp_get_authorization_code

    Get an authorization code for sign-in by phone number

  • whatsapp_get_chat_history

    Get chat message history. Use a small 'count' (default 50, max 100) to keep responses focused.

  • whatsapp_get_contact_avatar

    Get the avatar of a contact or group

  • whatsapp_get_contact_info

    Get information about a contact or group

  • whatsapp_get_contacts

    Get the contact list

  • whatsapp_get_group_data

    Get group data (members, name, invite link)

  • whatsapp_get_instances

    List all partner instances via the GREEN-API Partner API

  • whatsapp_get_message

    Get a message by ID

  • whatsapp_get_qr

    Get the QR code for instance authorization. The result contains the QR as an image and a qrLink URL to an official GREEN-API page with a full-size auto-refreshing QR code. Always include the qrLink in your response as a clickable markdown link so the user can open it in the brows

  • whatsapp_get_settings

    Get instance settings

  • whatsapp_get_state

    Get instance state (authorized, notAuthorized, blocked, sleepMode)

  • whatsapp_get_wa_settings

    Get WhatsApp account settings (name, description, etc.)

  • whatsapp_last_incoming_messages

    Get recent incoming messages from the last N minutes (default 60, max 1440 = 24 hours).

  • whatsapp_last_outgoing_messages

    Get recent outgoing messages from the last N minutes (default 60, max 1440 = 24 hours).

  • whatsapp_leave_group

    Leave a WhatsApp group

  • whatsapp_logout

    Log out the WhatsApp instance

  • whatsapp_read_chat

    Mark chat messages as read

  • whatsapp_reboot

    Reboot the WhatsApp instance

  • whatsapp_receive_notification

    Get one notification from the queue (manual polling)

  • whatsapp_remove_group_admin

    Revoke admin rights from a group member

  • whatsapp_remove_group_participant

    Remove a participant from a WhatsApp group

  • whatsapp_send_contact

    Send a contact card via WhatsApp

  • whatsapp_send_file

    Send a file by URL

  • whatsapp_send_file_by_upload

    Send a file directly to a chat via multipart upload (no separate URL step)

  • whatsapp_send_location

    Send a location

  • whatsapp_send_message

    Send a text message via WhatsApp

  • whatsapp_send_poll

    Send a poll via WhatsApp

  • whatsapp_set_group_admin

    Promote a group member to admin

  • whatsapp_set_settings

    Update instance settings (webhooks, proxy, etc.)

  • whatsapp_upload_file

    Upload a file to GREEN-API storage and return its URL. Use the returned URL with whatsapp_send_file.

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 green-api.com 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • ✓ 通过

    端点有响应

    在 261 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 41 个工具描述,未发现针对 AI 的隐藏指令

与“聊天与邮件”中的其他服务器比较i

  • 星标数多于此分类中其他 1911 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1911 个服务器的 17% 更新
  • 基础检查结果等于或优于此分类中其他 1911 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Green API WhatsApp 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:X-Instance-Id, X-Api-Token

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.2)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

作者:Vexa-ai广泛使用★ 29492个月前更新

在云端运行✓ vexa.ai

emailmd

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

作者:anypost广泛使用↓ 5342/周★ 138534天前更新

电脑或云端✓ emailmd.dev

MCP WhatsApp Cloud

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

作者:codespar起步阶段↓ 63/周★ 2775个月前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

green-api-mcp-gateway

  • Документация на русском

Support Links

Guides & News


MCP gateway for GREEN-API WhatsApp. Lets AI agents (Claude Desktop, OpenClaw, Cursor, and others) send messages, manage instances, and receive notifications via WhatsApp using the Model Context Protocol.

What it does

Send text messages, files by URL, locations, contacts, polls. Forward and edit messages. Manage groups (create, fetch data, add/remove participants). Check phone numbers for WhatsApp, fetch contacts and their info. Get instance state and settings, QR code for authorization. Receive incoming notifications via polling or an HTTP receiver. Partner API for creating/deleting instances. Multi-instance support in a single gateway. Prompt templates for common scenarios (customer support, broadcasts). Prometheus metrics and OpenTelemetry.

Instructions for connecting the MCP server can be found on our website

Architecture

Clean Architecture (Ports & Adapters):

cmd/server/main.go                    — entry point, DI wiring

internal/ domain/ — business entities, errors, constants (zero dependencies) application/ — ports (interfaces) infrastructure/ auth.go — CredentialManager (in-memory credential store) config/config.go — YAML + env configuration greenapi/client.go — WhatsApp client via Go SDK mcp/ server.go — MCP server (stdio/sse) tools.go — MCP tools registration resources.go — MCP resources prompts.go — MCP prompts webhook/ bridge.go — polling bridge receiver.go — HTTP receiver

Build

go build -o green-api-mcp-gateway ./cmd/server

Requires Go 1.25+.

Transports & endpoints

The server supports four transports, selected via server.transport (or the GREEN_API_TRANSPORT env var):

TransportEndpoints (relative to host:port)Use case
stdiostdin/stdoutLocal CLIs (Claude Desktop, Cursor) launching the binary.
sseGET / (stream) + POST /messageLegacy MCP clients (SSE only).
httpPOST/GET /mcpStreamable HTTP (MCP 2025-03-26+) — preferred for new clients.
hybrid/sse + /message and /mcp on one portPublic server: serves both legacy SSE and Streamable HTTP.

All HTTP-based transports also expose:

  • GET /health, GET /healthz — health probes (no auth)
  • GET /favicon.ico, GET /favicon.png — GREEN-API icon

When auth.mode: proxy is enabled, the OAuth 2.0 PKCE endpoints are added too:

  • GET /.well-known/oauth-authorization-server — RFC 8414 metadata
  • GET /.well-known/oauth-protected-resource — RFC 9728 metadata
  • GET /authorize — browser-facing authorization form
  • POST /token — token exchange

Configuration

Via YAML
server:

transport: stdio # stdio | sse | http | hybrid port: 8090

auth: mode: config # config | proxy cache_ttl: 300 # seconds (proxy mode only)

green_api: instances:

  • id: 1101000001 api_token: "YOUR_TOKEN" api_url: "https://api.green-api.com"

webhook: mode: polling polling_timeout: 20

rate_limit: requests_per_second: 10 burst: 20

logging: level: info format: text

Via environment variables

Environment variables take precedence over the YAML config:

The variables below cover both deployment modes. Credentials variables (GREEN_API_INSTANCE_ID, GREEN_API_TOKEN, GREEN_API_URL) apply only to local stdio runs with auth.mode: config. For HTTP transports (sse on /sse + /message, http on /mcp, or hybrid) use auth.mode: proxy instead — credentials arrive in HTTP headers or via the built-in OAuth flow and the env credentials are ignored.

  • GREEN_API_INSTANCE_ID — instance ID
  • GREEN_API_TOKEN — API token
  • GREEN_API_URL — API base URL (defaults to https://api.green-api.com)
  • GREEN_API_TRANSPORT — transport: stdio, sse, http, or hybrid
  • GREEN_API_PORT — HTTP port (defaults to 8090)
  • GREEN_API_BASE_URL — public base URL (used for OAuth issuer/redirects, e.g. https://mcp.example.com)
  • GREEN_API_WIDGET_DOMAIN — unique widget origin for ChatGPT Apps submission metadata (defaults to GREEN_API_BASE_URL, then https://mcp.green-api.com)
  • GREEN_API_AUTH_MODE — config or proxy
  • GREEN_API_AUTH_CACHE_TTL — proxy-auth credential cache TTL (seconds)
  • GREEN_API_WEBHOOK_MODE — polling or receiver
  • LOG_LEVEL — log level
  • LOG_FORMAT — text or json

Run

# With environment variables

export GREEN_API_INSTANCE_ID=1101000001 export GREEN_API_TOKEN=your_token ./green-api-mcp-gateway

With a config file

./green-api-mcp-gateway --config config.yaml

Integration

Claude Desktop (local stdio)

Add to claude_desktop_config.json:

{

"mcpServers": { "whatsapp": { "command": "/path/to/green-api-mcp-gateway", "args": ["--config", "/path/to/config.yaml"] } } }

OpenClaw
mcp:

servers:

  • name: whatsapp command: /path/to/green-api-mcp-gateway args: ["--config", "/path/to/config.yaml"]
Docker
docker build -t green-api-mcp-gateway .

docker run --rm -i \ -e GREEN_API_INSTANCE_ID=1101000001 \ -e GREEN_API_TOKEN=your_token \ green-api-mcp-gateway

MCP Tools

Messaging

*Link to documentation*

  • whatsapp_send_message — text message
  • whatsapp_send_file — file by URL
  • whatsapp_send_location — location
  • whatsapp_send_contact — contact (vCard)
  • whatsapp_send_poll — poll
  • whatsapp_forward_messages — forward
  • whatsapp_edit_message — edit
  • whatsapp_delete_message — delete
Instance

*Link to documentation*

  • whatsapp_get_state — authorization state
  • whatsapp_get_settings — current settings
  • whatsapp_set_settings — update settings
  • whatsapp_get_qr — authorization QR code
  • whatsapp_connect — connect instance
  • whatsapp_disconnect — disconnect instance
Contacts

*Link to documentation*

  • whatsapp_get_contacts — contact list
  • whatsapp_get_contact_info — contact information
  • whatsapp_check_whatsapp — phone number check
Groups

*Link to documentation*

  • whatsapp_create_group — create a group
  • whatsapp_get_group_data — group data
  • whatsapp_add_group_participant — add a participant
  • whatsapp_remove_group_participant — remove a participant
  • whatsapp_leave_group — leave a group
Notifications

*Link to documentation*

  • whatsapp_receive_notification — receive an incoming notification (long-poll)
Partner API

*Link to documentation*

  • whatsapp_create_instance — create an instance
  • whatsapp_delete_instance — delete an instance
  • whatsapp_get_instances — list instances

MCP Resources

  • whatsapp://instance/{id}/state — instance state
  • whatsapp://instance/{id}/settings — instance settings

MCP Prompts

  • whatsapp_customer_support — template for customer support
  • whatsapp_broadcast — template for broadcast messaging

Dependencies

Development

go test ./...

gofmt -w . GOOS=linux GOARCH=amd64 go build -o green-api-mcp-gateway-linux ./cmd/server

License

MIT — see LICENSE.

问 PopNx