Meta-direct WhatsApp Cloud API. Distinct from our Z-API/Evolution/Take Blip/Zenvia wrappers โ this is the official Graph API integration (no middleman fees, requires approved WABA). 11 tools across messages, media, templates.
$ npm install @codespar/mcp-whatsapp-cloudAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"whatsapp-cloud": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-whatsapp-cloud"
],
"env": {
"WHATSAPP_ACCESS_TOKEN": "<your_whatsapp_access_token>",
"WHATSAPP_PHONE_NUMBER_ID": "<your_whatsapp_phone_number_id>",
"WHATSAPP_BUSINESS_ACCOUNT_ID": "<your_whatsapp_business_account_id>"
}
}
}
}After restart, your agent can call any of the 22 tools below โ try send_text_message first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
WHATSAPP_ACCESS_TOKENMeta system-user access token (permanent). Used as Bearer token for Graph API.
WHATSAPP_PHONE_NUMBER_IDWhatsApp Business phone number ID registered with Meta.
WHATSAPP_BUSINESS_ACCOUNT_IDWhatsApp Business Account (WABA) ID. Used for template management.
WHATSAPP_GRAPH_VERSIONGraph API version. Defaults to v21.0. Meta bumps quarterly.
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
send_text_messagesend_template_messagesend_media_messagesend_interactive_messagesend_interactive_cta_urlsend_interactive_flowsend_location_messagesend_contacts_messageMCP is a protocol โ any framework that speaks it can mount this server.