WhatsApp Messaging API

v2.0.0
io.github.jevil25/whatsapp-messaging-api-mcp Checked 2 days ago Published 18 days ago

Send WhatsApp messages from Claude.

Values you need

VariableWhat it is
WHATSAPP_API_KEYrequired 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.0
Add 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

  1. Ask the user for: WHATSAPP_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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