
wsapi-mcp
MCP server letting AI assistants send and manage WhatsApp messages via WSAPI
The repository was last updated 10 days ago and is published under MIT.
wsapi-mcp is an open-source MCP server for communication. It is available on API, CLI and Self-hosted.
- Pricing
- Open source
- Platforms
- API, CLI, Self-hosted
- GitHub stars
- 4
- Last commit
- Language
- TypeScript
- License
- MIT
Similar MCP servers
About wsapi-mcp
Connects AI clients such as Claude to WhatsApp through the WSAPI gateway. Once running, a model can send messages, look up contacts, work with groups, communities and newsletters, post status updates and handle calls and media, all driven by tool calls rather than manual app use.
The server exposes more than 80 tools grouped into categories such as messaging, contacts, groups and media. Operators can narrow the set with environment variables, either by loading whole categories or by naming individual tools, which keeps the model's context window smaller. Passkey-protected accounts are supported through a flow where the account owner signs a WebAuthn challenge in a browser and the server handles the confirmation step.
It suits developers and operators who want an assistant to handle WhatsApp conversations or routine account tasks. Setup requires a WSAPI account with an API key and instance ID, and the project is run from source or through npx with Node.js 20.19 or later.
What it does
- Messaging and contact tools
- Send text and media messages and read or manage contacts and chats from an AI client.
- Groups, communities and newsletters
- Manage WhatsApp groups, communities and newsletter channels through dedicated tool sets.
- Status updates
- Post WhatsApp status updates as part of an automated workflow.
- Category and tool filtering
- Load only selected tool categories or individual tools to reduce context size.
- Passkey pairing support
- Guides account owners through WebAuthn passkey verification before a device links.
- Configurable base URL and logging
- Set the WSAPI base URL and log level through environment variables.
Good for
- Let an assistant reply to or send WhatsApp messages on a customer's behalf
- Automate contact and group management for a WhatsApp account
- Post scheduled status updates or newsletter messages from an AI workflow
- Give a developer a WhatsApp channel inside Claude Desktop or Claude Code
Pricing
Open source
wsapi-mcp FAQ
What do I need before running the server?
Node.js 20.19.0 or later and a WSAPI account with an API key and instance ID.
Can I limit which tools the model can use?
Yes. Set WSAPI_ENABLED_CATEGORIES or WSAPI_ENABLED_TOOLS to load only the categories or tools you need. If neither is set, all tools load.
Is the server affiliated with WhatsApp?
No. The project states it is not affiliated with, associated with, or endorsed by WhatsApp or Meta.
What licence does wsapi-mcp use?
MIT.
Is wsapi-mcp free?
Yes. wsapi-mcp is open source, so you can use and self-host it for free.
What are the best alternatives to wsapi-mcp?
The closest alternatives to wsapi-mcp are mcp, whatsapp-mcp, WaAPI, Whatsapp MCP and uni-msg WhatsApp.
Where this comes from
- Description: written from the project's README.

