MCP ConfigsApr 6, 2026·2 min read

WhatsApp MCP Server — Chat with WhatsApp via AI Agents

MCP server connecting Claude and AI agents to your personal WhatsApp. Search contacts, read messages, send replies and media via natural language.

MC
MCP Hub · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

  1. Clone: git clone https://github.com/lharries/whatsapp-mcp
  2. Start the WhatsApp bridge:
cd whatsapp-mcp/whatsapp-bridge
go run main.go
  1. Scan the QR code with your phone's WhatsApp
  2. Add to your MCP config (.mcp.json):
{
  "mcpServers": {
    "whatsapp": {
      "command": "uv",
      "args": ["--directory", "/path/to/whatsapp-mcp/whatsapp-mcp-server", "run", "main.py"]
    }
  }
}
  1. Restart Claude Code / Cursor

Intro

WhatsApp MCP Server connects Claude and other AI agents to your personal WhatsApp account through the Model Context Protocol. With 5,500+ GitHub stars, it lets you search contacts, read message history, and send messages or media files — all via natural language commands. The Go bridge handles WhatsApp connectivity while the Python MCP server exposes tools to your AI agent.

Best for: developers who want AI agents to interact with WhatsApp contacts. Works with: Claude Code, Claude Desktop, Cursor. Setup time: under 5 minutes.


WhatsApp MCP — AI-Powered WhatsApp Integration

Architecture

The system has two components:

  1. Go Bridge — Handles WhatsApp Web API connectivity and authentication via QR code
  2. Python MCP Server — Exposes WhatsApp tools to AI agents via the Model Context Protocol

All messages are stored locally in SQLite for fast search and retrieval.

Available Tools

Tool Description
search_contacts Find WhatsApp contacts by name
get_messages Retrieve message history from any chat
send_message Send text messages to contacts or groups
send_media Send images, documents, and audio files
list_groups List all WhatsApp groups

Prerequisites

  • Go 1.19+
  • Python 3.6+ with UV package manager
  • Claude Desktop, Cursor, or Claude Code
  • FFmpeg (optional, for audio conversion)

Setup for Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "whatsapp": {
      "command": "uv",
      "args": ["--directory", "/path/to/whatsapp-mcp/whatsapp-mcp-server", "run", "main.py"]
    }
  }
}

Safety Note

This connects to your real WhatsApp account. Always review messages before sending through AI agents.

FAQ

Q: What is WhatsApp MCP Server? A: An MCP server that connects AI agents like Claude to your personal WhatsApp account, enabling message search, reading, and sending via natural language.

Q: Is WhatsApp MCP Server free? A: Yes, it's free and open source under the MIT license.

Q: Does it require WhatsApp Business API? A: No, it uses the WhatsApp Web multidevice API — just scan a QR code with your personal WhatsApp.


🙏

Source & Thanks

Created by lharries. Licensed under MIT.

whatsapp-mcp — ⭐ 5,500+

Thank you for bridging WhatsApp and the MCP ecosystem.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets