WhatsApp + Claude, Cursor & MCP
An MCP server gives Claude, Cursor or any MCP client tools to link a WhatsApp number and send messages, images and files. It runs with npx; nothing to clone or build.
Setup
- 1
Get an API key
Sign in at /start and copy a session token (ch_live_...) for one number, or an account key (ak_live_...) to create and use several sessions.
- 2
Add the server to your client
Add the config below to Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) or any MCP client, or use the one-line command for Claude Code.
- 3
Ask for what you need
Restart the client and ask it to show the QR code, check the session status, or send a message. Tools: list_sessions, create_session, get_session_status, get_qr_code, request_pairing_code, check_contact_exists, send_text_message, send_image, send_file.
Claude Desktop, Cursor and other clients
{
"mcpServers": {
"whatsapp": {
"command": "npx",
"args": ["-y", "whatsapp-messaging-api-mcp"],
"env": { "WHATSAPP_API_KEY": "ch_live_your_session_token" }
}
}
}Claude Code
claude mcp add whatsapp -e WHATSAPP_API_KEY=ch_live_your_session_token -- npx -y whatsapp-messaging-api-mcpWhat people build with it
- Ask Claude to message a customer after it drafts the reply
- An agent that sends a WhatsApp summary when a long task finishes
- Check whether a list of numbers is on WhatsApp from chat
- Send a generated PDF or chart to a group
Links
Get your API key
Free tier, no credit card. Link a number by QR code, then copy a session token from the console.
Get started free