whatsapp-cloud-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WHATSAPP_DRY_RUN | No | 1/true to preview requests without sending. | 0 |
| WHATSAPP_APP_SECRET | No | App secret for webhook signature verification. | |
| WHATSAPP_TIMEOUT_MS | No | Per-request timeout in ms. | 15000 |
| WHATSAPP_UPLOAD_DIR | No | Directory whose files upload_media's file_path may read; unset disables local-file uploads. | |
| WHATSAPP_API_VERSION | No | Graph API version. | v27.0 |
| WHATSAPP_ACCESS_TOKEN | Yes | Cloud API access token. | |
| WHATSAPP_GRAPH_BASE_URL | No | Graph base URL (override for proxies/mocks). | https://graph.facebook.com |
| WHATSAPP_PHONE_NUMBER_ID | Yes | Sender phone-number ID. | |
| WHATSAPP_BUSINESS_ACCOUNT_ID | No | WABA ID (needed by list_message_templates). | |
| WHATSAPP_DEFAULT_COUNTRY_CODE | No | Country code for national numbers (e.g. 971). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Send WhatsApp messages via the official WhatsApp Cloud API. Remember: free-form messages only work within the 24-hour customer-service window (after the user last messaged you). To start or re-open a conversation, send an approved template with send_template_message. Use dry-run to preview requests safely.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| send_text_messageA | Send a plain text WhatsApp message to a phone number. Only works inside the 24-hour customer-service window (i.e. the user messaged you in the last 24h). To start a brand-new conversation, use send_template_message instead. |
| send_template_messageA | Send a pre-approved WhatsApp message template. Templates are REQUIRED to start a conversation (or to re-engage a user after the 24-hour customer-service window has closed). Use body_parameters for simple {{1}},{{2}} placeholders, or components for advanced header/button parameters. Discover templates with list_message_templates. |
| send_media_messageA | Send an image, video, audio, document or sticker, either by a public HTTPS link or by a media_id from upload_media. Captions are supported for image/video/document only. Requires an open 24-hour customer-service window. |
| send_interactive_buttonsA | Send up to 3 quick-reply buttons with a message. The user's tap is delivered to your webhook as a button reply (id + title). Requires an open 24-hour customer-service window. |
| send_interactive_listA | Send a tappable list menu (up to 10 rows total across sections). The user's selection is delivered to your webhook as a list reply (id + title). Requires an open 24-hour customer-service window. |
| mark_as_readA | Mark an incoming message as read (blue ticks), optionally also showing a typing indicator. Pass the wamid of the message you received. |
| list_message_templatesA | List the message templates for your WhatsApp Business Account, including their approval status, category and language. Use this to find a template name/language to pass to send_template_message. |
| get_business_profileA | Fetch the public WhatsApp business profile for your phone number (about, address, description, email, websites, vertical, profile picture). |
| upload_mediaA | Upload a media file to WhatsApp and get back a media_id you can reuse in send_media_message. Provide exactly one of file_path (a local file) or url (a remote file to fetch). file_path only works when the server is configured with WHATSAPP_UPLOAD_DIR and the file lives inside it; url must be a public https:// URL. The MIME type is inferred from the file extension when not given. Max 100MB. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each send_* tool maps to a distinct WhatsApp message type (text, template, media, interactive list, interactive buttons) and the descriptions explicitly state the conditions under which each applies, including the 24-hour window constraint. Even the closely related interactive list vs. buttons pair is clearly separated by payload shape and row/button limits. Read/receipt, template discovery, profile fetch, and media upload tools are each unambiguous.
All nine tools follow a consistent snake_case verb_noun convention (send_*, list_*, get_*, mark_*, upload_*). The verb choice is predictable for each action type, with no camelCase or naming-style mixing.
Nine tools is well within the sweet spot and each earns its place, covering the distinct outbound message types plus the supporting operations agents actually need. Nothing feels redundant or padded.
The messaging lifecycle is well covered: text/template/media/interactive sends, mark-as-read, template discovery, media upload, and profile fetch. Minor gaps remain, such as updating the business profile, downloading/retrieving received media, or reactions, but agents can work around these for the core send/receive flow.