wuzapi-mcp
Sends WhatsApp messages and reads message history through a WuzAPI server. Supports text, media, buttons, lists, polls, and carousels, with recipient allowlist checks and safeguards against sending to status broadcasts or exposing session-management actions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wuzapi-mcp
A small Model Context Protocol server that lets an AI agent (Claude Code, opencode, or any MCP client) send WhatsApp messages through a WuzAPI server.
It is deliberately narrow: it only sends messages and reads history, every send is checked against a recipient allowlist, and it never exposes session management (logout, disconnect, QR code or pairing).
Requirements
Node.js 22 or newer
A running WuzAPI server with at least one connected user session
Related MCP server: WAHA MCP Server
Install
git clone <this repository> wuzapi-mcp
cd wuzapi-mcp
npm install
npm test # local tests with a fake HTTP server, no networkConfiguration
All configuration comes from environment variables:
Variable | Required | Description |
| yes | Base URL of the WuzAPI server, e.g. |
| yes | JSON object mapping a session name (your choice) to a WuzAPI user token, e.g. |
| yes, to send | Comma-separated phone numbers or JIDs that may receive messages, e.g. |
| no | Path to a dotenv file to load. Variables already present in the environment take precedence |
Example wuzapi.env (keep it out of version control; *.env is git-ignored):
WUZAPI_URL=https://wuzapi.example.com
WUZAPI_TOKENS={"main":"YOUR_USER_TOKEN"}
WA_ALLOW=15551234567Client setup
Claude Code
claude mcp add wuzapi -e WA_ENV_FILE=/path/to/wuzapi.env -- node /path/to/wuzapi-mcp/server.mjsopencode
In opencode.json:
{
"mcp": {
"wuzapi": {
"type": "local",
"command": ["node", "/path/to/wuzapi-mcp/server.mjs"],
"environment": { "WA_ENV_FILE": "/path/to/wuzapi.env" },
"enabled": true
}
}
}Tools
Tool | WuzAPI endpoint | Notes |
|
| Status of every configured session |
|
| Optional |
|
| URL or base64 data URL |
|
| Button types |
|
| Sections with selectable rows |
|
| Single choice only |
|
| 2+ image cards; buttons |
|
| Requires message history to be enabled on the server |
All tools target the routes of upstream WuzAPI. Interactive messages (buttons, the envelope modes, voice-call buttons, carousel) were added to WuzAPI relatively recently: older releases or other forks may lack those endpoints or fields, so check the routes of the version you run. Whether WhatsApp actually renders buttons, lists and carousels depends on the recipient's client (phone, desktop, web) and can change without notice.
Not included on purpose:
Status (stories) posting: limiting the audience requires a field that upstream WuzAPI does not support; without it a status would go to all contacts.
Product catalog management: the endpoints exist only in some forks, and WhatsApp currently does not answer those catalog queries for most accounts, so it is experimental and may not work.
Safety notes
Every
send_*call is checked againstWA_ALLOWbefore any HTTP request is made. With an empty allowlist nothing can be sent. Use*only on test numbers.Sending to
status@broadcastis refused.No logout, disconnect, QR code or pairing tools are exposed, so an agent cannot break or hijack a session.
Tokens are sent only in the
Tokenheader. They are never accepted as tool arguments, any echo of a configured token in a response is replaced with[REDACTED], and any response field namedtokenis redacted.There is no automatic retry. A transport error is reported as "result may be uncertain" so the agent does not send duplicates.
Prefer a dedicated test session over a production number while experimenting.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Send WhatsApp messages and templates, manage chats, contacts, broadcasts and AI agents.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Read, summarize and send your own WhatsApp messages from AI assistants (OAuth 2.1).
Operate WhatsApp from an agent: read conversations and contacts, send messages, by API key.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with WhatsApp through the WSAPI service, supporting comprehensive messaging, contact management, group operations, and account management functionality. Allows sending various media types, managing chats, and controlling WhatsApp sessions through natural language.10120 npm4MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with WhatsApp through the WAHA (WhatsApp HTTP API) platform. Supports chat management, message operations including sending/receiving messages, and marking chats as read.5211ISC
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to send WhatsApp messages, templates, and retrieve media through the WhatsApp Cloud API. Provides webhook handling and seamless integration with Meta's WhatsApp Business platform.23ISC
- AlicenseBqualityCmaintenanceEnables an AI assistant to read and send WhatsApp messages, search contacts and chats, manage messages and media, and sync history through the api-supp WhatsApp bridge's REST API.13MIT