WA-MCP Pro
Provides a comprehensive API for AI agents to interact with WhatsApp, enabling actions such as sending rich media and text messages, managing multiple connected accounts, handling group administration, performing contact lookups, and implementing automated response rules based on specific keywords or regex patterns.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

WA-MCP Pro
Connect WhatsApp to Your AI Agents.
WA-MCP Pro is a production-ready WhatsApp MCP (Model Context Protocol) server that enables AI agents to interact with WhatsApp through standardized tools, resources, and prompts.
Features
š¤ AI Agent Integration
MCP STDIO Transport - Works with Claude Code, OpenCode, Cursor, and other MCP clients
MCP Streamable HTTP - Remote access via HTTP with authentication
17 MCP Tools - Complete WhatsApp operations (messaging, contacts, groups, automation)
8 MCP Resources - Real-time data access (status, chats, contacts, groups, metrics)
5 MCP Prompts - Pre-built workflows (assistant, composer, summarizer, support, group management)
š± WhatsApp Features
Multi-Account - Manage multiple WhatsApp accounts simultaneously
QR Code Authentication - Standard WhatsApp Web login
Pairing Code - Mobile-friendly authentication
Persistent Sessions - Encrypted session storage with AES-256-GCM
Auto-Reconnect - Exponential backoff with jitter
Full Messaging - Text, images, videos, documents, audio, locations, contacts
Group Management - Create, manage participants, settings, invites
Contact Management - Search, verify, profile pictures
Chat History - Local message storage with search
āļø Automation
Keyword Triggers - Respond to specific words
Exact Match - Precise message matching
Regex Patterns - Complex pattern matching
Commands - Slash command handling
Cooldowns - Rate limiting per user
Safety Guards - Opt-out detection, loop prevention, rate limiting
š Security
AES-256-GCM Encryption - Session credentials encrypted at rest
API Key Authentication - Scrypt-hashed keys with scopes
Role-Based Access - Owner, Admin, Operator, Readonly roles
Audit Logging - Complete operation trail
Input Validation - Zod schemas for all inputs
Secret Redaction - Automatic log sanitization
š³ Deployment
Docker Support - Multi-stage build, non-root user
Docker Compose - Production-ready with volumes
Health Checks - Kubernetes-ready endpoints
Windows & Linux - Cross-platform support
Related MCP server: WhatsApp Cloud API MCP Server
Quick Start
Prerequisites
Node.js 20+
pnpm 9+
WhatsApp account
Installation
# Clone repository
git clone <repository-url>
cd wa-mcp-pro
# Install dependencies
corepack enable
pnpm install
# Configure environment
cp .env.example .env
# Edit .env with your settings
# Setup database
pnpm db:migrate
pnpm db:seed
# Generate API key
pnpm generate:api-key -- --name "My App" --permissions "accounts:read,messages:send"
# Start server
pnpm startMCP Client Configuration
Claude Code (STDIO)
{
"mcpServers": {
"wa-mcp-pro": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"MCP_TRANSPORT": "stdio",
"DATABASE_URL": "./storage/wa-mcp.db"
}
}
}
}Remote HTTP
For the remote MCP endpoint, the current dispatcher exposes both read and write tools and therefore requires a full-scope key. Generate one with all permissions: accounts:read,accounts:manage,messages:read,messages:send,contacts:read,groups:read,automation:read,automation:manage,system:read. Scoped keys remain suitable for the REST API. Per-tool authorization for MCP is a follow-up hardening item.
{
"mcpServers": {
"wa-mcp-pro": {
"url": "http://localhost:3001/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā AI Agents / Clients ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāā ā
ā ā STDIO ā ā HTTP ā ā REST API ā ā
ā ā Transport ā ā Transport ā ā (Fastify) ā ā
ā āāāāāāāā¬āāāāāāā āāāāāāāā¬āāāāāāā āāāāāāāāāāāā¬āāāāāāāāāāā ā
āāāāāāāāāāā¼āāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāā
ā ā ā
āāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāā¼āāāāāāā
ā MCP Core ā
ā (Tools, ā
ā Resources, ā
ā Prompts) ā
āāāāāāāā¬āāāāāāā
ā
āāāāāāāā¼āāāāāāā
ā Services ā
ā (Message, ā
ā Contact, ā
ā Chat, ā
ā Group, ā
ā Automation)ā
āāāāāāāā¬āāāāāāā
ā
āāāāāāāā¼āāāāāāā
ā Connection ā
ā Manager ā
āāāāāāāā¬āāāāāāā
ā
āāāāāāāā¼āāāāāāā
ā Baileys ā
ā (WhatsApp ā
ā Web) ā
āāāāāāāāāāāāāāāAvailable MCP Tools
Connection
Tool | Description |
| Connect an account |
| Disconnect account |
| Logout and remove session |
| Get connection status |
| Get QR code |
| Get pairing code |
| List all accounts |
| Create new account |
Messaging
Tool | Description |
| Send text message |
| Send image |
| Send video |
| Send document |
| Send audio |
| Send location |
| Send contact |
| Reply to message |
| React to message |
| Delete message |
| Mark as read |
| Search messages |
Contacts
Tool | Description |
| List contacts |
| Get contact details |
| Verify WhatsApp number |
| Get profile photo |
| Search contacts |
Chats
Tool | Description |
| List chats |
| Get chat details |
| Get message history |
| Mark as read |
| Archive chat |
| Get unread count |
Groups
Tool | Description |
| List groups |
| Get group details |
| List participants |
| Create group |
| Add members |
| Remove members |
| Promote to admin |
| Demote from admin |
| Change name |
| Change description |
| Get invite link |
| Revoke invite |
| Leave group |
Automation
Tool | Description |
| Create auto-reply rule |
| List rules |
| Get rule details |
| Update rule |
| Delete rule |
| Enable/disable rule |
System
Tool | Description |
| System health |
| Metrics |
| Version info |
| Capabilities |
REST API Endpoints
Health
GET /health- Basic healthGET /health/ready- Readiness checkGET /health/live- Liveness check
Accounts
POST /api/v1/accounts- Create accountGET /api/v1/accounts- List accountsGET /api/v1/accounts/:id- Get accountPOST /api/v1/accounts/:id/connect- ConnectPOST /api/v1/accounts/:id/disconnect- DisconnectPOST /api/v1/accounts/:id/logout- LogoutGET /api/v1/accounts/:id/status- Get statusGET /api/v1/accounts/:id/qr- Get QR codePOST /api/v1/accounts/:id/pairing-code- Get pairing codeDELETE /api/v1/accounts/:id- Delete account
Messages
POST /api/v1/messages/send- Send textPOST /api/v1/messages/image- Send imagePOST /api/v1/messages/video- Send videoPOST /api/v1/messages/document- Send documentPOST /api/v1/messages/audio- Send audioPOST /api/v1/messages/location- Send locationPOST /api/v1/messages/contact- Send contactGET /api/v1/messages/search- Search messagesGET /api/v1/messages/:id- Get message
Other Endpoints
Contacts:
GET /api/v1/contacts,GET /api/v1/contacts/:jid,POST /api/v1/contacts/checkChats:
GET /api/v1/chats,GET /api/v1/chats/:chat_jid,GET /api/v1/chats/:chat_jid/messagesGroups:
GET /api/v1/groups,GET /api/v1/groups/:group_jid,GET /api/v1/groups/:group_jid/membersAutomations:
GET/POST /api/v1/automations,PATCH/DELETE /api/v1/automations/:id
Environment Variables
Variable | Description | Default |
| Environment |
|
| Server host |
|
| Server port |
|
| Transport type |
|
| Enable HTTP transport |
|
| HTTP port |
|
| SQLite path |
|
| Session storage |
|
| Media storage |
|
| Log storage |
|
| 32-byte hex key | required |
API credentials | Generate and store an API key using the CLI; plaintext keys are shown once | |
| Log level |
|
| Max media size |
|
Docker Deployment
# Build
docker build -t wa-mcp-pro .
# Run with compose
docker-compose up -d
# View logs
docker-compose logs -f
# Stop
docker-compose downDevelopment
# Install dependencies
pnpm install
# Run in development
pnpm dev
# Type checking
pnpm typecheck
# Linting
pnpm lint
# Formatting
pnpm format
# Tests
pnpm test
pnpm test:coverage
# Build
pnpm build
# Database
pnpm db:migrate
pnpm db:seed
# Skills
pnpm skills:validate
pnpm skills:listSkills System
WA-MCP Pro includes a comprehensive Skills system for AI Agents:
Development Skills
wa-mcp-development- Architecture and development workflowsbaileys-integration- Baileys connection and eventsmcp-server-engineering- MCP tools, resources, promptssqlite-drizzle-engineering- Database schema and querieswa-mcp-testing- Testing strategieswa-mcp-security-audit- Security auditing
Operations Skills
whatsapp-operator- Connection managementwhatsapp-messaging- Sending messageswhatsapp-chat-management- Chats, contacts, groupswhatsapp-automation- Auto-reply rules
Documentation
Security Considerations
Never commit
.envfilesUse strong
ENCRYPTION_KEY(32 random bytes)Rotate API keys periodically
Enable HTTPS in production (reverse proxy)
Monitor audit logs
Keep dependencies updated
WhatsApp Disclaimer
This software uses Baileys, an unofficial WhatsApp Web API implementation. Use responsibly:
Respect WhatsApp Terms of Service
Don't spam or send unsolicited messages
Respect user privacy and opt-out requests
Be aware of potential account restrictions
This is not an official WhatsApp product
License
MIT License - See LICENSE for details.
Contributing
See CONTRIBUTING.md for guidelines.
Support
WA-MCP Pro - Connecting WhatsApp to the AI ecosystem.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
WhatsApp for AI agents ā your own number or the official Cloud API: messages, media, templates.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
WhatsApp CRM for AI agents: search contacts, read chats, manage the sales pipeline, send messages.
Send WhatsApp messages and templates, manage chats, contacts, broadcasts and AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with WhatsApp through a Model Context Protocol server, supporting sending text messages, contacts, links, and locations via standardized tools.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to send WhatsApp messages, templates, and retrieve media through the WhatsApp Cloud API. Provides webhook handling and seamless integration with Meta's WhatsApp Business platform.23ISC
- AlicenseBqualityDmaintenanceEnables AI agents to control WhatsApp, including sending messages and media, reading chats, managing groups and communities, with QR/pairing auth and session persistence.1419 npm2MIT

GoWA MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents and tools to send and manage WhatsApp messages, media, statuses, and scheduled sends across multiple linked devices.MIT