WhatsAppSAFE
MCP server for WhatsApp Cloud API — send messages, read conversations, manage contacts, and handle media through AI assistants like Claude
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](LICENSE) [](https://nodejs.org) [](https://www.typescriptlang.org) [](https://modelcontextprotocol.io) [](https://developers.facebook.com/docs/whatsapp/cloud-api) [](https://developers.facebook.com/docs/whatsapp/cloud-api) -25D366)
A production-ready Model Context Protocol (MCP) server that connects AI assistants like Claude to the WhatsApp Cloud API (Meta). Send messages, manage conversations, handle media, send template messages, and receive real-time webhooks — all through natural language.
Why this MCP server?
This is the only WhatsApp MCP server built on the official Meta WhatsApp Cloud API.
Most WhatsApp tools for developers rely on unofficial browser automation libraries (whatsapp-web.js) or reverse-engineered protocols (whatsmeow, Baileys). These approaches violate WhatsApp's Terms of Service and carry a real risk of account bans. This project is different.
07871f30dc3aOBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add whatsapp-mcp-server --env WHATSAPP_ACCESS_TOKEN=${WHATSAPP_ACCESS_TOKEN} --env WHATSAPP_WEBHOOK_VERIFY_TOKEN=${WHATSAPP_WEBHOOK_VERIFY_TOKEN} --env WHATSAPP_APP_SECRET=${WHATSAPP_APP_SECRET} -- npx -y @fredshred7/[email protected]Exposed tools (18)
7 read · 10 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
whatsapp_delete_media | destructive | Delete a previously uploaded media file from WhatsApp servers using its media ID. This frees up storage and removes the file permanently. |
whatsapp_get_business_profile | read | Retrieve the WhatsApp Business profile for your connected phone number, including about text, address, description, email, and website. |
whatsapp_get_contact | read | [LEGACY / UNSUPPORTED] Look up a phone number to check if it has a WhatsApp account and retrieve the WhatsApp ID. |
whatsapp_get_conversation | read | Get the message history for a conversation with a specific phone number. Requires webhook server. |
whatsapp_get_media_url | read | Get the download URL for a WhatsApp media file using its media ID. The URL is temporary and expires after 5 minutes. Use this to download received media. |
whatsapp_get_message_status | read | Get the delivery/read status of a previously sent message. Requires webhook server for live updates. |
whatsapp_list_conversations | read | List recent WhatsApp conversations. Only available when the webhook server is running and has received messages. |
whatsapp_list_templates | read | List available WhatsApp message templates for your business account. Shows template name, status (APPROVED/PENDING/REJECTED), category, and language. Requires WHATSAPP_BUSINESS_ACCOUNT_ID to be configured. |
whatsapp_mark_read | write | Mark an incoming WhatsApp message as read. This sends a read receipt to the sender. |
whatsapp_send_audio | write | Send an audio message to a WhatsApp phone number. Provide a publicly accessible audio URL. |
whatsapp_send_document | write | Send a document or file to a WhatsApp phone number. Supports PDF, Word, Excel, and other common formats. |
whatsapp_send_image | write | Send an image message to a WhatsApp phone number. Provide a publicly accessible image URL. |
whatsapp_send_reaction | write | React to a WhatsApp message with an emoji. |
whatsapp_send_template | write | Send an approved WhatsApp message template. Templates are pre-approved messages used for business-initiated conversations. Supports header, body, and button components with dynamic variable substitution. |
whatsapp_send_text | write | Send a text message to a WhatsApp phone number. Supports up to 4096 characters and optional URL preview. |
whatsapp_send_video | write | Send a video message to a WhatsApp phone number. Provide a publicly accessible video URL. |
whatsapp_update_business_profile | write | Update your WhatsApp Business profile. You can update the about text, address, description, email, website URLs, and business vertical. |
whatsapp_upload_media | write | Upload a media file from a URL to WhatsApp and get back a media ID. The media ID can then be used to send media messages. Supports images (JPEG, PNG, WebP), videos (MP4, 3GPP), audio (AAC, MP4, MPEG, AMR, OGG), and documents (PDF, Word, Excel, PowerPoint, plain text). |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (3 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
whatsapp_delete_media
[. Every one is listed on this page with its risk.
Is WhatsApp safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does WhatsApp need?
It reads WHATSAPP_ACCESS_TOKEN, WHATSAPP_APP_SECRET and WHATSAPP_WEBHOOK_VERIFY_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does WhatsApp run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @fredshred7/whatsapp-mcp-server at 1.1.0.
How current is this page?
The grade is for one exact copy of the source (07871f30dc3a), read on 2026-10-09. The repository is watched and re-audited when it changes.