@wsapichat/mcp-server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server for WSAPI - the WhatsApp API Gateway. Enables LLMs to send messages, manage contacts and groups, handle communities and newsletters, post status updates, and more through WhatsApp.
For comprehensive documentation, see the WSAPI MCP Server guide.
> **Note**: This project is not affiliated with, associated with, or endorsed by WhatsApp or Meta.
Installation
Prerequisites
- Node.js >= 20.19.0
- WSAPI account with API credentials (wsapi.chat)
Claude Desktop
Add to your Claude Desktop configuration:
**macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json
**Windows**: %APPDATA%\Claude\claude_desktop_config.json
Claude Code
Tool Filtering
The server exposes 80+ tools across 12 categories. To reduce context window usage, you can filter which tools are loaded using environment variables.
By category
Load only messaging and contact tools:
Available categories: messaging, contacts, groups, chats, session, users, communities, newsletters, status, calls, media
By individual tool
Load only specific tools:
Combined
Use categories as a base set and add individual tools from other categories:
If neither variable is set, all tools are loaded.
Configuration
| Variable | Required | Default | Description |
| -------------------------- | -------- | -------------------- | ---------------------------------------- |
| WSAPI_API_KEY | Yes | - | Your WSAPI API key |
| WSAPI_INSTANCE_ID | Yes | - | Your WSAPI instance ID |
| WSAPI_BASE_URL | No | https://wsapi.chat | WSAPI base URL |
| WSAPI_ENABLED_CATEGORIES | No | _(all)_ | Comma-separated tool categories to load |
| WSAPI_ENABLED_TOOLS | No | _(all)_ | Comma-separated tool names to load |
| LOG_LEVEL | No | info | Logging level (error, warn, info, debug) |
Development
License
MIT - see LICENSE for details.
Links
- WSAPI MCP Server Documentation
- WSAPI Documentation
- Model Context Protocol
Unreleased contract update
The source covers 101 WhatsApp operations; Cloud Account/subscription and OSS admin APIs are outside this integration's scope. Changes in this working tree have not been published. See CHANGELOG.md.