เซิร์ฟเวอร์ MCP Green API WhatsApp | PlugMCP
ข้ามไปยังเนื้อหา ไดเรกทอรี ผลิตภัณฑ์ แหล่งข้อมูล Pricing จากผู้เผยแพร่
เอกสารประกอบ MCP gateway for WhatsApp via Green API: messaging, contacts, groups and instance management.
เสียบเครื่องมือใดก็ได้เข้ากับเอเจนต์ใดก็ได้ ไดเรกทอรี MCP สำหรับคนที่ไม่เขียนเซิร์ฟเวอร์
ผลิตภัณฑ์
ไดเรกทอรี
นักพัฒนา
บริษัท
2026-10-23
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
Transports & endpoints The server supports four transports, selected via server.transport (or the GREEN_API_TRANSPORT env var):
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
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
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
whatsapp_get_contacts — contact list
whatsapp_get_contact_info — contact information
whatsapp_check_whatsapp — phone number check
Groups
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
whatsapp_receive_notification — receive an incoming notification (long-poll)
Partner API
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
คะแนนในไดเรกทอรี 48/100 อยู่ในรายการ 10 จาก 10
อยู่ใน MCP Registry ทางการ 18 จาก 18
ผู้ดูแลอ้างสิทธิ์แล้ว 0 จาก 8
ตอบกลับพร้อมรายการเครื่องมือ 12 จาก 12
ดาวบน GitHub 0 จาก 16
ยอดดาวน์โหลดรายสัปดาห์ 0 จาก 10
Rea Reverse engineer anything with agents, from app behavior down to native binaries. Scrapling 🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and trick Headroom Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server. TrendRadar ⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构 Markdown Here Google Chrome, Firefox, and Thunderbird extension that lets you write email in Markdown and render it before sending. Gmail Read, search, and send Gmail messages. Manage drafts, threads, and labels; reply, forward, archive, trash, report spam, and triage your inbox. Nanobot Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps Nanoclaw A lightweight alternative to OpenClaw that runs in containers for security. Connects to WhatsApp, Telegram, Slack, Discord, Gmail and other messaging apps,, has memory, scheduled jobs, and runs direct Fastmcp 🚀 The fast, Pythonic way to build MCP servers and clients. UnClick AI agent tool marketplace. 60+ tools for social, e-commerce, accounting, messaging, media, and more. Search and call tools for Slack, Reddit, Discord, Shopify, Xero, Bluesky, TMDB, Steam, and 50+ more OneSignal OneSignal is a customer engagement platform that lets you send targeted push notifications, emails, SMS, and in-app messages, manage audiences, and track campaign performance.
With the OneSignal MCP, LangBot Production-grade platform for building agentic IM bots - 生产级多平台智能机器人开发平台/ Agent、知识库编排、插件系统 / Bots for Discord / Slack / LINE / Telegram / WeChat(企业微信, 企微智能机器人, 公众号) / 飞书 / 钉钉 / QQ / Matrix e.g. Integr เซิร์ฟเวอร์ MCP หมวด Communication เซิร์ฟเวอร์ MCP ที่ดีที่สุดในหมวด Communication
ติดตั้ง Green API WhatsApp อย่างไร?
Connect a WhatsApp instance. Call this before using other tools. Validates credentials via getStateInstance.
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 browser and scan comforta
whatsapp_upload_file Upload a file to GREEN-API storage and return its URL. Use the returned URL with whatsapp_send_file.
คัดลอกคอนฟิก http สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
Green API WhatsApp ต้องใช้ API key ไหม? ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Green API WhatsApp ใช้ทรานสปอร์ตแบบใด? Green API WhatsApp เข้าถึงได้ผ่าน HTTP
Green API WhatsApp ถูกตรวจสอบล่าสุดเมื่อใด? ตรวจสอบล่าสุดเมื่อ 2026-10-23 MCP gateway for WhatsApp via Green API: messaging, contacts, groups and instance management.
เครื่องมือมีคำอธิบาย 6 จาก 6