whatsapp-business-mcp
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., "@whatsapp-business-mcpSend welcome template to +1234567890"
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.
WhatsApp Business MCP Server
MCP server for the WhatsApp Business / Meta Graph API. List business accounts and phone numbers, manage message templates, send template messages, and look up message status.
Supports two transports:
stdio — default; for local Claude Desktop / Claude Code / Cursor.
HTTP (Streamable / SSE) — for remote deployment (Railway, Fly.io, Render, your own container).
Tools
Tool | Read-only | Description |
| yes | Discovery — start here. List WABAs owned by a Meta Business. |
| yes | List phone numbers on a WABA (returns |
| yes | List templates with filters (status, language, name) and pagination. |
| no | Create a new message template (goes through Meta review). |
| destructive | Delete a template by name (all languages). |
| no | Send an approved template message. Validates phone (E.164), template name, locale. |
| yes | Look up a message by |
| restricted | Escape hatch — only whitelisted WhatsApp Business paths. |
Related MCP server: bach-whatsapp_number_validators
Resources
The server also exposes the same inventory as MCP resources so the host can cache them:
whatsapp://business-accounts/{business_id}whatsapp://phone-numbers/{waba_id}whatsapp://templates/{waba_id}
Environment variables
Variable | Required | Default | Description |
| yes | — | Meta Graph API access token (system user token recommended). |
| no |
| Graph API version. |
| no |
|
|
| no |
| HTTP transport port. |
| no |
| HTTP transport bind address. |
| no |
| HTTP transport endpoint path. |
| no | — | If set, HTTP requests must send |
Install
npm install
npm testRun locally (stdio)
WHATSAPP_TOKEN=... npm startRun as an HTTP server
WHATSAPP_TOKEN=... MCP_BEARER_TOKEN=... npm run start:http
# → MCP listening on http://0.0.0.0:3000/mcp
# → Health check at GET /healthConfigure in Claude Code / Desktop (stdio)
Once published to npm:
{
"mcpServers": {
"whatsapp-business": {
"command": "npx",
"args": ["-y", "whatsapp-business-mcp-server"],
"env": { "WHATSAPP_TOKEN": "your-token-here" }
}
}
}Or from a local checkout:
{
"mcpServers": {
"whatsapp-business": {
"command": "node",
"args": ["/absolute/path/to/whatsapp-business-mcp/src/server.mjs"],
"env": { "WHATSAPP_TOKEN": "your-token-here" }
}
}
}Configure as a remote HTTP MCP
{
"mcpServers": {
"whatsapp-business": {
"url": "https://your-host.example.com/mcp",
"headers": { "Authorization": "Bearer your-bearer-token" }
}
}
}Docker
docker build -t whatsapp-business-mcp .
docker run --rm -p 3000:3000 \
-e WHATSAPP_TOKEN=... \
-e MCP_BEARER_TOKEN=... \
whatsapp-business-mcpDeployment
Railway
New project → Deploy from GitHub.
Railway detects the Dockerfile. Set service variables:
WHATSAPP_TOKENMCP_BEARER_TOKEN(shared secret for the HTTP endpoint)
PORTis provided automatically by Railway; the server respects it.Public URL →
https://<service>.up.railway.app/mcp.
Fly.io
fly launch --no-deploy
fly secrets set WHATSAPP_TOKEN=... MCP_BEARER_TOKEN=...
fly deployEnsure the [http_service] block in fly.toml uses internal_port = 3000.
Render
New → Web Service → connect repo. Render detects the Dockerfile.
Add environment variables
WHATSAPP_TOKENandMCP_BEARER_TOKEN.Health check path:
/health.
Security notes
Always set
MCP_BEARER_TOKENwhen exposing the HTTP transport publicly. Without it, anyone who reaches the endpoint can use your WhatsApp Business token.The token is read from the server's environment, never accepted from MCP clients.
wa_api_callis restricted to a whitelist of WhatsApp Business paths; arbitrary Graph endpoints are rejected.Inputs are validated before requests reach Meta: phone numbers must be E.164, template names match
[a-z0-9_]+, locales matchxxorxx_YY.
Error handling
The server classifies Graph API failures and returns structured hints to the LLM:
token_expired/token_invalid(HTTP 401, code 190) — refresh credentials.permission_denied(HTTP 403, code 10/200) — scopes/asset access missing.rate_limited(HTTP 429, code 4) — back off and retry.not_found(HTTP 404).upstream_error(5xx).network_error— fetch failed before reaching Meta.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the WhatsApp Business API, allowing agents to send messages, manage media, and perform other WhatsApp business operations through natural language.Last updated1
- AlicenseCqualityDmaintenanceAn MCP server for the WhatsApp Number Validators API that enables users to verify WhatsApp registration and business account status for single or bulk phone numbers. It also provides phone number validation with suggested alternatives for invalid entries across different countries.Last updated8MIT

lingtai-whatsappofficial
Alicense-qualityFmaintenanceMCP server for interacting with the official Meta WhatsApp Business Platform/Cloud API, enabling sending messages, managing contacts, templates, and handling webhook callbacks.Last updatedApache 2.0- Alicense-qualityDmaintenanceEnables sending messages, managing templates, uploading media, and configuring webhooks for WhatsApp Business via the MCP protocol.Last updated194MIT
Related MCP Connectors
Hosted MCP server for the Wavix telecom platform: SMS, voice, 2FA, SIP, numbers, 10DLC, CDRs.
MCP server for Vonage API documentation, code snippets, tutorials, and troubleshooting.
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gonzalez8/whatsapp-business-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server