# whatsapp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/wacli-me/wacli-me  
**GitHub Stars:** 3  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/whatsapp-5

## Description
Your own WhatsApp as an MCP server: read, search and send from any MCP client.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "whatsapp": {
    "url": "https://wacli.me/mcp"
  }
}
```

## Documentation

## What the whatsapp MCP server does

The whatsapp MCP server provides an MCP gateway for a WhatsApp account managed through the wacli CLI. It exposes tools for reading and searching messages, and can register a `send_message` tool when sending is explicitly enabled for a tenant. MCP clients connect over Streamable HTTP rather than launching a local process.

An account is linked through a QR flow similar to WhatsApp Web. After linking, the service provides a connection URL and bearer token. Each token maps to one wacli store directory, allowing separate tenants to use isolated account data.

## How it works

The Node server serves MCP requests at `/mcp`. Every request must include a valid `Authorization: Bearer …` header. The server resolves the token to a tenant, then constructs tools for that tenant's wacli store. Read operations invoke wacli in read-only mode.

The `/connect` page supports self-service linking and issues a token. The service also exposes a landing page at `/`, a liveness endpoint at `/healthz`, and OAuth 2.1 discovery endpoints under `/.well-known/oauth-*`. These endpoints support connection and monitoring workflows; MCP tool calls still require tenant authentication.

Message history depends on synchronization. Running `wacli --store stores/<tenant> sync` backfills history and should continue as a daemon when ongoing updates are needed. Without a sync process, the store contains only data retrieved during the last run.

## Setup and configuration

For self-hosting, install the server dependencies, build the site, and start the Node process:

```sh
npm install --prefix server
node scripts/build.mjs
PORT=8787 HOST=127.0.0.1 node server/server.mjs
```

The `PORT` variable controls the listening port, `HOST` controls the bind address, `WACLI_BIN` selects the wacli executable, and `WACLI_ME_TENANTS` selects the tenant configuration file. Defaults are provided for all four variables.

Create a tenant entry with an ID, a random token, a store path, and an `allowSend` setting. Tokens can be generated with `openssl rand -hex 32`. The tenant file is reread every five seconds, so adding a tenant does not require a restart. To link an account manually, run wacli's `auth` command for the tenant store and scan the displayed QR code.

## Tools and capabilities

The whatsapp MCP server supports these capabilities based on tenant configuration:

- Read WhatsApp data through wacli-backed MCP tools.
- Search the linked account's stored messages.
- Send messages through `send_message` only when `allowSend` is true.
- Keep tenant data separated by mapping each token to one store directory.

Sending is disabled when `allowSend` is false, and the tool is not registered in that case. This makes read-only access the default configuration.

## Limitations and notes

The project is a public alpha and currently runs as a single host and single process. The service should bind to loopback and be published through a tunnel instead of exposing its port directly. Tenant tokens and store directories must be treated as credentials: possession of a store can provide access to the linked account's messages.

Linking uses an unofficial WhatsApp client, which conflicts with WhatsApp's terms of service and may result in a blocked number. Use accounts you own and communicate this risk to users. The hosted service is available at `https://wacli.me`, while self-hosting is supported by the repository.

_Full upstream README: https://allmcps.com/mcp/whatsapp-5/readme_

