
Mcp Whatsapp Cloud
io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026
MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API
Overview
A local MCP server for Meta's WhatsApp Cloud API that lets an assistant send WhatsApp messages, media and templates and manage a business account.
- What you can do
- Send text, template, media, interactive, flow, location, contact and reaction messages, plus typing indicators and read receipts to WhatsApp numbers through the Cloud API. Upload, resolve and delete media assets, reusing uploaded media IDs across sends. List, create and delete message templates on the WhatsApp Business Account. Read and update the business profile and list registered phone numbers. Request and submit phone number verification codes.
- When to use it
- Useful when a business already has an approved WhatsApp Business Account and wants an assistant to handle customer messaging, template management or account administration directly through Meta without an intermediary provider.
- Requirements
- Runs locally via npx from the npm package @codespar/mcp-whatsapp-cloud (Node.js). Requires a Meta system-user access token in WHATSAPP_ACCESS_TOKEN, a phone number ID in WHATSAPP_PHONE_NUMBER_ID and a WhatsApp Business Account ID in WHATSAPP_BUSINESS_ACCOUNT_ID; WHATSAPP_GRAPH_VERSION is optional and defaults to v21.0. Network access to the Meta Graph API is needed.
Installation
In SourceWeft
- Open Mcp Whatsapp Cloud in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@codespar/mcp-whatsapp-cloud
MCP server for the WhatsApp Cloud API — Meta's official WhatsApp Business API, self-hosted on Meta infrastructure.
Direct Meta integration. No middleman, no provider markup. For merchants with an approved WhatsApp Business Account (WABA) who want Meta-direct pricing and full control over conversation, pricing category, and template lifecycle.
WhatsApp servers in this catalog
Tools (22)
Install
Environment
Authentication
Bearer token against the Graph API. Use a permanent system-user token from Meta Business Manager — user access tokens expire and will break production.
Messaging rules (important)
- Customer-service window — You can freely send any message type for 24h after the user last messaged you.
- Business-initiated — Outside that window you must send an approved template. Use
send_template_messagewith a name + language + components. - Templates — Create with
create_template, wait for Meta approval (minutes to hours), then use. - Phone numbers are E.164 without the leading
+(e.g.5511999999999).
Media
Two paths:
- Public URL — pass
linktosend_media_message. Fastest, but Meta fetches on every send. - Uploaded media_id — call
upload_mediaonce, reuseidon subsequent sends. Recommended for catalog assets.
Uploaded media expires after ~30 days.
Interactive messages
send_interactive_message expects a fully-formed interactive object. Example button payload:
See the Cloud API interactive reference for list payloads.
Run
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Source: packages/communication/whatsapp-cloud/README.md at commit d0a519a
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts