WhatsApp MCP Server
@msaelices
WhatsApp MCP Server について
Whatsapp MCP Server implemented in Python
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"whatsapp": {
"command": "python",
"args": [
"-m",
"whatsapp_mcp"
],
"env": {
"GREENAPI_ID_INSTANCE": "",
"GREENAPI_API_TOKEN": ""
}
}
}
}ツール
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
概要
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.
「コミュニケーション」の他のコンテンツ
WhatsApp Web MCP
pnizerWhatsApp Web MCP Server
Email sending MCP 💌
ykhliThe official MCP server to send emails and interact with Resend
WhatsApp MCP Server (TypeScript/Baileys)
jlucaso1WhatsApp MCP Server (TypeScript/Baileys)
Email sending MCP 💌
resendThe official MCP server to send emails and interact with Resend
Teams Mcp
floriscornelMCP server providing comprehensive Microsoft Teams and Graph API access for AI assistants including messaging, search, and user management.
コメント