Provides comprehensive tools for automating WhatsApp accounts via the WAHA HTTP API, including messaging (text, media, polls), chat and group management, contact interactions, and real-time presence control.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WAHA MCP ServerSend a WhatsApp message to 1234567890@c.us saying the report is ready"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WAHA MCP Server
WhatsApp HTTP API integration for Claude Desktop & MCP-compatible clients
Documentation • Installation • Configuration • 🤖 Claude Code Setup • Tools Reference
🚀 What is WAHA MCP?
WAHA MCP Server bridges the powerful WAHA (WhatsApp HTTP API) with AI assistants like Claude Desktop, enabling seamless WhatsApp automation through the Model Context Protocol (MCP).
✨ Key Features
📱 Complete WhatsApp Control - Send/receive messages, manage chats, create groups
🎯 63 Tools - Comprehensive API coverage for sessions, messaging, contacts, groups, and interactive workflows
🔄 Smart Media Handling - Auto-conversion for voice/video, support for URLs & local files
🤖 AI-Native - Built specifically for LLM integration via MCP
🔒 Secure - Environment-based API key management
⚡ Fast & Reliable - TypeScript-powered with robust error handling
📋 Prerequisites
Before you begin, ensure you have:
Node.js 18+ - Download here
A running WAHA instance - Setup guide
WAHA API Key - Generated from your WAHA dashboard
🛠️ Installation
1. Clone & Install
2. Set Environment Variables
Create a .env file or export variables:
⚙️ Configuration
Claude Desktop
Add to claude_desktop_config.json:
Linux: ~/.config/claude/claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Cline / VS Code
Add to your Cline MCP settings (~/.vscode/mcp.json or workspace settings):
Claude Code (Autonomous Development)
🤖 Enable truly autonomous AI development:
Instead of Claude stopping when it needs user input, it can ask questions via WhatsApp and continue working!
🚀 Complete Setup Guide: CLAUDE_CODE_SETUP.md
Quick config example:
How it works:
Claude hits a question → asks via WhatsApp
You reply from your phone
Claude continues working immediately
Zero downtime! ⚡
📖 See also:
CLAUDE_CODE_SETUP.md- Complete setup guideCLAUDE_CODE_INSTRUCTIONS.md- Usage examples for AI assistants
Other MCP Clients
Use the mcporter CLI for quick testing:
🧰 Tools Reference
📂 Categories
Tool | Description |
| List all sessions and their statuses |
| Get detailed info about a session |
| Create a new session |
| Start a stopped session |
| Stop a running session |
| Restart a session |
| Delete a session permanently |
| Disconnect WhatsApp account from session |
Tool | Description |
| Get QR code for WhatsApp authentication |
| Request phone number pairing code |
| Check session authentication status |
Tool | Description |
| Send a text message |
| Send an image (local file or URL) |
| Send a video with auto-conversion |
| Send a voice message with auto-conversion |
| Send any document/file |
| Send a location pin |
| Send a contact vCard |
| Create and send a poll |
| React with emoji 👍❤️😂 |
| Forward a message |
| Get messages with pagination |
| Delete a message |
| Edit a sent message |
| Mark messages as read |
| Star/unstar a message |
📤 Media Upload Features:
✅ Local files & URLs supported
✅ Auto MIME type detection
✅ Auto video/voice conversion to WhatsApp format
✅ 50+ file types supported
✅ Base64 encoding handled automatically
Tool | Description |
| List all chats |
| Get detailed chat info |
| Archive/unarchive a chat |
| Pin/unpin a chat |
| Mute/unmute a chat |
| Delete a chat |
| Clear all messages |
Tool | Description |
| Get all contacts |
| Get info about a contact |
| Check if number is on WhatsApp |
| Block/unblock a contact |
| Get profile picture URL |
Tool | Description |
| Create a new group |
| List all groups |
| Get detailed group info |
| List group participants |
| Add participants |
| Remove participants |
| Promote to admin |
| Demote from admin |
| Update group name |
| Update group description |
| Set group profile picture |
| Leave a group |
| Get invite link |
| Revoke & regenerate link |
Tool | Description |
| Set online/offline status |
| Get contact's presence |
| Show typing indicator |
| Stop typing indicator |
| Post a text status/story |
Tool | Description |
| Get all labels |
| Create a new label |
| Delete a label |
| Add label to chat |
| Remove label from chat |
Tool | Description |
| 🚀 NEW! Send a question and WAIT for user reply (blocking operation). Perfect for Claude Code workflows that need user input mid-execution. |
Use Case Example:
How it works:
Sends your question via WhatsApp
Polls for new messages from the user
Returns the reply text when received
Includes timeout handling (default: 60 minutes)
Perfect for:
🤖 Claude Code asking questions mid-workflow
💡 Getting user input while you're away from the computer
🔄 Building truly interactive AI automations
📱 Answering from your phone while AI continues working
📚 Chat ID Formats
Understanding WhatsApp ID formats:
Type | Format | Example |
User |
|
|
Group |
|
|
Channel |
|
|
Status |
|
|
Note: Phone numbers should exclude the
+prefix.
🎯 Quick Examples
Send a Text Message
Send an Image from URL
Create a Group & Add Participants
List All Chats
🧪 Development
Run in Watch Mode
Run Tests
Build for Production
📖 Documentation
For detailed documentation, see the docs folder:
🤝 Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
WAHA (WhatsApp HTTP API) - The backbone of this integration
Model Context Protocol - Enabling AI-native tool integration
Anthropic - For Claude Desktop and MCP SDK
Built with ❤️ for the MCP community
This server cannot be installed