# whatsapp-mcp-kit [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/tonydzi/whatsapp-mcp-kit  
**GitHub Stars:** 13  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/whatsapp-mcp-kit

## Description
Link WhatsApp to Claude (or any MCP client) in ~20 minutes: a live self-refreshing QR page that makes pairing actually work, production patches, and 12 field gotchas. On top of @sjawhar/whatsapp-mcp.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/tonydzi/whatsapp-mcp-kit), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/tonydzi/whatsapp-mcp-kit <KIT_DIR>
```

2. Configure:

```sh
mkdir <SERVER_DIR> && cd <SERVER_DIR>
```

3. Configure:

```sh
npm init -y
```

4. Install:

```sh
npm install --save-exact @sjawhar/whatsapp-mcp@2.4.0
```

5. Check the setup:

```sh
git apply --check <KIT_DIR>/patches/0001-qr-raw-to-stderr.patch
```

6. Sign in:

```sh
python <KIT_DIR>/pair/wa_qr_live.py
```

## Documentation

## What whatsapp-mcp-kit does

whatsapp-mcp-kit packages the setup around an unofficial WhatsApp MCP implementation so an AI assistant can access a human-owned WhatsApp account. The connected assistant can read chats and send messages through the account. The kit adds pairing helpers, prompts, configuration examples, operational checks, patches for the upstream package, and recovery guidance.

The connection uses Baileys rather than an official WhatsApp API. Linking happens as a WhatsApp companion device: the person with the phone opens WhatsApp's Linked devices screen and scans a QR code shown by the local helper. A separate phone number is recommended because WhatsApp may restrict accounts that use unofficial clients.

## How it works

The setup is designed around one local owner service for each WhatsApp account. The MCP process runs on loopback and exposes an HTTP endpoint at `/mcp`; Claude Code and Codex can then connect to that shared endpoint instead of each starting a separate WhatsApp connection. Multiple accounts require separate private data roots and separate owner services.

A Python QR helper keeps its input open and renders a refreshing local page containing the pairing image. After pairing, the account state is stored in a private data directory. The kit includes offline self-tests for QR handling and helper behavior, but a successful port check, cached profile, old chat list, or clean process exit is not proof of live message delivery. Verification uses a newly received test word and a controlled service restart.

## Setup and configuration

The documented workflow expects Node.js, npm, Git, Python 3, and a Windows, macOS, or Linux machine. Setup starts by cloning the kit, creating an isolated npm installation for the upstream WhatsApp MCP package, and applying the kit's patches after checking them. A Python virtual environment is used for the QR helper and its image dependencies.

Pairing uses `WHATSAPP_MCP_DIR`, `XDG_DATA_HOME`, and `WA_QR_WORK_DIR`. The owner service also receives `MCP_API_KEY` and `ALLOWED_SEND_DIR` from a protected environment. Bind the service to `127.0.0.1`, not `0.0.0.0`, and keep the bearer key out of source control, command arguments, logs, and reports.

The repository includes example HTTP configuration for Claude and Codex. Before changing an installation, inventory existing MCP entries, processes, data folders, and listening ports. During removal, stop only the service created for this account, remove the MCP entries it added, and unlink the device from WhatsApp. Delete private account data only with the account owner's explicit approval.

## Tools and capabilities

- Read WhatsApp chats through an MCP client.
- Send WhatsApp messages using the linked account.
- Pair an account through a local, refreshing QR page.
- Run the QR helper's self-test and regression checks.
- Connect multiple supported clients to one local owner service.
- Use setup prompts and a portable connection skill for agent-assisted installation.

Message sending is intended to require approval for the exact recipient and text. If a send operation times out, the documented procedure is to search for the message before retrying because delivery status may be unknown.

## Limitations and notes

This is a linked-device integration based on an unofficial WhatsApp client. WhatsApp can restrict accounts, and the assistant may see message content that the user permits it to read. Do not copy authentication state to another machine, run two connections against the same data directory, or print QR data, bearer keys, authentication files, databases, or chat contents in logs.

The kit does not provide a ready-made phone-code CLI. Chat history depth is not assumed to be complete, so measure the synchronized data for the account being used. New phone pairing, a fresh installation on each operating system, and recipient acceptance require live validation rather than relying on offline tests alone. The project is licensed under MIT.

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

