wsapi-mcp is a Model Context Protocol (MCP) server implementation for WSAPI. WSAPI is a WhatsApp API gateway, and the purpose of this MCP server is to enable large language models (LLMs) to perform actions via WhatsApp, including sending messages, managing contacts and groups, handling communities and newsletters, posting status updates, and more.
Key capabilities: the server exposes more than 80 tools distributed across 12 categories: messaging, contacts, groups, chats, session, users, communities, newsletters, status, calls, media. The server covers 105 WhatsApp operations; Cloud Account/subscription and OSS management APIs are outside the scope of this integration.
Usage: requires Node.js >= 20.19.0 and a WSAPI account and API credentials (wsapi.chat). It can be added to the Claude Desktop configuration; the configuration file paths are: on macOS ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows %APPDATA%\Claude\claude_desktop_config.json. To reduce context window usage, the loaded tools can be filtered via environment variables: they can be loaded by category (e.g., loading only the messaging and contacts categories), by individual tool, or by using a category as a base set and adding individual tools from other categories. If neither variable is set, all tools are loaded.
Passkey pairing: some WhatsApp accounts require the owner to verify using a passkey (WebAuthn) before device linking. While this step is pending, the QR and pairing code tools return 409, and whatsapp_get_session_status reports passkeyStatus. The session category covers this flow: whatsapp_get_passkey_state returns WebAuthn challenge (or whatsapp_request_passkey_challenge requests a challenge from WhatsApp); the account owner needs to sign in the browser at https://web.whatsapp.com using navigator.credentials.get(); the agent cannot complete this itself because WebAuthn binds the origin into the signature; whatsapp_submit_passkey forwards the browser's PublicKeyCredential.toJSON() output. If the status becomes confirmation_required, show the confirmationCode to the owner for approval on their phone; the server sends the confirmation automatically, and whatsapp_confirm_passkey exists only for compatibility.
Use cases: suitable for scenarios that require automating or assisting with WhatsApp messages, contacts, groups, communities, newsletters, status, and other functions via LLMs, especially when integrated with MCP-capable clients such as Claude Desktop.
Limitations: requires a WSAPI account and API credentials; requires Node.js >= 20.19.0; Cloud Account/subscription and OSS management APIs are outside the scope of the integration; the passkey verification step must be completed manually by the account owner in a browser, and the agent cannot do it on their behalf. The project is licensed under MIT and has no affiliation, association, or endorsement relationship with WhatsApp or Meta.