ferazfhansurie/claude-whatsapp-mcp
WhatsApp MCP server for Claude Code — chat, send messages, and manage WhatsApp directly from your terminal.
Platform-specific configuration:
{
"mcpServers": {
"claude-whatsapp-mcp": {
"command": "npx",
"args": [
"-y",
"claude-whatsapp-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
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.
Give Claude Code direct access to your WhatsApp:
git clone https://github.com/ferazfhansurie/claude-whatsapp-mcp.git
cd claude-whatsapp-mcp
npm installAdd 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"]
}
}
}In Claude Code, just say:
connect to whatsappClaude 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.
| 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 |
# 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"
# SLoading reviews...