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.
@msaelices
Basic information
Whatsapp MCP Server implemented in Python
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": ""
}
}
}
}Open 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
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.
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.
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.
Set the environment variables `GREENAPI_ID_INSTANCE` and `GREENAPI_API_TOKEN` in your `.env` file or export them in your shell.
The server supports both HTTP and WebSocket endpoints via FastMCP, available at `http://localhost:8000/mcp` and `ws://localhost:8000/mcp`.
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.
Yes, the README provides a Docker configuration example for `claude_desktop_config.json` using `docker run` with the environment variables passed inline.

Run a brand's social media from your agent: write posts in the brand's voice, generate short videos, schedule and publish to TikTok, Instagram, YouTube, X, LinkedIn, Facebook and Pinterest, and read the metrics back. 21
Let your agents read, send and react to email autonomously, without human involvement

Give your agent an inbox. Its own address on email, Slack and Telegram. A product of Novu

HelpWell connects AI assistants to your help desk, knowledge base, live chat support and email marketing automation for SaaS. Triage support tickets, draft help docs and replies, manage contacts, and prepare newsletters

Write, schedule and publish LinkedIn posts in your own voice, reply to comments and read your analytics, all from your AI assistant. Remote MCP server with OAuth sign-in.
Comments