mcp-whatsapp-cloud MCP Server
MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API
mcp-whatsapp-cloud scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 22 tools. Filed under Communication. Package registries report about 71 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 45 comes from
22 + 10 + 0 + 0 + 10 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "codespar-whatsapp-cloud": { "command": "npx", "args": [ "-y", "@codespar/mcp-whatsapp-cloud@0.2.2" ], "env": { "WHATSAPP_ACCESS_TOKEN": "YOUR_WHATSAPP_ACCESS_TOKEN", "WHATSAPP_PHONE_NUMBER_ID": "", "WHATSAPP_BUSINESS_ACCOUNT_ID": "", "WHATSAPP_GRAPH_VERSION": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
WHATSAPP_ACCESS_TOKENSecret | Required | Meta system-user access token (permanent). Used as Bearer token for Graph API. |
WHATSAPP_PHONE_NUMBER_ID | Required | WhatsApp Business phone number ID registered with Meta. |
WHATSAPP_BUSINESS_ACCOUNT_ID | Required | WhatsApp Business Account (WABA) ID. Used for template management. |
WHATSAPP_GRAPH_VERSION | Optional | Graph API version. Defaults to v21.0. Meta bumps quarterly. |
Tools22Tool docs quality grade C
All capabilitiescreate_templatetoolSubmit a new template for Meta review.
delete_mediatoolDelete an uploaded media asset by id.
delete_templatetoolDelete a message template from the WABA by name.
Read the WhatsApp business profile (about, description, email, websites, vertical, address) for the configu...
List all phone numbers registered under the WhatsApp Business Account, including display name, quality rati...
list_templatestoolList message templates on the WhatsApp Business Account.
Mark an incoming message as read so the sender sees the blue double-check.
Request Meta to send a verification code to the configured phone number via SMS or voice.
Resolve a mediaid to a short-lived downloadable URL.
Send one or more contact cards (vCard-like).
Send an interactive message with a single CTA URL button.
Send a WhatsApp Flow message.
About
@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
| Server | What it is | When to pick it |
|---|---|---|
| whatsapp-cloud (this) | Direct Meta Cloud API | Large merchants with approved WABA; lower cost at scale, no intermediary fees |
| z-api | Wrapper on top of Meta Cloud | Easy onboarding, instant QR-pair, extra helpers |
| evolution-api | Open-source wrapper | Self-hosted, community-driven |
| take-blip | Brazilian BSP wrapper | Enterprise Brazil, CCaaS features |
| zenvia | Brazilian BSP wrapper | Brazil omnichannel (SMS + WhatsApp) |
Tools (22)
| Tool | Purpose |
|---|---|
send_text_message | Send a plain text message. |
send_template_message | Send an approved message template. |
send_media_message | Send an image, video, document, or audio. |
send_interactive_message | Send an interactive message (reply buttons or list). |
send_interactive_cta_url | Send an interactive message with a single CTA URL button. |
send_interactive_flow | Send a WhatsApp Flow message. |
send_location_message | Send a location pin with latitude/longitude and optional name/address. |
send_contacts_message | Send one or more contact cards (vCard-like). |
send_reaction_message | Send an emoji reaction on a previously received/sent message. |
send_typing_indicator | Show a typing indicator on a received message. |
mark_message_as_read | Mark an incoming message as read so the sender sees the blue double-check. |
upload_media | Upload a media file and get back a media_id reusable in send_media_message. |
retrieve_media_url | Resolve a media_id to a short-lived downloadable URL. |
delete_media | Delete an uploaded media asset by id. |
list_templates | List message templates on the WhatsApp Business Account. |
create_template | Submit a new template for Meta review. |
delete_template | Delete a message template from the WABA by name. |
get_business_profile | Read the WhatsApp business profile (about, description, email, websites, vertical, address) for the configu... |
update_business_profile | Update the business profile on the configured phone number. |
list_phone_numbers | List all phone numbers registered under the WhatsApp Business Account, including display name, quality rati... |
request_verification_code | Request Meta to send a verification code to the configured phone number via SMS or voice. |
verify_code | Submit the verification code received via SMS/voice after request_verification_code. |
Install
npm install @codespar/mcp-whatsapp-cloud
Environment
WHATSAPP_ACCESS_TOKEN="EAAG..." # required (secret) — Meta system-user token
WHATSAPP_PHONE_NUMBER_ID="1234567890" # required — WABA phone number id
WHATSAPP_BUSINESS_ACCOUNT_ID="9876543210" # required — WABA id (for templates)
WHATSAPP_GRAPH_VERSION="v21.0" # optional — Meta bumps quarterly
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.
Authorization: Bearer <WHATSAPP_ACCESS_TOKEN>
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:
{
"type": "button",
"body": { "text": "Confirma seu pedido?" },
"action": {
"buttons": [
{ "type": "reply", "reply": { "id": "confirm", "title": "Confirmar" } },
{ "type": "reply", "reply": { "id": "cancel", "title": "Cancelar" } }
]
}
}
See the Cloud API interactive reference for list payloads.
Run
# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-whatsapp-cloud
# HTTP (for server-to-server)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-whatsapp-cloud
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
Frequently asked questions
What is mcp-whatsapp-cloud MCP Server?
MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API
How do I install mcp-whatsapp-cloud MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-whatsapp-cloud MCP Server runs locally from the npm package @codespar/mcp-whatsapp-cloud with the command npx -y @codespar/mcp-whatsapp-cloud@0.2.2.
Does mcp-whatsapp-cloud MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-whatsapp-cloud MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-whatsapp-cloud MCP Server provide?
mcp-whatsapp-cloud MCP Server provides 22 tools, including create_template, delete_media, delete_template, and get_business_profile. See the full tool list for descriptions and parameters.
How is mcp-whatsapp-cloud MCP Server's trust score calculated?
mcp-whatsapp-cloud MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.