WhatsApp Desktop MCP
Provides tools for interacting with WhatsApp Web, including reading chats, retrieving chat history, drafting messages for approval, sending direct and bulk messages, and updating CRM contact stages, tags, and notes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WhatsApp Desktop MCPSummarize my unread chats"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ WhatsApp Desktop MCP & Headless AI CRM Companion
An all-in-one local desktop companion that connects your WhatsApp Web directly to Google Gemini, Claude, Cursor, and other AI tools over the Model Context Protocol (MCP). Features an invisible local AI CRM with automated pipeline tracking and a human-in-the-loop "Draft & Approve" workflow.
โจ Features
๐ฑ Zero API Key Setup: Uses an embedded PyWebView browser wrapper to log in to WhatsApp Web directly. No Meta Cloud API setup or paid developer keys required!
๐ค Headless AI CRM: Automatically tracks contacts, tags, and deal stages (
Lead->Negotiating->Won) in a local, private JSON database (crm.json).โ๏ธ Draft & Approve Workflow: AI can draft intelligent responses directly inside your WhatsApp Web chat input box without hitting send. You retain 100% control to review and approve with one click.
โก High Context Density: The
read_chatstool automatically attaches CRM tags, notes, and pipeline stages in one single requestโminimizing tool calling overhead.๐ Remote Tunnel Integration: Built-in
ngroktunneling for connecting external AI models securely via HTTPS / Server-Sent Events (SSE).๐ 100% Local & Private: All session cookies, message logs, and CRM data remain strictly on your local computer (
.wa_session/).
Related MCP server: WAHA MCP
๐ธ Screenshots
๐ ๏ธ How to Work & Installation
Option A: 1-Click Windows Setup Installer (Recommended)
Download
WhatsApp_MCP_Setup.exefrom the Releases page.Double-click
WhatsApp_MCP_Setup.exeto launch the Setup Wizard.Click Install Now. The installer will automatically:
Install the application to
%LOCALAPPDATA%\Programs\WhatsApp MCP Companion.Create a Desktop Shortcut (
WhatsApp MCP Companion).Create a Start Menu Entry in Windows Start Menu.
Register the application in Windows Settings (Add/Remove Programs).
On launch, log in to WhatsApp Web by scanning the QR code with your phone. Your companion server will start running locally at
http://127.0.0.1:48211.
Option B: Running from Source (Developer Setup)
Prerequisites
Python 3.10+ installed on Windows.
Installation Steps
# 1. Clone the repository
git clone https://github.com/srijonbasak/wa-desktop-mcp.git
cd wa-desktop-mcp
# 2. Create and activate a virtual environment
python -m venv venv
.\venv\Scripts\activate
# 3. Install required dependencies
pip install -r requirements.txt
# 4. Launch the companion app
python run.py๐ Connecting to Gemini / Claude / Cursor
1. Connecting via SSE Endpoint
In your MCP client settings (e.g. Gemini, Claude Desktop, or Cursor):
Transport Type:
sseServer URL:
http://127.0.0.1:48211/sse(or your public ngrok URL if using remote tunneling).
๐ ๏ธ Available MCP Tools
Tool Name | Type | Description |
| Read | Lists active WhatsApp chats merged with local CRM deal stages and tags. |
| Read | Scrapes the last 15 messages in the chat history for a specific contact. |
| Write (Draft) | Types an AI-generated reply into the WhatsApp input box without sending it (Approve flow). |
| Write (Instant) | Sends a message directly to a target contact or phone number. |
| Write (Bulk) | Sends rate-limited bulk messages across multiple recipients. |
| CRM | Updates a contact's deal stage ( |
๐ Building the Executable (.exe)
To compile the application into a single standalone .exe for distribution:
# 1. Install PyInstaller inside your virtual environment
pip install pyinstaller
# 2. Run the build script
python build_exe.pyThe standalone executable will be generated at dist/WhatsApp_MCP_Companion.exe.
๐ License
Distributed under the MIT License. See LICENSE for more details.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Your own WhatsApp as an MCP server: read, search and send from any MCP client.
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables AI to control WhatsApp Web via Puppeteer Stealth for reading and sending messages. It features human-like interaction patterns and anti-ban protections to securely manage chats and communications through natural language.33 npmMIT
- FlicenseNot gradedqualityNot gradedmaintenanceA self-hosted MCP server that connects AI clients to WhatsApp via the WAHA HTTP API. It enables users to manage sessions, search contacts, and send or receive messages and media directly through natural language interfaces.18 npm-
- AlicenseNot gradedqualityCmaintenanceMCP server that connects AI agents to WhatsApp using the multi-device API, enabling messaging, group management, and more as a regular user.9 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server exposing WhatsApp Cloud API operations as tools for AI agents like Claude Code, Cursor, and Codex.MIT