WhatsApp MCP Server
Enables programmatic control of WhatsApp Web, providing capabilities to list recent chat conversations and send messages to contacts or groups.
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 MCP Server Send 'I'll be there in 10 minutes' to Sarah"
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 MCP Server

Un serveur MCP (Model Context Protocol) pour contrĂŽler WhatsApp Web via Puppeteer Stealth, permettant Ă ton IA (Claude/Antigravity) de lire et envoyer des messages comme un humain.
đ Architecture
whatsapp-server/
âââ src/
â âââ index.ts â EntrĂ©e FastMCP, enregistre les outils
â âââ services/
â â âââ whatsappService.ts â Singleton : gĂšre browser/page/delays
â âââ tools/
â âââ connectWhatsappTool.ts â Outil : se connecter Ă WhatsApp Web
â âââ listChatsTool.ts â Outil : lister les discussions
â âââ sendMessageTool.ts â Outil : envoyer un message
â âââ readMessageTool.ts â Outil : lire les messages
âââ assets/ â Screenshots README
âââ .gitignore â ProtĂšge session, .env, configs perso
âââ eslint.config.js
âââ tsconfig.json
âââ package.jsonFlow :
AI (Claude/Antigravity)
â tool calls (MCP stdio)
âŒ
whatsapp-mcp-server (FastMCP)
âââ ConnectWhatsappTool
âââ ListChatsTool
âââ SendMessageTool
âââ ReadMessageTool
â shared singleton
âŒ
WhatsappService
â puppeteer-extra + stealth plugin
âŒ
Chrome (headless ou visible)
â
âŒ
https://web.whatsapp.com/Related MCP server: WAHA MCP
âïž Installation
1. Copier le dossier
cd "whatsapp-server"2. Installer les dépendances
pnpm install3. Compiler
pnpm run build4. Ajouter dans mcp_config.json
"whatsapp-server": {
"command": "node",
"args": [
"/chemin/vers/whatsapp-server/dist/index.js"
],
"disabled": false
}đ Utilisation
Ătape 1 â Connexion (premiĂšre fois)
Demande Ă l'IA :
"Connecte-toi Ă WhatsApp en mode non headless"
L'outil connect_whatsapp ouvre Chrome et affiche le QR code :

Sur ton téléphone :
Ouvre WhatsApp
Menu > Appareils connectés (Android) ou ParamÚtres > Appareils connectés (iPhone)
Connecter un appareil
Scanne le QR code
â
La session est sauvegardĂ©e dans ./whatsapp_session/ â pas besoin de rescanner.
Ătape 2 â Lister les discussions
Demande Ă l'IA :
"Liste mes conversations WhatsApp"

Ătape 3 â Envoyer un message
Demande Ă l'IA :
"Envoie 'Bonjour !' Ă [Nom du contact] sur WhatsApp"

Ătape 4 â Lire les messages
Demande Ă l'IA :
"Lis les derniers messages de [Nom du contact] sur WhatsApp"
L'outil read_messages extrait l'historique récent avec l'expéditeur et l'horodatage.
đĄïž Anti-Ban â Comportement Humain
Protection | Détail |
Puppeteer Stealth | Masque les empreintes Puppeteer ( |
DĂ©lais alĂ©atoires | 300msâ5000ms entre chaque action |
Frappe humaine | 100â300ms par touche pour la recherche |
Session persistante |
|
User Agent réaliste | Chrome 120 / Windows 10 64-bit |
Auto-dismiss dialog | Clique automatiquement sur "Utiliser ici" si détecté |
Reconnexion propre | Ferme l'ancien browser avant d'en ouvrir un nouveau |
đ§ Outils MCP disponibles
connect_whatsapp
Lance le navigateur et ouvre WhatsApp Web.
ParamÚtre | Type | Défaut | Description |
| boolean |
| Mode invisible. Mettre |
list_chats
Liste les discussions récentes.
ParamÚtre | Type | Défaut | Description |
| number |
| Nombre max de chats Ă retourner. |
send_message
Envoie un message Ă un contact ou groupe.
ParamĂštre | Type | Requis | Description |
| string | â | Nom exact du contact ou groupe. |
| string | â | Contenu du message Ă envoyer. |
read_messages
Lit les messages récents d'une discussion spécifique.
ParamĂštre | Type | Requis | Description |
| string | â | Nom exact du contact ou groupe. |
| number | 10 | Nombre de messages à récupérer (max visibles). |
đ Commandes
pnpm install # Installer les dépendances
pnpm run build # Compiler TypeScript â dist/
pnpm run dev # Lancer en mode développement (tsx)
pnpm run lint # Vérifier le code avec ESLint
pnpm run format # Formater avec Prettierâ ïž Recommandations
Ne pas spammer : laisser des délais naturels entre les usages.
Session warmup : aprĂšs le premier QR scan, ouvre 2-3 discussions manuellement avant de fermer Chrome.
Headless=false pour le premier scan. Ensuite
trueest possible pour les relances.1 compte = 1 session : ne pas utiliser le mĂȘme numĂ©ro sur plusieurs instances simultanĂ©es.
đ SĂ©curitĂ© â Ce qui est protĂ©gĂ© par .gitignore
Dossier/Fichier | Raison |
| Cookies et tokens de session WhatsApp |
| Variables sensibles (clés API, numéros de téléphone) |
| Chemins locaux et configs privées |
| Build gĂ©nĂ©rĂ© â reconstruit avec |
| DĂ©pendances â reconstruit avec |
DĂ©veloppĂ© par Deamon â Architecture calquĂ©e sur le serveur SMS/VoIP.ms MCP
Available Tools
3 toolsconnect_whatsappA
Launch browser and connect to WhatsApp Web. Use this to login or verify if you are already logged in.
Inputs: headless.
list_chatsC
List recent chats from WhatsApp Web.
Inputs: limit.
send_messageB
Select a chat by its exact name and send a message.
Inputs: chatName (required), message (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogâŠ
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: connect_whatsapp handles authentication, list_chats retrieves chat data, and send_message sends messages. There is no overlap in functionality, making it easy for an agent to select the right tool without confusion.
All tool names follow a consistent snake_case pattern with a verb_noun structure (connect_whatsapp, list_chats, send_message). This predictability enhances readability and usability for agents.
With only 3 tools, the server feels thin for a WhatsApp integration, lacking operations like reading messages, managing contacts, or handling media. While the tools cover basic actions, the scope is limited and may require workarounds for common use cases.
The toolset is significantly incomplete for a WhatsApp server. It misses essential CRUD operations such as reading messages, updating chats, deleting messages, and handling media files. Agents will likely fail when trying to perform common WhatsApp tasks beyond the basics provided.
Maintenance
Related MCP Connectors
Free WhatsApp MCP server for ChatGPT and Claude: read and search chats, every send you approve.
Read-only WhatsApp MCP for your AI agent: it reads the chats you choose. Try the public demo.
Your own WhatsApp as an MCP server: read, search and send from any MCP client.
WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history â all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the WhatsApp Business API, allowing agents to send messages, manage media, and perform other WhatsApp business operations through natural language.1-
- 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.8 npm-
- AlicenseNot gradedqualityDmaintenanceMCP server that connects AI agents to WhatsApp using the multi-device API, enabling messaging, group management, and more as a regular user.7 npm1MIT
- AlicenseNot gradedqualityBmaintenanceA native MCP server for SocialMate that gives your AI a WhatsApp, enabling it to send and read messages, manage contacts and groups, and more through 44 tools.26 npm1MIT