felipeadeildo/whatsapp-mcp
Give your AI agents your WhatsApp. An MCP server that reads, searches and sends your messages, running on your own Cloudflare account with one-click deploy.
5263a78c1e0dwhatsapp-mcp1.3.0 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 72 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 file reached by the taint walk exceeded the 524288 byte size limit and were read and parsed only up to it
- 1 file exceeded the 524288 byte size limit and were parsed only up to it
- 1 source file could be read only in part
- Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number
Top risks in plain words
- HIGHTool
test_webhookrequests any address by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Limit where it can connect
test_webhookcan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
test_webhook, switch them off. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 25 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
get_statusget_profile, get_status, load_older_messages, test_webhook, view_mediaNo tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
web.whatsapp.com· get_status
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Requests whose address comes from the tool's input: the agent decides where they go.
test_webhook1 call
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · get_status
- web or API responses2 tools · get_status, test_webhook
All three are present: text from outside could make the agent send private data away. Keep confirmations on for tools that send data.
Tool annotations
12 of 25 tools declare annotations. destructiveHint 5, idempotentHint 8, openWorldHint 11.
Each declaration matches what the traced code does.
Tools, prompts and resources (25: 25 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
test_webhooktool POSTs a webhook.test event to the webhook right away and reports the status code, error and time it took. Nothing is queued or retried.Networkoutside textRequests any address
POSTs a webhook.test event to the webhook right away and reports the status code, error and time it took. Nothing is queued or retried.
check_numberstool Which phone numbers have a WhatsApp account. Nothing is sent to them.
Which phone numbers have a WhatsApp account. Nothing is sent to them.
create_webhooktool Starts POSTing this account's events to a URL, signed with Standard Webhooks (webhook-id, webhook-timestamp and webhook-signature headers) and retried for about
Starts POSTing this account's events to a URL, signed with Standard Webhooks (webhook-id, webhook-timestamp and webhook-signature headers) and retried for about a day when the receiver fails. Returns the signing secret once. At most 10 webhooks per account.
delete_messagetool Revokes a message for everyone. Works on this account's messages, and on others' in groups this account administers.destructive (declared)
Revokes a message for everyone. Works on this account's messages, and on others' in groups this account administers.
delete_webhooktool Stops a webhook for good and drops the deliveries it still had pending.destructive (declared)
Stops a webhook for good and drops the deliveries it still had pending.
edit_messagetool Replaces the text of a message this account sent. WhatsApp only allows it for about 15 minutes after sending.destructive (declared)
Replaces the text of a message this account sent. WhatsApp only allows it for about 15 minutes after sending.
find_chatstool Chats any of whose names (contact, WhatsApp, group subject, past names) or phone matches the text, accents and case ignored, most recently active first. `matche
Chats any of whose names (contact, WhatsApp, group subject, past names) or phone matches the text, accents and case ignored, most recently active first. `matched` shows the name that matched when it is not the display name.
find_peopletool People any of whose names (saved contact name, WhatsApp name, business name, username, past names) or phone matches the text, accents and case ignored, includin
People any of whose names (saved contact name, WhatsApp name, business name, username, past names) or phone matches the text, accents and case ignored, including people you have no chat with (e.g. fellow group members). `matched` shows the name that matched when it is not the display name.
get_group_infotool Live group metadata: subject, description, owner, creation date, settings and participants with admin roles.
Live group metadata: subject, description, owner, creation date, settings and participants with admin roles.
get_message_contexttool A message with the messages around it, e.g. to read the conversation behind a search hit.
A message with the messages around it, e.g. to read the conversation behind a search hit.
get_messagestool The latest messages of a chat, oldest first. Page back with `before` set to the oldest `at` you have. Filter by sender in groups with `from`.
The latest messages of a chat, oldest first. Page back with `before` set to the oldest `at` you have. Filter by sender in groups with `from`.
get_profiletool A person's name as known here, their About text and profile picture URL, when their privacy settings allow it.Network
A person's name as known here, their About text and profile picture URL, when their privacy settings allow it.
get_statustool Connection state, the account's own JID and name, the time zone, and how much the archive holds (chats, contacts, messages, date range).FilesNetworkoutside text
Connection state, the account's own JID and name, the time zone, and how much the archive holds (chats, contacts, messages, date range).
get_webhooktool One webhook and its latest deliveries, with the status code or error of each attempt, to find out why a receiver is not getting events.
One webhook and its latest deliveries, with the status code or error of each attempt, to find out why a receiver is not getting events.
list_chatstool Chats ordered like the phone does: pinned first, then by latest activity.
Chats ordered like the phone does: pinned first, then by latest activity.
list_webhookstool The URLs this account POSTs its events to, with the events and chats each receives, whether it is ok, failing or disabled, and how many deliveries are pending.
The URLs this account POSTs its events to, with the events and chats each receives, whether it is ok, failing or disabled, and how many deliveries are pending.
load_older_messagestool Asks the phone for messages older than the oldest one archived for a chat, waits up to 20 seconds, and reports how many arrived. The phone must be online. Read Network
Asks the phone for messages older than the oldest one archived for a chat, waits up to 20 seconds, and reports how many arrived. The phone must be online. Read them with get_messages.
mark_as_readtool Marks a chat read up to its latest message (blue ticks for the sender, when they are enabled).
Marks a chat read up to its latest message (blue ticks for the sender, when they are enabled).
react_to_messagetool Adds an emoji reaction to a message, replacing this account's previous one. An empty emoji removes it.
Adds an emoji reaction to a message, replacing this account's previous one. An empty emoji removes it.
remove_contacttool Removes a person from this account's address book, on the phone and the other linked devices. Their chat and messages stay, shown under the name they chose on Wdestructive (declared)
Removes a person from this account's address book, on the phone and the other linked devices. Their chat and messages stay, shown under the name they chose on WhatsApp or their number.
save_contacttool Saves a person to this account's address book, or renames them if they are already saved. WhatsApp syncs it to the phone and the other linked devices. Pass the
Saves a person to this account's address book, or renames them if they are already saved. WhatsApp syncs it to the phone and the other linked devices. Pass the person's JID or phone number; first_name defaults to the first word of full_name.
search_messagestool Full-text search across all chats, best matches first, including what was said in voice and audio messages already transcribed and the descriptions of images al
Full-text search across all chats, best matches first, including what was said in voice and audio messages already transcribed and the descriptions of images already viewed. Every word must appear (prefix match, accents and case ignored). Narrow with `chat`, `from`, `after`, `before`.
send_messagetool Sends a text message. Retries are safe: an identical request (same chat, text, reply and mentions) within two minutes, or with the same `idempotency_key` within
Sends a text message. Retries are safe: an identical request (same chat, text, reply and mentions) within two minutes, or with the same `idempotency_key` within a day, returns the first message instead of sending again.
update_webhooktool Changes a webhook's URL, events, chats, headers or description, pauses or resumes it, or issues a new signing secret. Fields left out keep their value.destructive (declared)
Changes a webhook's URL, events, chats, headers or description, pauses or resumes it, or issues a new signing secret. Fields left out keep their value.
view_mediatool The media in one message: an image or sticker as WhatsApp sent it, the preview inside a video, or the transcript of a voice or audio message. The first view of Network
The media in one message: an image or sticker as WhatsApp sent it, the preview inside a video, or the transcript of a voice or audio message. The first view of an image saves a description (a vision-model call) that later reads and search show.
Text the model reads (25)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
get_status tool
Connection state, the account's own JID and name, the time zone, and how much the archive holds (chats, contacts, messages, date range).
list_chats tool
Chats ordered like the phone does: pinned first, then by latest activity.
find_chats tool
Chats any of whose names (contact, WhatsApp, group subject, past names) or phone matches the text, accents and case ignored, most recently active first. `matched` shows the name that matched when it is not the display name.
find_people tool
People any of whose names (saved contact name, WhatsApp name, business name, username, past names) or phone matches the text, accents and case ignored, including people you have no chat with (e.g. fellow group members). `matched` shows the name that matched when it is not the display name.
get_messages tool
The latest messages of a chat, oldest first. Page back with `before` set to the oldest `at` you have. Filter by sender in groups with `from`.
get_message_context tool
A message with the messages around it, e.g. to read the conversation behind a search hit.
view_media tool
The media in one message: an image or sticker as WhatsApp sent it, the preview inside a video, or the transcript of a voice or audio message. The first view of an image saves a description (a vision-model call) that later reads and search show.
search_messages tool
Full-text search across all chats, best matches first, including what was said in voice and audio messages already transcribed and the descriptions of images already viewed. Every word must appear (prefix match, accents and case ignored). Narrow with `chat`, `from`, `after`, `before`.
send_message tool
Sends a text message. Retries are safe: an identical request (same chat, text, reply and mentions) within two minutes, or with the same `idempotency_key` within a day, returns the first message instead of sending again.
react_to_message tool
Adds an emoji reaction to a message, replacing this account's previous one. An empty emoji removes it.
edit_message tool
Replaces the text of a message this account sent. WhatsApp only allows it for about 15 minutes after sending.
delete_message tool
Revokes a message for everyone. Works on this account's messages, and on others' in groups this account administers.
mark_as_read tool
Marks a chat read up to its latest message (blue ticks for the sender, when they are enabled).
save_contact tool
Saves a person to this account's address book, or renames them if they are already saved. WhatsApp syncs it to the phone and the other linked devices. Pass the person's JID or phone number; first_name defaults to the first word of full_name.
remove_contact tool
Removes a person from this account's address book, on the phone and the other linked devices. Their chat and messages stay, shown under the name they chose on WhatsApp or their number.
check_numbers tool
Which phone numbers have a WhatsApp account. Nothing is sent to them.
get_group_info tool
Live group metadata: subject, description, owner, creation date, settings and participants with admin roles.
get_profile tool
A person's name as known here, their About text and profile picture URL, when their privacy settings allow it.
load_older_messages tool
Asks the phone for messages older than the oldest one archived for a chat, waits up to 20 seconds, and reports how many arrived. The phone must be online. Read them with get_messages.
list_webhooks tool
The URLs this account POSTs its events to, with the events and chats each receives, whether it is ok, failing or disabled, and how many deliveries are pending.
get_webhook tool
One webhook and its latest deliveries, with the status code or error of each attempt, to find out why a receiver is not getting events.
create_webhook tool
Starts POSTing this account's events to a URL, signed with Standard Webhooks (webhook-id, webhook-timestamp and webhook-signature headers) and retried for about a day when the receiver fails. Returns the signing secret once. At most 10 webhooks per account.
update_webhook tool
Changes a webhook's URL, events, chats, headers or description, pauses or resumes it, or issues a new signing secret. Fields left out keep their value.
delete_webhook tool
Stops a webhook for good and drops the deliveries it still had pending.
test_webhook tool
POSTs a webhook.test event to the webhook right away and reports the status code, error and time it took. Nothing is queued or retried.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 25 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 25 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 25 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any address1 finding the scanner could not decide; see the findings below
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 25 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 25 capabilities; 25 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 25 capabilities touch files; 24 more call code the scanner could not follow, where it may happen
- Tools that call the network5 of 25 capabilities call the network; 20 more call code the scanner could not follow, where it may happen
Where the code is: 25 handlers in 2 files at commit 5263a78c1e0d
src/mcp/server.tsget_status, list_chats, find_chats, find_people, get_messages, get_message_context, view_media, search_messages, send_message, react_to_message, edit_message, delete_message +7src/mcp/webhook-tools.tslist_webhooks, get_webhook, create_webhook, update_webhook, delete_webhook, test_webhook
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSVNothing could be resolved to exact versions; 2 not resolved: bun.lock: lockfile format is not supported by this analyzer, dependencies were not checked; package.json: dependency ranges declared here were not resolved against a lockfile and were not checked
- MCP SDK version@modelcontextprotocol/server 2.0.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 25 capabilities; 25 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/server 2.0.0 |
| Servers in the code | 1 (whatsapp-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-07 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | GPL-3.0 |
| Created | 2025-12-17 |
| Topics | cloudflare-workers durable-objects mcp mcp-server whatsapp whatsapp-api whatsapp-mcp whatsapp-web whatsapp-web-api |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.