WhatsApp Messaging API
v2.0.0Send WhatsApp messages from Claude.
Values you need
| Variable | What it is | |
|---|---|---|
WHATSAPP_API_KEY | required secret | Session token (ch_live_...) or account key (ak_live_...) from whatsapp-messaging.retentionstack.agency/app. Free tier, no credit card. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add whatsapp-messaging-api-mcp -e 'WHATSAPP_API_KEY=<WHATSAPP_API_KEY>' -- npx -y whatsapp-messaging-api-mcp@2.0.0Add to
claude_desktop_config.json{
"mcpServers": {
"whatsapp-messaging-api-mcp": {
"args": [
"-y",
"whatsapp-messaging-api-mcp@2.0.0"
],
"command": "npx",
"env": {
"WHATSAPP_API_KEY": "<WHATSAPP_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"whatsapp-messaging-api-mcp": {
"args": [
"-y",
"whatsapp-messaging-api-mcp@2.0.0"
],
"command": "npx",
"env": {
"WHATSAPP_API_KEY": "<WHATSAPP_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "WHATSAPP_API_KEY",
"id": "whatsapp-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"whatsapp-messaging-api-mcp": {
"args": [
"-y",
"whatsapp-messaging-api-mcp@2.0.0"
],
"command": "npx",
"env": {
"WHATSAPP_API_KEY": "${input:whatsapp-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.whatsapp-messaging-api-mcp]
command = "npx"
args = ["-y", "whatsapp-messaging-api-mcp@2.0.0"]
env = { "WHATSAPP_API_KEY" = "<WHATSAPP_API_KEY>" }For AI agents
- Ask the user for: WHATSAPP_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_sessions, create_session, get_session_status, get_qr_code, request_pairing_code, check_contact_exists, send_text_message, send_image, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json