Skip to main content
Glama
srijonbasak

WhatsApp Desktop MCP

by srijonbasak

πŸš€ 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_chats tool automatically attaches CRM tags, notes, and pipeline stages in one single requestβ€”minimizing tool calling overhead.

  • 🌐 Remote Tunnel Integration: Built-in ngrok tunneling 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

πŸ› οΈ How to Work & Installation

  1. Download WhatsApp_MCP_Setup.exe from the Releases page.

  2. Double-click WhatsApp_MCP_Setup.exe to launch the Setup Wizard.

  3. 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).

  4. 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:8000.

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/your-username/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: sse

  • Server URL: http://127.0.0.1:8000/sse (or your public ngrok URL if using remote tunneling).


πŸ› οΈ Available MCP Tools

Tool Name

Type

Description

read_chats

Read

Lists active WhatsApp chats merged with local CRM deal stages and tags.

get_chat_history

Read

Scrapes the last 15 messages in the chat history for a specific contact.

draft_message

Write (Draft)

Types an AI-generated reply into the WhatsApp input box without sending it (Approve flow).

send_message

Write (Instant)

Sends a message directly to a target contact or phone number.

send_bulk_messages

Write (Bulk)

Sends rate-limited bulk messages across multiple recipients.

update_crm_contact

CRM

Updates a contact's deal stage (Lead, Negotiating, Won), tags, or notes in crm.json.


πŸ“œ 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.py

The standalone executable will be generated at dist/WhatsApp_MCP_Companion.exe.


πŸ“„ License

Distributed under the MIT License. See LICENSE for more details.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An 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.
    Last updated
    3
    60
    MIT
  • F
    license
    -
    quality
    -
    maintenance
    A 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.
    Last updated
    29
  • A
    license
    -
    quality
    C
    maintenance
    MCP server that connects AI agents to WhatsApp using the multi-device API, enabling messaging, group management, and more as a regular user.
    Last updated
    7
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    A local MCP server that connects WhatsApp to Claude via QR code, enabling chat listing, message retrieval, and sending with automatic rate limiting for anti-ban protection.
    Last updated
    55
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for LeadDelta β€” manage LinkedIn connections and CRM data via AI assistants.

  • Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.

  • Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/srijonbasak/wa-desktop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server