WhatsApp MCP Server
@msaelices
About WhatsApp MCP Server
Whatsapp MCP Server implemented in Python
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"whatsapp": {
"command": "python",
"args": [
"-m",
"whatsapp_mcp"
],
"env": {
"GREENAPI_ID_INSTANCE": "",
"GREENAPI_API_TOKEN": ""
}
}
}
}Tools
5Open a new WhatsApp session
Send a message to a chat
Get a list of chats
Create a new WhatsApp group
Get the participants of a group
Overview
What is WhatsApp MCP Server?
WhatsApp MCP Server is a Python implementation that provides a Model Context Protocol (MCP) interface to interact with WhatsApp Business API through GreenAPI. It enables language models like Claude to send messages, manage groups, handle sessions, and retrieve chat history.
How to use WhatsApp MCP Server?
Install the package with pip install -e ., set your GreenAPI credentials in the .env file (GREENAPI_ID_INSTANCE and GREENAPI_API_TOKEN), then run the server with the whatsapp-mcp command. The server can be added to Claude Code using claude mcp add whatsapp -- whatsapp-mcp or configured in Claude Desktop via claude_desktop_config.json.
Key features of WhatsApp MCP Server
- Send text messages to WhatsApp contacts
- Create and manage WhatsApp groups
- List, add, and remove group participants
- Manage WhatsApp API sessions
- Retrieve chat lists and message history
Use cases of WhatsApp MCP Server
- Send automated messages from an AI assistant
- Manage group membership programmatically
- Retrieve conversation history for analysis
- Integrate WhatsApp messaging with Claude or other MCP hosts
FAQ from WhatsApp MCP Server
What is GreenAPI?
GreenAPI is a third-party service that provides access to the WhatsApp Cloud API. You need a GreenAPI account and your instance ID and API token to use the server.
How do I authenticate with WhatsApp MCP Server?
Set the environment variables GREENAPI_ID_INSTANCE and GREENAPI_API_TOKEN in your .env file or export them in your shell.
What transport protocols does the server support?
The server supports both HTTP and WebSocket endpoints via FastMCP, available at http://localhost:8000/mcp and ws://localhost:8000/mcp.
How do I add WhatsApp MCP Server to Claude Desktop?
Add an entry to your claude_desktop_config.json under mcpServers with either "python -m whatsapp_mcp" as the command or "whatsapp-mcp", and set your GreenAPI credentials.
Can I run the server with Docker?
Yes, the README provides a Docker configuration example for claude_desktop_config.json using docker run with the environment variables passed inline.
Frequently asked questions
What is GreenAPI?
GreenAPI is a third-party service that provides access to the WhatsApp Cloud API. You need a GreenAPI account and your instance ID and API token to use the server.
How do I authenticate with WhatsApp MCP Server?
Set the environment variables `GREENAPI_ID_INSTANCE` and `GREENAPI_API_TOKEN` in your `.env` file or export them in your shell.
What transport protocols does the server support?
The server supports both HTTP and WebSocket endpoints via FastMCP, available at `http://localhost:8000/mcp` and `ws://localhost:8000/mcp`.
How do I add WhatsApp MCP Server to Claude Desktop?
Add an entry to your `claude_desktop_config.json` under `mcpServers` with either `"python -m whatsapp_mcp"` as the command or `"whatsapp-mcp"`, and set your GreenAPI credentials.
Can I run the server with Docker?
Yes, the README provides a Docker configuration example for `claude_desktop_config.json` using `docker run` with the environment variables passed inline.
Basic information
More Communication MCP servers
Telegram MCP Server
chigwellTelegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.
feishu-tools-mcp
Li-vienMCP server provides Feishu related operations to AI encoding agents such as cursor 飞书MCP插件,读取文档、发送消息、合同审批、数据处理.....

AgentCouch
Messaging rooms for AI agents: hand off context across tools, worktrees, machines, and teammates. Agents meet in shared rooms over MCP, hand off directly, and leave a replayable transcript; live sessions wake on reply, b
Discord MCP Server
hanwegMCP server for discord bot
mcp-email-server
ai-zerolabIMAP and SMTP via MCP Server
Comments