WSAPI MCP Server logo

WSAPI MCP Server

Connect AI agents to WhatsApp via WSAPI to send messages and manage chats, groups, contacts, communities, and status.

Install WSAPI MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wsapi-chat-wsapi-mcp": {
      "command": "npx",
      "args": [
        "@wsapichat/mcp-server"
      ],
      "env": {
        "WSAPI_API_KEY": "YOUR_VALUE_HERE",
        "WSAPI_INSTANCE_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

WSAPI MCP Server connects AI agents to WhatsApp through the WSAPI REST API, exposing tools for messaging, contacts, chats, groups, communities, newsletters, status updates, calls, media, and session management. It runs through npx with a WSAPI API key and instance ID, and supports Claude Desktop and Claude Code configurations. Tool categories or individual tools can be enabled selectively to reduce context usage. Reach for it when an agent needs to operate a connected WhatsApp number through WSAPI.

Use cases

  • Send WhatsApp text and media messages from an AI workflow
  • Retrieve contacts and chats through WSAPI
  • Manage WhatsApp groups and communities
  • Publish status updates from an agent
  • Limit loaded tools to messaging or selected operations

Key features

  • WhatsApp messaging through WSAPI
  • Contact, chat, group, and community management
  • Newsletter and status operations
  • Session and passkey pairing flows
  • Category- and tool-level filtering
  • Media and call operations

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 39d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @wsapichat/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads269Package downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.

How WSAPI MCP Server works

What WSAPI MCP Server does

WSAPI MCP Server gives MCP-compatible AI clients access to WhatsApp operations through the WSAPI API Gateway. It can send messages and media, retrieve and manage contacts and chats, work with groups and communities, handle newsletters, publish status updates, and perform other operations on a connected WhatsApp number.

The integration covers 105 WhatsApp operations. Its scope is focused on WhatsApp functionality exposed through WSAPI; WSAPI cloud account and subscription features, along with OSS administration APIs, are outside the integration.

How it works

The server runs as a Node.js package and communicates with WSAPI using an API key and instance ID. A client starts it with npx @wsapichat/mcp-server, then makes the exposed operations available to an AI agent through MCP. WSAPI uses the configured base URL, which defaults to https://wsapi.chat.

Tool loading can be narrowed in two ways. WSAPI_ENABLED_CATEGORIES selects groups such as messaging, contacts, groups, chats, session, users, communities, newsletters, status, calls, and media. WSAPI_ENABLED_TOOLS selects named operations such as whatsapp_send_text, whatsapp_send_image, and whatsapp_get_contacts. Either setting can be used alone, or categories can provide a base set while individual tools add operations from elsewhere. Without filtering, the server loads all available tools.

Accounts that require passkey verification need an additional browser-based step before a device can link. The agent can obtain or request a WebAuthn challenge, but the account owner must sign it in a browser on https://web.whatsapp.com. The resulting credential is submitted to WSAPI; if confirmation is required, the owner approves the displayed code on their phone.

Setup and configuration

Node.js 20.19.0 or newer and a WSAPI account with API credentials are required. Configure the server with these required environment variables:

  • WSAPI_API_KEY: WSAPI API key.
  • WSAPI_INSTANCE_ID: WSAPI instance ID.

Optional settings include WSAPI_BASE_URL for a different WSAPI endpoint, WSAPI_ENABLED_CATEGORIES and WSAPI_ENABLED_TOOLS for tool filtering, and LOG_LEVEL for error, warn, info, or debug logging.

Claude Desktop can launch the package through its MCP configuration file. Claude Code can add the same command with claude mcp add, passing the credentials and filtering variables as environment settings. For local development, clone the repository, install dependencies with npm, create a .env file from .env.example, build, and start the package.

Tools and capabilities

Available operations cover:

  • Sending text, images, and other media through WhatsApp.
  • Reading and managing contacts and chats.
  • Managing groups, communities, and newsletters.
  • Handling session and device-linking flows.
  • Working with users, status updates, calls, and media.
  • Selecting tools by category or exact tool name.

The project is licensed under MIT. It is not affiliated with, associated with, or endorsed by WhatsApp or Meta.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about WSAPI MCP Server

WSAPI MCP Server is an MCP server that connects AI clients to WhatsApp through the WSAPI REST API. Its tools support messaging and media, contacts, chats, groups, communities, newsletters, status updates, calls, session management, and other operations for a connected WhatsApp number.

Install it by running `npx @wsapichat/mcp-server` from an MCP client configuration. Node.js 20.19.0 or newer, a WSAPI account, an API key, and an instance ID are required.

Set `WSAPI_API_KEY` and `WSAPI_INSTANCE_ID` in the MCP client's environment configuration. You can also set `WSAPI_BASE_URL`, tool filters, and `LOG_LEVEL` when needed.

Set `WSAPI_ENABLED_CATEGORIES` to load selected categories or `WSAPI_ENABLED_TOOLS` to load specific operations. You can combine both settings, and leaving both unset loads all tools.

Yes, WSAPI MCP Server includes setup patterns for both Claude Desktop and Claude Code. Claude Desktop uses its MCP configuration file, while Claude Code adds the server with `claude mcp add`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWSAPI MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wsapi-chat-wsapi-mcp?style=directory)](https://allmcps.com/mcp/wsapi-chat-wsapi-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/wsapi-chat-wsapi-mcp"><img src="https://allmcps.com/api/badge/wsapi-chat-wsapi-mcp?style=directory" alt="WSAPI MCP Server on AllMCPs" /></a>