WhatsApp MCP Server
@msaelices
About WhatsApp MCP Server
Whatsapp MCP Server implemented in Python
Basic information
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.
More Communication MCP servers
Discord MCP Server
hanwegMCP server for discord bot
PhonePi MCP: Turn your phone into a toolbox for AI assistants using Model Context Protocol
priyankarkPhonePi MCP enables seamless integration between desktop AI tools and your smartphone, providing 23+ direct actions including SMS messaging, phone calls, contact management, snippet creation and search, clipboard sharing, notifications, battery status checks, and remote device co
Gmail
shinzo-labsMCP Implementation for Gmail Services
Email sending MCP 💌
ykhliThe official MCP server to send emails and interact with Resend
WhatsApp Web MCP
pnizerWhatsApp Web MCP Server
Comments