claude-whatsapp-mcp
Enables Claude Code to interact with WhatsApp for reading messages, sending replies, and searching contacts through the Model Context Protocol. It uses whatsapp-web.js to facilitate local connection management with QR code authentication and session persistence.
README
claude-whatsapp-mcp
WhatsApp MCP server for Claude Code. Read messages, send replies, search contacts — all from your terminal.
Built with whatsapp-web.js and the Model Context Protocol.
What it does
Give Claude Code direct access to your WhatsApp:
- Read chats — "check my unreads", "what did Ali say?"
- Send messages — "send John the proposal PDF"
- Search contacts — "find Sarah's number"
- Connection management — QR code auth, session persistence
Setup
1. Clone and install
git clone https://github.com/ferazfhansurie/claude-whatsapp-mcp.git
cd claude-whatsapp-mcp
npm install
2. Add to Claude Code
Add this to your Claude Code MCP settings (~/.claude.json or project .mcp.json):
{
"mcpServers": {
"whatsapp": {
"command": "node",
"args": ["/path/to/claude-whatsapp-mcp/src/index.js"]
}
}
}
3. Connect WhatsApp
In Claude Code, just say:
connect to whatsapp
Claude will initialize the server and show you a QR code. Scan it with your phone (WhatsApp > Settings > Linked Devices > Link a Device).
Your session persists in .wwebjs_auth/ — you only need to scan once.
Tools
| Tool | Description |
|---|---|
whatsapp_connect |
Connect to WhatsApp or check status. Shows QR if needed. |
whatsapp_send_message |
Send text + optional file attachment |
whatsapp_list_chats |
List recent chats with unread counts |
whatsapp_read_chat |
Read messages from a specific chat |
whatsapp_search_contacts |
Search contacts by name or number |
whatsapp_status |
Connection status + unread summary |
Usage examples
# Check unreads
"do I have any unread WhatsApp messages?"
# Read a specific chat
"what's the latest in my family group?"
# Send a message
"send Ali a message saying the meeting is at 3pm"
# Send a file
"send the invoice PDF to +60123456789"
# Search contacts
"find contacts named Sarah"
Requirements
- Node.js 18+
- Claude Code with MCP support
- A WhatsApp account
How it works
The server runs whatsapp-web.js locally on your machine — the same tech as WhatsApp Web. Your messages stay on your device. Nothing is sent to any external server.
On first run, it generates a QR code for linking. After that, the session is cached and reconnects automatically.
License
MIT
Built by Adletic Agency
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.