verygoodplugins/whatsapp-mcp
WhatsApp MCP server - Connect Claude to WhatsApp for reading and sending messages
26c695714eacwhatsapp-mcp-server0.7.0 in whatsapp-mcp-server/pyproject.tomlPaths 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 9 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
- MEDIUM2 production dependencies have known vulnerabilities (worst: medium).
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.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
golang.org/x/crypto0.58.1-0.20261009181718-2f1f834330b2 or later,golang.org/x/net0.62.0 or later. - 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 17 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.
transcribe_audio, view_mediatranscribe_audio, view_mediaget_message_context, transcribe_audiotranscribe_audiotranscribe_audiotranscribe_audioWhere 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.
WHATSAPP_TRANSCRIPTION_API_KEY· transcribe_audio
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.
- files2 tools · transcribe_audio, view_media
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (17: 17 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
download_mediatool Download media from a WhatsApp message and get the local file path.
Download media from a WhatsApp message and get the local file path.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
Returns:
A dictionary containing success status, a status message, and the file path if successfulget_chattool Get WhatsApp chat metadata by JID.
Get WhatsApp chat metadata by JID.
Args:
chat_jid: The JID of the chat to retrieve
include_last_message: Whether to include the last message (default True)
Returns:
Chat dictionary — same shape as list_chats, including last_read_time and unread.get_contacttool Look up a WhatsApp contact by phone number, LID, or full JID.
Look up a WhatsApp contact by phone number, LID, or full JID.
Automatically detects the identifier type and queries appropriately.
Args:
identifier: Phone number, LID, or full JID. Examples:
- "12025551234" (phone number)
- "35047067385985" (LID - numeric)
- "[email protected]" (phone JID)
- "184125298348272@lid" (LID JID)
phone_number: Backward-compatible alias for `identifier`.
phone: Backward-compatible alias for `identifier` (matches README parameter name).
Returns:
Dictionary with jid, name, display_name, is_lid, and resolved statusget_contact_chatstool Get all WhatsApp chats involving the contact.
Get all WhatsApp chats involving the contact.
Args:
jid: The contact's JID to search for
limit: Maximum number of chats to return (default 20)
page: Page number for pagination (default 0)get_direct_chat_by_contacttool Get WhatsApp chat metadata by sender phone number.
Get WhatsApp chat metadata by sender phone number.
Args:
sender_phone_number: The phone number to search forget_last_interactiontool Get most recent WhatsApp message involving the contact.
Get most recent WhatsApp message involving the contact.
Args:
jid: The JID of the contact to search for
Returns:
Message dictionary with id, timestamp, sender, content, etc. or empty dict if not found.get_message_contexttool Get context around a specific WhatsApp message.Network
Get context around a specific WhatsApp message.
Args:
message_id: The ID of the message to get context for
before: Number of messages to include before the target message (default 5)
after: Number of messages to include after the target message (default 5)list_chatstool Get WhatsApp chats matching specified criteria.
Get WhatsApp chats matching specified criteria.
Args:
query: Search term to filter chats by name or JID
limit: Max chats to return (default 50, max 200)
page: Page number for pagination (default 0)
include_last_message: Include the last message in each chat (default True)
sort_by: "last_active" (default, most recent first) or "name" (alphabetical)
Returns:
Chat dictionaries with jid, name, is_group, last_message_time, last_message,
last_sender, last_is_from_me, last_read_time and unread. `last_read_time` is
how far the chat has been read on any device (null if never reported); `unread`
is true when the last message is inbound and newer than that marker, so chats
already read on the phone are not reported as unread. Numeric fallback names
are resolved from local contacts when possible, even while the bridge is offline.list_messagestool Get WhatsApp messages matching specified criteria with optional context.
Get WhatsApp messages matching specified criteria with optional context.
Each message includes sender_display showing "Name (phone)" for easy identification.
Args:
after: ISO-8601 date string (e.g., "2026-01-01" or "2026-01-01T09:00:00")
before: ISO-8601 date string (e.g., "2026-01-09" or "2026-01-09T18:00:00")
sender_phone_number: Phone number to filter by sender (e.g., "12025551234")
chat_jid: Chat JID to filter by (e.g., "[email protected]" or group JID)
query: Search term to filter messages by content
limit: Max messages to return (default 50, max 500)
page: Page number for pagination (default 0)
include_context: Include surrounding messages for context (default True)
context_before: Messages to include before each match (default 1)
context_after: Messages to include after each match (default 1)
sort_by: "newest" (default, most recent first) or "oldest" (chronological)mark_messages_readtool Mark selected WhatsApp messages as read and send read receipts.
Mark selected WhatsApp messages as read and send read receipts.
This is an explicit external side effect. All message IDs must belong to the
same chat and sender.
Args:
message_ids: IDs of the messages to mark as read
chat_jid: JID of the chat containing the messages
sender_jid: JID or bare phone number of the original sender; required for groups
timestamp: Optional RFC 3339 read timestamp; defaults to the current time
Returns:
A dictionary containing success status and a status messagesearch_contactstool Search WhatsApp contacts by name or phone number.
Search WhatsApp contacts by name or phone number.
Args:
query: Search term to match against contact names or phone numberssend_audio_messagetool Send any audio file as a WhatsApp audio message to the specified recipient. For group messages use the JID. If it errors due to ffmpeg not being installed, use
Send any audio file as a WhatsApp audio message to the specified recipient. For group messages use the JID. If it errors due to ffmpeg not being installed, use send_file instead.
Args:
recipient: The recipient - either a phone number with country code but no + or other symbols,
or a JID (e.g., "[email protected]" or a group JID like "[email protected]")
media_path: The absolute path to the audio file to send (will be converted to Opus .ogg if it's not a .ogg file)
Returns:
A dictionary containing success status and a status messagesend_filetool Send a file (image, video, document) via WhatsApp, optionally with a caption.
Send a file (image, video, document) via WhatsApp, optionally with a caption.
When `caption` is provided, the file and text arrive as a single
attachment-with-caption message (one bubble in the WA UI), instead of
needing a separate follow-up send_message call. For group chats use the JID.
Args:
recipient: Either a phone number with country code (no + or symbols),
or a JID (e.g., "[email protected]" or "[email protected]")
media_path: Absolute path to the media file (image, video, document)
caption: Optional text rendered with the file as a caption. Omit for a
bare attachment.
Returns:
A dictionary containing success status and a status messagesend_messagetool Send a WhatsApp message to a person or group. For group chats use the JID.
Send a WhatsApp message to a person or group. For group chats use the JID.
Args:
recipient: The recipient - either a phone number with country code but no + or other symbols,
or a JID (e.g., "[email protected]" or a group JID like "[email protected]")
message: The message text to send
quoted_message_id: ID of the message to reply to (optional). When set, the sent
message will appear as a quoted reply in WhatsApp.
quoted_sender_jid: Full JID of the author of the quoted message. Required for
group replies so WhatsApp renders the correct attribution.
quoted_content: Text content of the quoted message, used for the reply preview.
Only plain text is supported; media previews are not included.
mentions: Users to @-mention, as phone numbers with country code but no + (e.g.
["420601234567"]) or JIDs. For each entry the message text must contain
a matching "@<number>" token (e.g. "hi @420601234567"), otherwise the
mention won't render on recipients' devices. Only meaningful in groups.
Returns:
A dictionary containing success status and a status messagesend_reactiontool Send (or remove) a reaction to a WhatsApp message.
Send (or remove) a reaction to a WhatsApp message.
Args:
recipient: The chat JID the message belongs to (e.g., "[email protected]"
or a group JID like "[email protected]")
message_id: The ID of the message to react to
emoji: The reaction emoji (e.g., "👍"). Pass an empty string to remove the reaction.
from_me: Whether the original message was sent by the current user (default False)
sender_jid: JID of the original message sender — required for group messages when
from_me is False so the bridge can build the correct WhatsApp key
Returns:
A dictionary containing success status and a status messagetranscribe_audiotool Transcribe a WhatsApp voice note and return its text.ProcessesFilesNetworkCredentialsEnv varsSensitive pathsoutside text
Transcribe a WhatsApp voice note and return its text.
Runs whisper.cpp locally by default, or sends audio to the operator's
configured OpenAI-compatible endpoint. The transcript is also written into
the message's empty content field, so afterwards it is readable through list_messages by any
client — including one with no filesystem access — without transcribing
again.
Call this for a voice note whose content field is still empty. Requires
whisper.cpp, FFmpeg, and WHISPER_MODEL for the default provider; alternatively
configure WHATSAPP_TRANSCRIPTION_PROVIDER=openai_compatible, URL and MODEL.
Args:
message_id: The ID of the message containing the voice note
chat_jid: The JID of the chat containing the message
force: Transcribe again even when a transcript is already stored
Returns:
A dictionary with success status and the transcriptview_mediatool View the media of a WhatsApp message as an image.ProcessesFilesoutside text
View the media of a WhatsApp message as an image.
download_media only returns a local file path, which a client without
filesystem access cannot open. This returns the picture itself instead.
Videos return their first frame, which is enough to tell what was sent.
Both are downscaled so a single photo cannot flood the context. Voice notes
are not images — use transcribe_audio or read the transcript from the
message content with list_messages.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
max_dimension: Longest edge of the returned image in pixels (default 1024)
Returns:
Image content on success, otherwise a dictionary explaining why notText the model reads (17)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
search_contacts tool
Search WhatsApp contacts by name or phone number.
Args:
query: Search term to match against contact names or phone numbersget_contact tool
Look up a WhatsApp contact by phone number, LID, or full JID.
Automatically detects the identifier type and queries appropriately.
Args:
identifier: Phone number, LID, or full JID. Examples:
- "12025551234" (phone number)
- "35047067385985" (LID - numeric)
- "[email protected]" (phone JID)
- "184125298348272@lid" (LID JID)
phone_number: Backward-compatible alias for `identifier`.
phone: Backward-compatible alias for `identifier` (matches README parameter name).
Returns:
Dictionary with jid, name, display_name, is_lid, and resolved statuslist_messages tool
Get WhatsApp messages matching specified criteria with optional context.
Each message includes sender_display showing "Name (phone)" for easy identification.
Args:
after: ISO-8601 date string (e.g., "2026-01-01" or "2026-01-01T09:00:00")
before: ISO-8601 date string (e.g., "2026-01-09" or "2026-01-09T18:00:00")
sender_phone_number: Phone number to filter by sender (e.g., "12025551234")
chat_jid: Chat JID to filter by (e.g., "[email protected]" or group JID)
query: Search term to filter messages by content
limit: Max messages to return (default 50, max 500)
page: Page number for pagination (default 0)
include_context: Include surrounding messages for context (default True)
context_before: Messages to include before each match (default 1)
context_after: Messages to include after each match (default 1)
sort_by: "newest" (default, most recent first) or "oldest" (chronological)list_chats tool
Get WhatsApp chats matching specified criteria.
Args:
query: Search term to filter chats by name or JID
limit: Max chats to return (default 50, max 200)
page: Page number for pagination (default 0)
include_last_message: Include the last message in each chat (default True)
sort_by: "last_active" (default, most recent first) or "name" (alphabetical)
Returns:
Chat dictionaries with jid, name, is_group, last_message_time, last_message,
last_sender, last_is_from_me, last_read_time and unread. `last_read_time` is
how far the chat has been read on any device (null if never reported); `unread`
is true when the last message is inbound and newer than that marker, so chats
already read on the phone are not reported as unread. Numeric fallback names
are resolved from local contacts when possible, even while the bridge is offline.get_chat tool
Get WhatsApp chat metadata by JID.
Args:
chat_jid: The JID of the chat to retrieve
include_last_message: Whether to include the last message (default True)
Returns:
Chat dictionary — same shape as list_chats, including last_read_time and unread.get_direct_chat_by_contact tool
Get WhatsApp chat metadata by sender phone number.
Args:
sender_phone_number: The phone number to search forget_contact_chats tool
Get all WhatsApp chats involving the contact.
Args:
jid: The contact's JID to search for
limit: Maximum number of chats to return (default 20)
page: Page number for pagination (default 0)get_last_interaction tool
Get most recent WhatsApp message involving the contact.
Args:
jid: The JID of the contact to search for
Returns:
Message dictionary with id, timestamp, sender, content, etc. or empty dict if not found.get_message_context tool
Get context around a specific WhatsApp message.
Args:
message_id: The ID of the message to get context for
before: Number of messages to include before the target message (default 5)
after: Number of messages to include after the target message (default 5)send_message tool
Send a WhatsApp message to a person or group. For group chats use the JID.
Args:
recipient: The recipient - either a phone number with country code but no + or other symbols,
or a JID (e.g., "[email protected]" or a group JID like "[email protected]")
message: The message text to send
quoted_message_id: ID of the message to reply to (optional). When set, the sent
message will appear as a quoted reply in WhatsApp.
quoted_sender_jid: Full JID of the author of the quoted message. Required for
group replies so WhatsApp renders the correct attribution.
quoted_content: Text content of the quoted message, used for the reply preview.
Only plain text is supported; media previews are not included.
mentions: Users to @-mention, as phone numbers with country code but no + (e.g.
["420601234567"]) or JIDs. For each entry the message text must contain
a matching "@<number>" token (e.g. "hi @420601234567"), otherwise the
mention won't render on recipients' devices. Only meaningful in groups.
Returns:
A dictionary containing success status and a status messagesend_reaction tool
Send (or remove) a reaction to a WhatsApp message.
Args:
recipient: The chat JID the message belongs to (e.g., "[email protected]"
or a group JID like "[email protected]")
message_id: The ID of the message to react to
emoji: The reaction emoji (e.g., "👍"). Pass an empty string to remove the reaction.
from_me: Whether the original message was sent by the current user (default False)
sender_jid: JID of the original message sender — required for group messages when
from_me is False so the bridge can build the correct WhatsApp key
Returns:
A dictionary containing success status and a status messagemark_messages_read tool
Mark selected WhatsApp messages as read and send read receipts.
This is an explicit external side effect. All message IDs must belong to the
same chat and sender.
Args:
message_ids: IDs of the messages to mark as read
chat_jid: JID of the chat containing the messages
sender_jid: JID or bare phone number of the original sender; required for groups
timestamp: Optional RFC 3339 read timestamp; defaults to the current time
Returns:
A dictionary containing success status and a status messagesend_file tool
Send a file (image, video, document) via WhatsApp, optionally with a caption.
When `caption` is provided, the file and text arrive as a single
attachment-with-caption message (one bubble in the WA UI), instead of
needing a separate follow-up send_message call. For group chats use the JID.
Args:
recipient: Either a phone number with country code (no + or symbols),
or a JID (e.g., "[email protected]" or "[email protected]")
media_path: Absolute path to the media file (image, video, document)
caption: Optional text rendered with the file as a caption. Omit for a
bare attachment.
Returns:
A dictionary containing success status and a status messagesend_audio_message tool
Send any audio file as a WhatsApp audio message to the specified recipient. For group messages use the JID. If it errors due to ffmpeg not being installed, use send_file instead.
Args:
recipient: The recipient - either a phone number with country code but no + or other symbols,
or a JID (e.g., "[email protected]" or a group JID like "[email protected]")
media_path: The absolute path to the audio file to send (will be converted to Opus .ogg if it's not a .ogg file)
Returns:
A dictionary containing success status and a status messagedownload_media tool
Download media from a WhatsApp message and get the local file path.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
Returns:
A dictionary containing success status, a status message, and the file path if successfulview_media tool
View the media of a WhatsApp message as an image.
download_media only returns a local file path, which a client without
filesystem access cannot open. This returns the picture itself instead.
Videos return their first frame, which is enough to tell what was sent.
Both are downscaled so a single photo cannot flood the context. Voice notes
are not images — use transcribe_audio or read the transcript from the
message content with list_messages.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
max_dimension: Longest edge of the returned image in pixels (default 1024)
Returns:
Image content on success, otherwise a dictionary explaining why nottranscribe_audio tool
Transcribe a WhatsApp voice note and return its text.
Runs whisper.cpp locally by default, or sends audio to the operator's
configured OpenAI-compatible endpoint. The transcript is also written into
the message's empty content field, so afterwards it is readable through list_messages by any
client — including one with no filesystem access — without transcribing
again.
Call this for a voice note whose content field is still empty. Requires
whisper.cpp, FFmpeg, and WHISPER_MODEL for the default provider; alternatively
configure WHATSAPP_TRANSCRIPTION_PROVIDER=openai_compatible, URL and MODEL.
Args:
message_id: The ID of the message containing the voice note
chat_jid: The JID of the chat containing the message
force: Transcribe again even when a transcript is already stored
Returns:
A dictionary with success status and the transcriptWhat 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 — 17 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 — 17 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 — 17 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 — 17 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 — 17 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processes2 of 17 capabilities start processes; 15 more call code the scanner could not follow, where it may happen
- Tools that touch files2 of 17 capabilities touch files; 15 more call code the scanner could not follow, where it may happen
- Tools that call the network2 of 17 capabilities call the network; 15 more call code the scanner could not follow, where it may happen
Where the code is: 17 handlers in 1 file at commit 26c695714eac
- 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: whatsapp-bridge/go.mod, whatsapp-mcp-server/pyproject.toml
- Lockfiles checked against OSV2 files resolved and checked against the OSV database; 1 not resolved: whatsapp-mcp-server/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies MEDIUM2 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionNo MCP SDK declared in a manifest
- 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 credentials1 of 17 capabilities read credentials; 16 more call code the scanner could not follow, where it may happen
- Environment variables1 capability reads environment variables (often API keys)
- 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 (2 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
golang.org/x/netGo v0.59.0 MEDIUM 7 advisories 0.60.00.62.0
- MEDIUMGO-2026-6603 BIT-golang-2026-78659 CVE-2026-78659HTTP/2 server memory exhaustion due to Trailer headers in net/http
- MEDIUMGO-2026-6611 BIT-golang-2026-78669 CVE-2026-78669Excessive CPU consumption from repeated initial window changes in net/http
- MEDIUMGO-2026-6610 BIT-golang-2026-78660 CVE-2026-78660HTTP/2 transport accepts malformed framing-related headers in net/http
- MEDIUMGO-2026-6617 BIT-golang-2026-97032 CVE-2026-97032HTTP/2 server crash due to HPACK encoder race in net/http
- MEDIUMGO-2026-6860 CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
- MEDIUMGO-2026-6866 CVE-2026-97045Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
- MEDIUMGO-2026-6612 BIT-golang-2026-78663 CVE-2026-78663Double flow control refund on HTTP/2 server streams in net/http
golang.org/x/cryptoGo v0.57.0 MEDIUM 1 advisory 2026-10-09
- MEDIUMGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
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 | stdio |
| Sign-in | not checked needs the live server |
| Servers in the code | 1 (whatsapp) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-14 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | NOASSERTION |
| Created | 2026-01-09 |
| Topics | anthropic claude mcp mcp-server messaging model-context-protocol whatsapp |
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.