WhatsApp MCP Server
Enables control of WhatsApp through natural language: send text, media, location, and contact messages; reply, react, forward, delete, and star messages; read and search chats; list contacts and groups; manage group membership (create, add, remove, leave); download media; and manage chats via archive, mute, and mark-read actions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π± WhatsApp MCP Server
Control WhatsApp through AI. Send messages, read chats, search conversations β all via natural language.
π€ What is this?
MCP (Model Context Protocol) server that connects AI assistants (Claude, etc.) to WhatsApp. Instead of opening WhatsApp, just ask your AI:
"Send a message to John saying I'll be late"
"Show me my recent chats"
"Search for messages about the meeting"
"What groups am I in?"
Related MCP server: whatsapp-triage
β¨ Features
π¬ Messaging
Tool | Description |
| Send text message to contact or number |
| Send images, documents, files |
| Reply to a specific message |
| React to message with emoji |
| Send message to multiple contacts |
π Reading
Tool | Description |
| List recent conversations |
| Read messages from a chat |
| Search messages by text |
| Download images/videos/docs from chat |
π₯ Contacts & Groups
Tool | Description |
| List all contacts |
| List WhatsApp groups |
| Get contact details |
| Get profile picture URL |
π₯ Group Management
Tool | Description |
| Create new WhatsApp group |
| Get group details (members, admins) |
| Add members to group |
| Remove members from group |
| Leave a group |
βοΈ Utilities
Tool | Description |
| Check connection status |
| Mark messages as read |
| Forward message to another chat |
| Delete your messages |
| Star important messages |
| Get all starred messages |
| Archive/unarchive chats |
| Mute/unmute notifications |
π Special Messages
Tool | Description |
| Share location coordinates |
| Share contact card |
π Quick Start
1. Clone & Install
git clone https://github.com/dynamolabs/whatsapp-mcp.git
cd whatsapp-mcp
npm install2. Build
npm run build3. Connect WhatsApp
First run will show a QR code in terminal. Scan it with WhatsApp:
Open WhatsApp on your phone
Go to Settings β Linked Devices
Tap "Link a Device"
Scan the QR code
Session is saved, so you only need to scan once.
π Integration
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"whatsapp": {
"command": "node",
"args": ["/path/to/whatsapp-mcp/dist/index.js"]
}
}
}Clawdbot
Add to config:
mcp:
servers:
- name: whatsapp
command: node
args: [/path/to/whatsapp-mcp/dist/index.js]π¬ Example Conversations
Once connected, ask your AI:
Send Messages:
"Send 'Good morning!' to +62812345678" "Message John that the meeting is canceled"
Read Chats:
"Show my recent WhatsApp chats" "What did Sarah say in our last conversation?"
Search:
"Find messages about the project deadline" "Search for messages from last week about dinner"
Contacts & Groups:
"List my WhatsApp contacts" "What groups am I part of?"
β οΈ Important Notes
First Run: You need to scan QR code on first run
Session Persistence: Auth is saved in
.wwebjs_auth/folderOne Device: WhatsApp Web can only be connected to one browser session
Rate Limits: Don't spam messages or WhatsApp may ban your number
π Security
Your WhatsApp session is stored locally
No data is sent to external servers
Only the AI you connect to can access your WhatsApp
π Project Structure
whatsapp-mcp/
βββ src/
β βββ index.ts # MCP server implementation
βββ dist/ # Compiled JavaScript
βββ .wwebjs_auth/ # WhatsApp session (gitignored)
βββ package.json
βββ README.mdπ€ Contributing
Contributions welcome! Ideas for new features:
Send images/media
Voice message support
Scheduled messages
Read receipts
Typing indicators
π License
MIT β use it however you want.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Read, summarize and send your own WhatsApp messages from AI assistants (OAuth 2.1).
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Run WhatsApp Business campaigns from any AI assistant: contacts, segments, and broadcasts.
WhatsApp CRM for AI agents: search contacts, read chats, manage the sales pipeline, send messages.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without the risk of account bans.1827MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with WhatsApp by sending messages, triaging urgent conversations, scheduling messages, and managing automated replies with safety controls and human approval.-
- AlicenseNot gradedqualityNot gradedmaintenanceLets AI assistants read, search, and send messages from a linked WhatsApp account, with full-text search, media handling, and contact and group management.GPL 3.0
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to read, search, send, and manage WhatsApp chats, including transcribed voice messages and media, through a linked-device connection and searchable archive.GPL 3.0