YCloud WhatsApp API MCP Server
Used as the runtime environment for the MCP server, allowing it to execute JavaScript code that interfaces with the YCloud WhatsApp API.
Used for package management and running scripts for the MCP server implementation.
Enables interaction with YCloud WhatsApp API, allowing sending messages, managing contacts, and accessing WhatsApp business features through the YCloud platform.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@YCloud WhatsApp API MCP Server send a WhatsApp message to +1234567890 saying 'Meeting at 3 PM tomorrow'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YCloud WhatsApp API MCP 服务器
English | 中文
这是一个基于Model Context Protocol (MCP)构建的YCloud WhatsApp API服务器。它能够自动从YCloud WhatsApp OpenAPI规范中生成工具,让AI模型(如Claude)可以直接与YCloud WhatsApp API交互。
前提条件
在使用此服务器之前,您需要:
在 YCloud官网 注册一个账户
获取您的API密钥(请参阅下面的说明)
安装必要的软件依赖(请参阅下面的说明)
Related MCP server: WhatsApp MCP Server
系统要求
Node.js v16.0.0 或更高版本
npm v7.0.0 或更高版本
Claude 桌面应用(如果要与 Claude 集成)
功能
自动从OpenAPI规范生成MCP工具
支持所有YCloud API端点
支持API认证
自动处理参数类型和验证
支持HTTP请求和响应处理
安装
# 克隆仓库
git clone https://github.com/YCloud-Developers/ycloud-whatsapp-mcp-server.git
cd ycloud-whatsapp-mcp-server
# 安装依赖
npm install
# 构建项目
npm run build使用方法
获取API密钥
要使用YCloud API,您需要一个API密钥进行身份验证:
登录到 YCloud控制台
导航到开发者页面
在此页面上,您可以找到您的API密钥
API密钥应作为请求头 X-API-Key 包含在所有API请求中。
环境变量配置
您可以通过以下环境变量配置服务器:
API_BASE_URL: YCloud API的基础URL(默认:https://api.ycloud.com/v2)OPENAPI_SPEC_PATH: OpenAPI规范的路径或URL(默认:https://docs.ycloud.com/openapi.json)API_HEADERS: API请求头(格式:key1:value1,key2:value2)
Claude桌面端集成
要在Claude桌面应用中使用此服务器,请编辑Claude配置文件:
找到或创建Claude桌面配置文件:
在macOS上:
~/Library/Application Support/Claude/claude_desktop_config.json在Windows上:
%APPDATA%\Claude\claude_desktop_config.json
添加以下配置:
{
"mcpServers": {
"ycloud-whatsapp": {
"command": "node",
"args": ["path/to/ycloud-whatsapp-mcp-server/build/index.js"],
"env": {
"API_BASE_URL": "https://api.ycloud.com/v2",
"API_HEADERS": "X-API-Key:your-api-key-here"
}
}
}
}替换
your-api-key-here为您的YCloud API密钥
直接运行
# 设置环境变量并运行
API_BASE_URL=https://api.ycloud.com/v2 \
API_HEADERS="X-API-Key:your-api-key-here" \
npm start示例
在Claude中,您可以使用以下提示来与YCloud API交互:
请帮我查询我的YCloud账户余额。Claude将能够调用适当的API端点并返回结果。
调试
在开发过程中,您可以使用以下方法调试MCP服务器:
查看服务器日志:服务器运行时会输出调试信息
使用MCP Inspector:您可以使用MCP Inspector工具来检查服务器的运行状态
Claude桌面端调试:在Claude桌面应用中可以查看服务器状态和日志
贡献
欢迎提交Pull Request或创建Issue来改进此项目。
许可证
MIT
Available Tools
19 toolswa_business_listB
List WABAs
Inputs: no named parameters.
wa_business_retrieveC
Retrieve a WABA
Inputs: id (required).
wa_inbound_markC
Mark message as read
Inputs: id (required).
wa_msg_retrieveC
Retrieve a message
Inputs: no named parameters.
wa_msg_sendD
Enqueue a message
Inputs: body.
wa_msg_send_directlyD
Send a message directly
Inputs: body.
wa_phone_listB
List phone numbers
Inputs: no named parameters.
wa_phone_registerC
Register a phone number
Inputs: wabaId (required), phoneNumber (required).
wa_phone_retrieveD
Retrieve a phone number
Inputs: wabaId (required), phoneNumber (required).
wa_phone_retrieve_commerce_settingsD
Retrieve commerce settings
Inputs: wabaId (required), phoneNumber (required).
wa_phone_retrieve_profileC
Retrieve a phone number profile
Inputs: wabaId (required), phoneNumber (required).
wa_phone_update_commerce_settingsD
Update commerce settings
Inputs: wabaId (required), phoneNumber (required), body.
wa_phone_update_profileC
Update a phone number profile
Inputs: wabaId (required), phoneNumber (required), body.
wa_template_createD
Create a template
Inputs: body.
wa_template_deleteC
Delete a template
Inputs: name (required), language (required).
wa_template_delete_by_nameC
Delete templates by name
Inputs: name (required).
wa_template_editD
Edit a template
Inputs: name (required), language (required), body.
wa_template_getC
Retrieve a template
Inputs: name (required), language (required).
wa_template_listC
List templates
Inputs: filter.name (required), filter.language (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have distinct purposes targeting specific WhatsApp API resources (WABAs, messages, phones, templates) with clear action verbs. However, wa_msg_send and wa_msg_send_directly could cause confusion as they both send messages with only a delivery timing distinction that might not be immediately clear from the names alone.
All tool names follow a consistent snake_case pattern with a clear wa_resource_action structure (e.g., wa_business_list, wa_msg_send, wa_template_create). The naming convention is predictable and uniform across all 19 tools, making them easily parsable.
With 19 tools, the count is slightly high but reasonable for a comprehensive WhatsApp API server covering multiple resource types (businesses, messages, phones, templates). It provides detailed operations without being overwhelmingly large, though it borders on the heavy side.
The tool set offers complete CRUD/lifecycle coverage for all key WhatsApp API domains: WABAs (list/retrieve), messages (send/retrieve/mark read), phone numbers (list/register/retrieve/update settings and profile), and templates (create/edit/get/list/delete). No obvious gaps exist for typical agent workflows.
Maintenance
Related MCP Connectors
Free WhatsApp MCP server for ChatGPT and Claude: read and search chats, every send you approve.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history — all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.
Your WhatsApp Business inbox in Claude or ChatGPT: who's waiting, follow-ups and replies.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Python server that enables language models like Claude to interact with WhatsApp Business API through GreenAPI, supporting features like sending messages and managing groups.527MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server that connects your personal WhatsApp account to AI agents like Claude, enabling them to search messages, view contacts, retrieve chat history, and send messages via WhatsApp.716 npm75ISC
- AlicenseNot gradedqualityDmaintenanceA local MCP server that connects WhatsApp to Claude via QR code, enabling chat listing, message retrieval, and sending with automatic rate limiting for anti-ban protection.45 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server exposing WhatsApp Cloud API operations as tools for AI agents like Claude Code, Cursor, and Codex.MIT