WhatsApp Unofficial MCP Server
claude mcp add --transport stdio felipeadeildo-whatsapp-mcp docker run -i felipeadeildo/whatsapp-mcp:latest \ --env API_KEY="your-api-key" \ --env TIMEZONE="your-timezone" \ --env WA_CONFIG="path-or-config-placeholder"
How to use
This MCP server bridges WhatsApp conversations to MCP clients, exposing tools, prompts, and resources that let an AI assistant read, search, and interact with your WhatsApp messages. It uses a local WhatsApp client backed by SQLite for storage, and provides an HTTP+SSE API that MCP clients can stream from. You can connect to Claude Desktop or any MCP-compatible client by pointing the client to http://localhost:8080/mcp/{API_KEY} with API key authentication. Core capabilities include listing chats, reading messages with pagination, performing cross-chat searches, locating chats by name, sending messages, loading older history on demand, and retrieving your own profile info. Prompts guide AI workflows such as searching messages by person, analyzing conversations, and keyword-based search, while resources offer embedded guides for workflow and formatting, JID formats, and search patterns.
How to install
Prerequisites:
- Go 1.25+ for local setup or Docker (recommended)
- Git
- WhatsApp account to link via QR code
- MCP-compatible AI client
Option A: Docker Setup (Recommended)
- Install Docker on your system.
- Clone the repository or use the image directly:
- docker pull felipeadeildo/whatsapp-mcp:latest
- Run the container with your API key and config:
- docker run -d --name whatsapp-mcp -e API_KEY=your-api-key -e TIMEZONE=Your/Timezone felipeadeildo/whatsapp-mcp:latest
- Link WhatsApp by viewing container logs and scanning the QR code that appears.
- Verify the server is running:
Option B: Local Go Setup (if you prefer running natively)
- Prerequisites:
- Go 1.25.5+
- Clone the repo and install dependencies:
- git clone https://github.com/felipeadeildo/whatsapp-mcp
- cd whatsapp-mcp
- go mod download
- Configure environment:
- cp .env.example .env
- Edit .env with your settings (API key, timezone, etc.)
- Run the server:
- go run main.go
- Link WhatsApp by scanning the QR code shown in the terminal.
- Verify the server is running:
Additional notes
Notes and tips:
- The MCP endpoint is exposed at /mcp/{API_KEY} and requires an API key for authentication.
- You can connect via HTTP+SSE from any MCP client.
- Ensure your .env (or environment) contains your API_KEY and timezone to keep timestamps accurate.
- If you experience QR code linking issues, check logs for WhatsApp connection status and ensure your network allows the WhatsApp Web session to establish.
- The server stores messages locally in SQLite for fast access and offline capability; consider regular backups of the database.
- For Docker deployments, prefer using the provided image tag and environment variables to avoid mismatches between local and container setups.
Related MCP Servers
WhatsApp MCP server
mcp-language
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
wa_llm
A WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned.
kodit
👩💻 MCP server to index external repositories
github-brain
An experimental GitHub MCP server with local database.
bgg
BGG MCP provides access to BoardGameGeek and a variety of board game related data through the Model Context Protocol. Enabling retrieval and filtering of board game data, user collections, and profiles.