finereli/whatsapp-mcp
A read-only MCP server that lets your AI agent search and read your own WhatsApp messages. Use it free at whatsapp.finereli.com, or run your own copy on Cloudflare.
b49d494f7715whatsapp-mcp0.0.1 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 11 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
Top risks in plain words
- HIGH5 production dependencies have known vulnerabilities (worst: high).
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.
- Update its vulnerable packages
Use
@hono/node-server2.1.6 or later,body-parser2.4.0 or later,fast-uri3.1.9 or later,hono4.13.16 or later and 1 more. - 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 11 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_mediaget_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.
- None: no request names a fixed host.
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.
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_media
Not all three are present in the tools the scanner traced.
Tool annotations
7 of 11 tools declare annotations. readOnlyHint 4, destructiveHint 1, idempotentHint 2.
Each declaration matches what the traced code does.
Tools, prompts and resources (11: 11 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
get_mediatool FilesNetworkoutside textread-only (declared)
No description.
get_messagestool Read messages from one chat, oldest first. `chat` is a jid from list_chats or a name/number fragment. By default returns the most recent messages; pass `before`
Read messages from one chat, oldest first. `chat` is a jid from list_chats or a name/number fragment. By default returns the most recent messages; pass `before` to page back in time or `after` to page forward.
link_statustool Is WhatsApp linked, when was the last pull, and how much is stored. Use this first if anything looks wrong.read-only (declared)
Is WhatsApp linked, when was the last pull, and how much is stored. Use this first if anything looks wrong.
list_chatstool List chats (DMs and groups), most recently active first. Optionally filter by name or number fragment. If a person you're looking for isn't here by name, they m
List chats (DMs and groups), most recently active first. Optionally filter by name or number fragment. If a person you're looking for isn't here by name, they may be a chat known only by number: see unnamed_chats.
relinktool Unlink the current WhatsApp session and start over. Stored messages are kept. The owner must then open the returned URL and scan a QR code with their phone, whidestructive (declared)
Unlink the current WhatsApp session and start over. Stored messages are kept. The owner must then open the returned URL and scan a QR code with their phone, which an agent cannot do for them. Use when link_status says not linked, or the session is broken, or the owner asks to relink or re-import history.
search_messagestool Search all messages (or one chat) for words, newest matches first. Words are matched whole, ignoring case and accents; several words must all appear; "quoted wo
Search all messages (or one chat) for words, newest matches first. Words are matched whole, ignoring case and accents; several words must all appear; "quoted words" must appear together in order; a trailing * matches word starts (flight* finds flights). Messages are stored encrypted, so each search decrypts the history, which takes a few seconds. Put every search you need in `queries` and the cost is paid once for all of them. To find everything with a person, use list_chats to get their chat. If nobody by that name exists, see unnamed_chats.
set_contact_namestool Save names for phone numbers, so chats and group messages from them show a name instead of a number. Only save names you actually found, in the user's contacts
Save names for phone numbers, so chats and group messages from them show a name instead of a number. Only save names you actually found, in the user's contacts or in the conversation itself. Never guess. Numbers can be in any format (+972 52-421-9320, 052-421-9320) or the form shown by unnamed_chats. An empty name removes a saved name. This only changes how names display on this server. It sends nothing to WhatsApp.
sync_nowtool Force a pull of new messages from WhatsApp right now and report how many arrived.
Force a pull of new messages from WhatsApp right now and report how many arrived.
transcribe_audiotool Turn voice notes and audio messages in one chat into text. Take the ids from the "(media id: ...)" next to [voice note] or [audio] in get_messages or search_mes
Turn voice notes and audio messages in one chat into text. Take the ids from the "(media id: ...)" next to [voice note] or [audio] in get_messages or search_messages, and put every one you need from a chat in one call. A transcript is kept with its message, so asking again is free, and get_messages and search_messages show and find its words afterwards. Transcription runs on a speech model at Cloudflare, where this server runs.
unanswered_chatstool Direct (one-to-one) chats where the other person wrote last and the user has not replied, most recent first. Groups are left out. A reaction from the user countread-only (declared)
Direct (one-to-one) chats where the other person wrote last and the user has not replied, most recent first. Groups are left out. A reaction from the user counts as a reply. Each row says how many messages are waiting, since when, and the last one. Looks at chats active in the last 14 days unless `since` says otherwise.
unnamed_chatstool One-to-one chats that are known only by phone number, busiest first, with the last thing the other person said so you can tell who they are. Use this when a perread-only (declared)
One-to-one chats that are known only by phone number, busiest first, with the last thing the other person said so you can tell who they are. Use this when a person can't be found by name. Match the numbers against the user's contacts (for example with a Google Contacts or Gmail tool), then save the names with set_contact_names. Most of these are one-off messages from people who were never saved, so it is normal for many to stay unnamed.
Text the model reads (11)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list_chats tool
List chats (DMs and groups), most recently active first. Optionally filter by name or number fragment. If a person you're looking for isn't here by name, they may be a chat known only by number: see unnamed_chats.
get_messages tool
Read messages from one chat, oldest first. `chat` is a jid from list_chats or a name/number fragment. By default returns the most recent messages; pass `before` to page back in time or `after` to page forward.
search_messages tool
Search all messages (or one chat) for words, newest matches first. Words are matched whole, ignoring case and accents; several words must all appear; "quoted words" must appear together in order; a trailing * matches word starts (flight* finds flights). Messages are stored encrypted, so each search decrypts the history, which takes a few seconds. Put every search you need in `queries` and the cost is paid once for all of them. To find everything with a person, use list_chats to get their chat. If nobody by that name exists, see unnamed_chats.
unanswered_chats tool
Direct (one-to-one) chats where the other person wrote last and the user has not replied, most recent first. Groups are left out. A reaction from the user counts as a reply. Each row says how many messages are waiting, since when, and the last one. Looks at chats active in the last 14 days unless `since` says otherwise.
get_media tool
transcribe_audio tool
Turn voice notes and audio messages in one chat into text. Take the ids from the "(media id: ...)" next to [voice note] or [audio] in get_messages or search_messages, and put every one you need from a chat in one call. A transcript is kept with its message, so asking again is free, and get_messages and search_messages show and find its words afterwards. Transcription runs on a speech model at Cloudflare, where this server runs.
unnamed_chats tool
One-to-one chats that are known only by phone number, busiest first, with the last thing the other person said so you can tell who they are. Use this when a person can't be found by name. Match the numbers against the user's contacts (for example with a Google Contacts or Gmail tool), then save the names with set_contact_names. Most of these are one-off messages from people who were never saved, so it is normal for many to stay unnamed.
set_contact_names tool
Save names for phone numbers, so chats and group messages from them show a name instead of a number. Only save names you actually found, in the user's contacts or in the conversation itself. Never guess. Numbers can be in any format (+972 52-421-9320, 052-421-9320) or the form shown by unnamed_chats. An empty name removes a saved name. This only changes how names display on this server. It sends nothing to WhatsApp.
link_status tool
Is WhatsApp linked, when was the last pull, and how much is stored. Use this first if anything looks wrong.
relink tool
Unlink the current WhatsApp session and start over. Stored messages are kept. The owner must then open the returned URL and scan a QR code with their phone, which an agent cannot do for them. Use when link_status says not linked, or the session is broken, or the owner asks to relink or re-import history.
sync_now tool
Force a pull of new messages from WhatsApp right now and report how many arrived.
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 — 11 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 — 11 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 — 11 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 11 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 11 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 11 capabilities; 11 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 11 capabilities touch files; 10 more call code the scanner could not follow, where it may happen
- Tools that call the network1 of 11 capabilities call the network; 10 more call code the scanner could not follow, where it may happen
Where the code is: 11 handlers in 1 file at commit b49d494f7715
- 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 manifests2 manifests: local-export/package.json, package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: local-export/package.json: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies HIGH5 production packages with known advisories
- Known vulnerabilities in other dependencies1 package with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK version@modelcontextprotocol/sdk 1.32.2
- 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 11 capabilities; 11 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 (1 only in code no tool reaches)
- 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 (5 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
body-parsernpm 2.3.0 HIGH 1 advisory 1.20.92.4.0
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
zodnpm 4.4.3 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
hononpm 4.13.13 MEDIUM 5 advisories 4.13.16
- MEDIUMGHSA-4m76-xfj5-7975 CVE-2026-126357Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix
- MEDIUMGHSA-4h7h-rv7c-7m2v CVE-2026-126356Hono: `validator('form')` skips validation for `multipart/form-data` requests with extra parameters
- MEDIUMGHSA-h7mg-cq63-vhpq CVE-2026-126358Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator
- MEDIUMGHSA-46wx-v44x-9hh2 CVE-2026-126355Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)
- LOWGHSA-3gg2-335m-rxc6 CVE-2026-126359Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection
fast-urinpm 3.1.8 MEDIUM 4 advisories 2.4.83.1.94.2.3
- MEDIUMGHSA-w74x-v6f9-j3xg CVE-2026-110306fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme decoding
- MEDIUMGHSA-wjr9-j795-jxcr CVE-2026-110180fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization
- LOWGHSA-333x-w4r6-6crp CVE-2026-110725fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references
- LOWGHSA-xhq7-xmqj-769h CVE-2026-110095fast-uri vulnerable to improper path equivalence in relative reference normalization
@hono/node-servernpm 1.19.17 MEDIUM 2 advisories 1.19.182.1.32.1.6
- MEDIUMGHSA-rmxm-3fg6-px4f CVE-2026-118663@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
- MEDIUMGHSA-jpvv-r467-5p4w CVE-2026-126210@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
1 vulnerable package outside the server itself (used only for development, tests or examples, not shipped)
undicinpm 7.29.1 HIGH 8 advisories 6.29.17.30.18.12.2
- HIGHGHSA-qrxm-fqhp-jwvm CVE-2026-87018undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
- HIGHGHSA-4w7w-5xrc-9h26 CVE-2026-109829undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirects
- HIGHGHSA-xjj6-f33q-929c CVE-2026-109869undici vulnerable to Denial of Service via unhandled error on excessive content-encodings
- HIGHGHSA-2m5v-pch6-74hx CVE-2026-109383undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent
- MEDIUMGHSA-4qv8-2p9j-2685 CVE-2026-109924undici vulnerable to Denial of Service via unbounded memory in the EventSource parser
- MEDIUMGHSA-55wc-3pg8-jfw6 CVE-2026-87029undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
- MEDIUMGHSA-9fm3-97px-rjf6 CVE-2026-109932undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG buffering
- MEDIUMGHSA-f72v-6w45-q472 CVE-2026-109841undici vulnerable to Subresource Integrity bypass via non-lowercase algorithm tokens
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 | Streamable HTTP |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk 1.32.2 |
| 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-10 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2026-10-18 |
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.