Whatsapp MCP Kit logo

Whatsapp MCP Kit

Links a personal WhatsApp account to MCP clients for reading chats and sending approved messages through a local HTTP service.

Install Whatsapp MCP Kit

Run the project’s own setup commands, in order.

Setup steps from the project

whatsapp-mcp-kit installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/tonydzi/whatsapp-mcp-kit <KIT_DIR>
    
  2. 2. Configure
    mkdir <SERVER_DIR> && cd <SERVER_DIR>
    
  3. 3. Configure
    npm init -y
    
  4. 4. Install
    npm install --save-exact @sjawhar/whatsapp-mcp@2.4.0
    
  5. 5. Check the setup
    git apply --check <KIT_DIR>/patches/0001-qr-raw-to-stderr.patch
    
  6. 6. Sign in
    python <KIT_DIR>/pair/wa_qr_live.py
    

Overview

whatsapp-mcp-kit connects a personal WhatsApp account to Claude Code, Codex, Cursor, Claude Desktop, or another MCP client through a local service built on Baileys and the upstream WhatsApp MCP package. A Python helper displays a self-refreshing local QR page for linked-device pairing, while the MCP service exposes chat reading and message sending over loopback HTTP. Use it when an agent needs controlled access to an existing WhatsApp account from the same machine. Separate account data roots are required for multiple accounts, and WhatsApp may restrict accounts using unofficial clients.

Use cases

  • Read selected WhatsApp chats from an AI coding assistant
  • Send approved WhatsApp messages through an MCP client
  • Pair a WhatsApp account with a local agent using a QR page
  • Share one local WhatsApp connection between Claude Code and Codex

Key features

  • Local refreshing QR pairing page
  • MCP access to WhatsApp chats and messaging
  • Loopback HTTP service for shared client access
  • Offline QR helper self-tests
  • Agent-assisted setup prompts
  • Operational recovery and safety procedures

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.

4/4 checks healthy over the last 16d

Adoption & maintenance

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

GitHub stars13Stargazers on the source repository.
Last commit11d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Whatsapp MCP Kit works

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.

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 Whatsapp MCP Kit

whatsapp-mcp-kit is an MCP server that connects a personal WhatsApp account through the Baileys-based WhatsApp MCP package. Its main tools let AI clients read WhatsApp chats and send messages, using a local owner service and linked-device QR pairing. It supports Claude Code, Codex, Claude Desktop, Cursor, and other MCP clients.

Install it by cloning the repository, creating an isolated npm installation for the upstream WhatsApp MCP package, applying the provided patches, and creating a Python environment for the QR helper. The setup requires Node.js, npm, Git, Python 3, and a phone that can scan the displayed QR page.

Pair WhatsApp by running the QR helper and scanning its local page from WhatsApp's Settings > Linked devices > Link a device. The helper uses private account and temporary QR directories, then the owner service uses the resulting linked-device state.

Yes, Cursor is named as an MCP client that can be used with the kit, including for agent-assisted setup. The documented shared HTTP examples target Claude Code and Codex; other clients connect to the local `/mcp` endpoint using their MCP configuration.

Yes, multiple accounts can use separate private data roots and separate owner services. Do not start a second WhatsApp connection against the same data folder, and keep one owner service per account.

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 PreviewWhatsapp MCP Kit AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/whatsapp-mcp-kit?style=directory)](https://allmcps.com/mcp/whatsapp-mcp-kit)
HTML Embed
<a href="https://allmcps.com/mcp/whatsapp-mcp-kit"><img src="https://allmcps.com/api/badge/whatsapp-mcp-kit?style=directory" alt="Whatsapp MCP Kit on AllMCPs" /></a>