FelixIsaac/whatsapp-mcp-extended
Actively maintained WhatsApp MCP — 26 tools, webhooks, anti-ban, Docker, self-healing. Drop-in for abandoned lharries/whatsapp-mcp.
be73e8c0f087whatsapp-mcp-server0.4.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 55 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
- 29 source files could be read only in part
- 1 of 71 tools, prompts and resources could not be followed through the code
Top risks in plain words
- MEDIUM3 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,next16.4.5 or later,postcss8.5.23 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 69 tools, 2 resources. 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.
resource_status, resource_sync_statusresource_status, resource_sync_statusresource_status, resource_sync_statusresource_status, resource_sync_statusNo tool was seen to: start other programs on the machine; read or write files.
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.
API_KEY· resource_status, resource_sync_statusWHATSAPP_API_KEY· resource_status, resource_sync_status
2 request addresses could not be settled from the code (built at run time).
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.
- web or API responses2 tools · resource_status, resource_sync_status
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 (71: 69 tools, 2 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
resource_statusresource Live bridge connection state — connected, needs_pairing, disconnected_for.NetworkCredentialsEnv varsSensitive pathsoutside text
Live bridge connection state — connected, needs_pairing, disconnected_for.
resource_sync_statusresource Bridge sync statistics — message/chat counts, DB size, last sync time.NetworkCredentialsEnv varsSensitive pathsoutside text
Bridge sync statistics — message/chat counts, DB size, last sync time.
account_admintool Get the list of blocked WhatsApp users.
Get the list of blocked WhatsApp users.
Returns:
A dictionary with users list and countaccount_admintool Block or unblock WhatsApp users. Use get_blocklist for read-only listing.
Block or unblock WhatsApp users. Use get_blocklist for read-only listing.
add_group_memberstool Add members to a WhatsApp group.
Add members to a WhatsApp group.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participants: Comma-separated list of participant JIDs to addblock_usertool Block a WhatsApp user.
Block a WhatsApp user.
Parameters:
- jid: The JID of the user to block (e.g., "[email protected]")contacts_writetool Manage custom contact nicknames. Use action='set', 'get', 'remove', or 'list'. This changes only local nickname metadata.
Manage custom contact nicknames. Use action='set', 'get', 'remove', or 'list'. This changes only local nickname metadata.
coretool 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 numbers
Returns:
List of contact dicts with jid, phone_number, name, first_name, full_name, push_name, business_name, nickname
Hints:
- Use returned jid with `list_messages` to filter messages by contact
- Use `get_contact_context` for detailed contact info, chats, or last interactioncoretool Get WhatsApp messages matching specified criteria.
Get WhatsApp messages matching specified criteria.
Args:
after: Optional ISO-8601 formatted string to only return messages after this date
before: Optional ISO-8601 formatted string to only return messages before this date
chat_jid: Optional chat JID to filter messages by chat
query: Optional search term to filter messages by content
limit: Maximum number of messages to return (default 20)
page: Page number for pagination (default 0)
include_context: Return surrounding messages inline for each result (default False)
context_before: Messages before each result to include (default 1, requires include_context=True)
context_after: Messages after each result to include (default 1, requires include_context=True)
Hints:
- If expected messages are missing, use `request_history` to sync older messages from phone
- Set include_context=True to get surrounding messages inline, saving a get_message_context round-trip
- Use `search_contacts` first to find a contact's JID for filteringcoretool Get WhatsApp chats matching specified criteria.
Get WhatsApp chats matching specified criteria.
Args:
query: Optional search term to filter chats by name or JID
limit: Maximum number of chats to return (default 20)
page: Page number for pagination (default 0)
include_last_message: Whether to include the last message in each chat (default True)
sort_by: Field to sort results by, either "last_active" or "name" (default "last_active")
Hints:
- Use returned jid with `list_messages` to get all messages in a specific chat
- Use `get_chat` for detailed metadata of a specific chat by JID
- For group chats (jid ends with @g.us), use `get_group_info` for participant listcoretool 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)coretool Get context around a specific WhatsApp message.
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)
Hints:
- Get message_id from `list_messages` results first
- Use for understanding conversation flow around a specific message
- Useful after finding a message via search to see full contextcoretool List all WhatsApp contacts with their information.
List all WhatsApp contacts with their information.
Args:
limit: Maximum number of contacts to return (default 100)
Returns:
List of contact dicts with jid, phone_number, name, first_name, full_name, push_name, business_name, nicknamecoretool Get contact details plus optional related chats and last interaction. Use after search_contacts when you need more context for a person.
Get contact details plus optional related chats and last interaction. Use after search_contacts when you need more context for a person.
coretool Find the direct message chat for a phone number.
Find the direct message chat for a phone number.
Args:
phone_number: Phone number to look up — digits only, partial match supported (e.g. "60123456789")
Returns:
Chat dict with jid, name, last_message_time, last_message — or null if no DM found
Hints:
- Faster than get_contact_context when you only need the chat JID
- Returns only DM chats (not groups)
- Use returned jid with list_messages to read the conversationcoretool Get information about a WhatsApp group.
Get information about a WhatsApp group.
Args:
group_jid: The JID of the group (e.g., "[email protected]")
Returns:
A dictionary containing success, group_jid, name, topic, participant_count, participantscoretool Get the profile picture URL for a user or group.
Get the profile picture URL for a user or group.
Args:
jid: The JID of the user or group
preview: If True, get thumbnail instead of full resolution (default: False)
Returns:
A dictionary with url, id, type, direct_path (or has_picture=False if none)create_grouptool Create a new WhatsApp group.
Create a new WhatsApp group.
Parameters:
- name: The name for the new group
- participants: Comma-separated list of participant JIDs (e.g., "[email protected],[email protected]")create_newslettertool Create a new WhatsApp newsletter/channel.
Create a new WhatsApp newsletter/channel.
Parameters:
- name: The name for the newsletter
- description: Optional description for the newslettercreate_polltool Create and send a poll to a WhatsApp chat.
Create and send a poll to a WhatsApp chat.
Parameters:
- chat_jid: The JID of the chat to send the poll to
- question: The poll question
- options: Comma-separated list of poll options (2-12 options required)
- multi_select: If True, allows multiple selections (default: False)delete_messagetool Delete/revoke a WhatsApp message.
Delete/revoke a WhatsApp message.
Parameters:
- chat_jid: The JID of the chat containing the message
- message_id: The ID of the message to delete
- sender_jid: Optional sender JID for admin revoking others' messages in groupsdemote_admintool Demote a group admin to regular member.
Demote a group admin to regular member.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participant: The JID of the admin to demotedownload_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.
Parameters:
- message_id: The ID of the message containing the media
- chat_jid: The JID of the chat containing the messageedit_messagetool Edit a previously sent WhatsApp message.
Edit a previously sent WhatsApp message.
Parameters:
- chat_jid: The JID of the chat containing the message
- message_id: The ID of the message to edit
- new_content: The new message contentfollow_newslettertool Follow (join) a WhatsApp newsletter/channel.
Follow (join) a WhatsApp newsletter/channel.
Parameters:
- jid: The JID of the newsletter to followfunctool
No description.
get_blocklisttool Get the list of blocked users.
Get the list of blocked users.
Parameters:
None requiredget_chattool Get WhatsApp chat metadata by JID.
Get WhatsApp chat metadata by JID.
Parameters:
- chat_jid: The JID of the chat to retrieve
- include_last_message: Whether to include the last message (default: true)get_contact_chatstool Get all WhatsApp chats involving the contact.
Get all WhatsApp chats involving the contact.
Parameters:
- 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_contact_detailstool Get detailed contact information.
Get detailed contact information.
Parameters:
- identifier: Either a JID or phone number of the contact
Returns:
Contact dict with jid, phone_number, name, first_name, full_name, push_name, business_name, nicknameget_contact_nicknametool Get a contact's custom nickname.
Get a contact's custom nickname.
Parameters:
- jid: WhatsApp JID of the contactget_direct_chat_by_contacttool Get WhatsApp chat metadata by sender phone number.
Get WhatsApp chat metadata by sender phone number.
Parameters:
- sender_phone_number: The phone number to search forget_group_infotool Get information about a WhatsApp group.
Get information about a WhatsApp group.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")get_last_interactiontool Get most recent WhatsApp message involving the contact.
Get most recent WhatsApp message involving the contact.
Parameters:
- jid: The JID of the contact to search forget_message_contexttool Get context around a specific WhatsApp message.
Get context around a specific WhatsApp message.
Parameters:
- 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)get_profile_picturetool Get the profile picture URL for a user or group.
Get the profile picture URL for a user or group.
Parameters:
- jid: The JID of the user or group
- preview: If True, get thumbnail instead of full resolution (default: False)groupstool Manage WhatsApp groups with one composable tool. Use action='create', 'add_members', 'remove_members', 'promote_admin', 'demote_admin', 'leave', or 'update'. Re
Manage WhatsApp groups with one composable tool. Use action='create', 'add_members', 'remove_members', 'promote_admin', 'demote_admin', 'leave', or 'update'. Requires group admin rights for most actions.
historytool Request older messages for a chat (on-demand history sync).
Request older messages for a chat (on-demand history sync).
This requests WhatsApp to sync older messages for a specific chat.
The messages will appear in the database after the sync completes.
Note: Only works if the phone has older messages available.
Args:
chat_jid: The JID of the chat to request history for
oldest_msg_id: The ID of the oldest message currently in the chat
oldest_msg_timestamp: Unix timestamp in milliseconds of the oldest message
oldest_msg_from_me: Whether the oldest message was sent by you (default: False)
count: Number of messages to request (max 50, default: 50)
Returns:
A dictionary containing success status and message
Hints:
- Use `list_messages` first to get the oldest_msg_id and oldest_msg_timestamp
- After requesting, wait a few seconds then use `list_messages` to see synced messages
- Use when `list_messages` returns fewer messages than expectedleave_grouptool Leave a WhatsApp group.
Leave a WhatsApp group.
Parameters:
- group_jid: The JID of the group to leave (e.g., "[email protected]")list_all_contactstool Get all contacts with their detailed information.
Get all contacts with their detailed information.
Parameters:
- limit: Maximum number of contacts to return
Returns:
JSON list of contact dictslist_chatstool Get WhatsApp chats matching specified criteria.
Get WhatsApp chats matching specified criteria.
Parameters:
- query: Search term to filter chats by name or JID (optional, leave empty if not needed)
- limit: Maximum number of chats to return (default: 20)
- page: Page number for pagination (default: 0)
- include_last_message: Whether to include the last message in each chat (default: true)
- sort_by: Field to sort results by, either "last_active" or "name" (default: "last_active")list_contact_nicknamestool List all custom contact nicknames with timestamps.
List all custom contact nicknames with timestamps.
Parameters:
None requiredlist_messagestool Get WhatsApp messages matching specified criteria with optional context.
Get WhatsApp messages matching specified criteria with optional context.
Parameters:
- after: ISO-8601 formatted date string to only return messages after this date (optional, leave empty if not needed)
- before: ISO-8601 formatted date string to only return messages before this date (optional, leave empty if not needed)
- sender_phone_number: Phone number to filter messages by sender (optional, leave empty if not needed)
- chat_jid: Chat JID to filter messages by chat (optional, leave empty if not needed)
- query: Search term to filter messages by content (optional, leave empty if not needed)
- limit: Maximum number of messages to return (default: 20)
- page: Page number for pagination (default: 0)
- include_context: Whether to include messages before and after matches (default: true)
- context_before: Number of messages to include before each match (default: 1)
- context_after: Number of messages to include after each match (default: 1)mark_readtool Mark WhatsApp messages as read (sends blue ticks).
Mark WhatsApp messages as read (sends blue ticks).
Parameters:
- chat_jid: The JID of the chat containing the messages
- message_ids: Comma-separated list of message IDs to mark as read
- sender_jid: Optional sender JID (required for group chats)mediatool Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Provide the file either as a path on the server, or inline as base64.
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 media file to send (image, video, document).
This is a path on the *server*, so it only works for files already there.
file_content_base64: The file's bytes, base64-encoded. Use this for a local file —
the server cannot read your filesystem. Requires filename.
filename: Name for the file, including extension (e.g. "screenshot.png"). Required
with file_content_base64; the extension determines how WhatsApp shows it.
Returns:
A dictionary containing success status and a status message
Hints:
- Exactly one of media_path or file_content_base64 is required
- To send an image you just created locally, base64-encode it and pass
file_content_base64 with a filenamemediatool 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 messagemediatool Download media from a WhatsApp message and get the local file path.
Download media from a WhatsApp message and get the local file path.
For image media (jpg/jpeg/png/gif/webp) the response also embeds the image
inline as an MCP image content block, so MCP clients without filesystem
access can still view and analyze it without a separate Read step.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
Returns:
For images: a list with [inline image, status dict].
For other media: a status dict with success, message, file_path.
Hints:
- Use `list_messages` first to find messages with media_type set (image, video, audio, document)
- The message_id and chat_jid come from `list_messages` results
- Check message has media_type before attempting downloadmessage_admintool Edit a previously sent WhatsApp message.
Edit a previously sent WhatsApp message.
Args:
chat_jid: The JID of the chat containing the message
message_id: The ID of the message to edit
new_content: The new message content
Returns:
A dictionary containing success status, chat_jid, message_id, and new_contentmessage_admintool Delete/revoke a WhatsApp message.
Delete/revoke a WhatsApp message.
Args:
chat_jid: The JID of the chat containing the message
message_id: The ID of the message to delete
sender_jid: Optional sender JID for admin revoking others' messages in groups
Returns:
A dictionary containing success status, chat_jid, and message_idmessage_admintool Mark WhatsApp messages as read (sends blue ticks).
Mark WhatsApp messages as read (sends blue ticks).
Args:
chat_jid: The JID of the chat containing the messages
message_ids: List of message IDs to mark as read
sender_jid: Optional sender JID (required for group chats)
receipt_type: "read" (default) or "played" for voice messages that were listened to.
"played" turns the sender's microphone icon blue and also sends the read receipt.
Returns:
A dictionary containing success status, chat_jid, message_ids, and countnewslettertool Follow, unfollow, or create WhatsApp newsletters/channels.
Follow, unfollow, or create WhatsApp newsletters/channels.
presencetool Set your own presence status (available/unavailable).
Set your own presence status (available/unavailable).
Args:
presence: Either "available" or "unavailable"
Returns:
A dictionary containing success status and presencepresencetool Subscribe to presence updates for a contact.
Subscribe to presence updates for a contact.
After subscribing, you'll receive presence events for this contact.
Note: Presence events arrive asynchronously via event handlers.
Args:
jid: The JID of the contact to subscribe to (e.g., "[email protected]")
Returns:
A dictionary containing success statuspromote_to_admintool Promote a group member to admin.
Promote a group member to admin.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participant: The JID of the participant to promoteremove_contact_nicknametool Remove a contact's custom nickname.
Remove a contact's custom nickname.
Parameters:
- jid: WhatsApp JID of the contactremove_group_memberstool Remove members from a WhatsApp group.
Remove members from a WhatsApp group.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participants: Comma-separated list of participant JIDs to removerequest_historytool Request older messages for a chat (on-demand history sync).
Request older messages for a chat (on-demand history sync).
This requests WhatsApp to sync older messages for a specific chat.
The messages will appear in the database after the sync completes.
Note: Only works if the phone has older messages available.
Parameters:
- chat_jid: The JID of the chat to request history for
- oldest_msg_id: The ID of the oldest message currently in the chat
- oldest_msg_timestamp: Unix timestamp in milliseconds of the oldest message
- oldest_msg_from_me: Whether the oldest message was sent by you (default: False)
- count: Number of messages to request (max 50, default: 50)search_contactstool Search WhatsApp contacts by name or phone number.
Search WhatsApp contacts by name or phone number.
Parameters:
- query: Search term to match against contact names or phone numbers
Returns:
JSON list of contact dicts with jid, phone_number, name, first_name, full_name, push_name, business_name, nicknamesendtool 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
mentioned_jids: Optional list of JIDs to mention in the message (e.g. ["[email protected]"])
quoted_message_id: Optional ID of a message to quote or reply to
Returns:
A dictionary containing success status and a status messagesendtool Send an emoji reaction to a WhatsApp message.
Send an emoji reaction to a WhatsApp message.
Args:
chat_jid: The JID of the chat containing the message
message_id: The ID of the message to react to
emoji: The emoji to react with (empty string to remove reaction)
Returns:
A dictionary containing success status, chat_jid, message_id, emoji, and actionsendtool Create and send a poll to a WhatsApp chat.
Create and send a poll to a WhatsApp chat.
Args:
chat_jid: The JID of the chat to send the poll to
question: The poll question
options: List of poll options (2-12 options required)
multi_select: If True, allows multiple selections; if False, single selection only (default: False)
Returns:
A dictionary containing success, message_id, timestamp, chat_jid, question, optionssend_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.
Parameters:
- 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)send_filetool Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Parameters:
- 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 media file to send (image, video, document)send_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.
Parameters:
- 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 sendsend_reactiontool Send an emoji reaction to a WhatsApp message.
Send an emoji reaction to a WhatsApp message.
Parameters:
- chat_jid: The JID of the chat containing the message
- message_id: The ID of the message to react to
- emoji: The emoji to react with (empty string to remove reaction)set_contact_nicknametool Set a custom nickname for a contact.
Set a custom nickname for a contact.
Parameters:
- jid: WhatsApp JID of the contact
- nickname: Custom nickname to set for the contactset_presencetool Set your own presence status (available/unavailable).
Set your own presence status (available/unavailable).
Parameters:
- presence: Either "available" or "unavailable"subscribe_presencetool Subscribe to presence updates for a contact.
Subscribe to presence updates for a contact.
Parameters:
- jid: The JID of the contact to subscribe to (e.g., "[email protected]")unblock_usertool Unblock a WhatsApp user.
Unblock a WhatsApp user.
Parameters:
- jid: The JID of the user to unblock (e.g., "[email protected]")unfollow_newslettertool Unfollow a WhatsApp newsletter/channel.
Unfollow a WhatsApp newsletter/channel.
Parameters:
- jid: The JID of the newsletter to unfollowupdate_grouptool Update group name and/or topic (description).
Update group name and/or topic (description).
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- name: New group name (optional, leave empty to not change)
- topic: New group topic/description (optional, leave empty to not change)Text the model reads (71)
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.
Parameters:
- query: Search term to match against contact names or phone numbers
Returns:
JSON list of contact dicts with jid, phone_number, name, first_name, full_name, push_name, business_name, nicknamelist_messages tool
Get WhatsApp messages matching specified criteria with optional context.
Parameters:
- after: ISO-8601 formatted date string to only return messages after this date (optional, leave empty if not needed)
- before: ISO-8601 formatted date string to only return messages before this date (optional, leave empty if not needed)
- sender_phone_number: Phone number to filter messages by sender (optional, leave empty if not needed)
- chat_jid: Chat JID to filter messages by chat (optional, leave empty if not needed)
- query: Search term to filter messages by content (optional, leave empty if not needed)
- limit: Maximum number of messages to return (default: 20)
- page: Page number for pagination (default: 0)
- include_context: Whether to include messages before and after matches (default: true)
- context_before: Number of messages to include before each match (default: 1)
- context_after: Number of messages to include after each match (default: 1)list_chats tool
Get WhatsApp chats matching specified criteria.
Parameters:
- query: Search term to filter chats by name or JID (optional, leave empty if not needed)
- limit: Maximum number of chats to return (default: 20)
- page: Page number for pagination (default: 0)
- include_last_message: Whether to include the last message in each chat (default: true)
- sort_by: Field to sort results by, either "last_active" or "name" (default: "last_active")get_chat tool
Get WhatsApp chat metadata by JID.
Parameters:
- chat_jid: The JID of the chat to retrieve
- include_last_message: Whether to include the last message (default: true)get_direct_chat_by_contact tool
Get WhatsApp chat metadata by sender phone number.
Parameters:
- sender_phone_number: The phone number to search forget_contact_chats tool
Get all WhatsApp chats involving the contact.
Parameters:
- 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.
Parameters:
- jid: The JID of the contact to search forget_message_context tool
Get context around a specific WhatsApp message.
Parameters:
- 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.
Parameters:
- 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 sendsend_file tool
Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Parameters:
- 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 media file to send (image, video, document)send_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.
Parameters:
- 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)download_media tool
Download media from a WhatsApp message and get the local file path.
Parameters:
- message_id: The ID of the message containing the media
- chat_jid: The JID of the chat containing the messageget_contact_details tool
Get detailed contact information.
Parameters:
- identifier: Either a JID or phone number of the contact
Returns:
Contact dict with jid, phone_number, name, first_name, full_name, push_name, business_name, nicknamelist_all_contacts tool
Get all contacts with their detailed information.
Parameters:
- limit: Maximum number of contacts to return
Returns:
JSON list of contact dictsset_contact_nickname tool
Set a custom nickname for a contact.
Parameters:
- jid: WhatsApp JID of the contact
- nickname: Custom nickname to set for the contactget_contact_nickname tool
Get a contact's custom nickname.
Parameters:
- jid: WhatsApp JID of the contactremove_contact_nickname tool
Remove a contact's custom nickname.
Parameters:
- jid: WhatsApp JID of the contactlist_contact_nicknames tool
List all custom contact nicknames with timestamps.
Parameters:
None requiredsend_reaction tool
Send an emoji reaction to a WhatsApp message.
Parameters:
- chat_jid: The JID of the chat containing the message
- message_id: The ID of the message to react to
- emoji: The emoji to react with (empty string to remove reaction)edit_message tool
Edit a previously sent WhatsApp message.
Parameters:
- chat_jid: The JID of the chat containing the message
- message_id: The ID of the message to edit
- new_content: The new message contentdelete_message tool
Delete/revoke a WhatsApp message.
Parameters:
- chat_jid: The JID of the chat containing the message
- message_id: The ID of the message to delete
- sender_jid: Optional sender JID for admin revoking others' messages in groupsget_group_info tool
Get information about a WhatsApp group.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")mark_read tool
Mark WhatsApp messages as read (sends blue ticks).
Parameters:
- chat_jid: The JID of the chat containing the messages
- message_ids: Comma-separated list of message IDs to mark as read
- sender_jid: Optional sender JID (required for group chats)create_group tool
Create a new WhatsApp group.
Parameters:
- name: The name for the new group
- participants: Comma-separated list of participant JIDs (e.g., "[email protected],[email protected]")add_group_members tool
Add members to a WhatsApp group.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participants: Comma-separated list of participant JIDs to addremove_group_members tool
Remove members from a WhatsApp group.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participants: Comma-separated list of participant JIDs to removepromote_to_admin tool
Promote a group member to admin.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participant: The JID of the participant to promotedemote_admin tool
Demote a group admin to regular member.
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- participant: The JID of the admin to demoteleave_group tool
Leave a WhatsApp group.
Parameters:
- group_jid: The JID of the group to leave (e.g., "[email protected]")update_group tool
Update group name and/or topic (description).
Parameters:
- group_jid: The JID of the group (e.g., "[email protected]")
- name: New group name (optional, leave empty to not change)
- topic: New group topic/description (optional, leave empty to not change)create_poll tool
Create and send a poll to a WhatsApp chat.
Parameters:
- chat_jid: The JID of the chat to send the poll to
- question: The poll question
- options: Comma-separated list of poll options (2-12 options required)
- multi_select: If True, allows multiple selections (default: False)request_history tool
Request older messages for a chat (on-demand history sync).
This requests WhatsApp to sync older messages for a specific chat.
The messages will appear in the database after the sync completes.
Note: Only works if the phone has older messages available.
Parameters:
- chat_jid: The JID of the chat to request history for
- oldest_msg_id: The ID of the oldest message currently in the chat
- oldest_msg_timestamp: Unix timestamp in milliseconds of the oldest message
- oldest_msg_from_me: Whether the oldest message was sent by you (default: False)
- count: Number of messages to request (max 50, default: 50)set_presence tool
Set your own presence status (available/unavailable).
Parameters:
- presence: Either "available" or "unavailable"subscribe_presence tool
Subscribe to presence updates for a contact.
Parameters:
- jid: The JID of the contact to subscribe to (e.g., "[email protected]")get_profile_picture tool
Get the profile picture URL for a user or group.
Parameters:
- jid: The JID of the user or group
- preview: If True, get thumbnail instead of full resolution (default: False)get_blocklist tool
Get the list of blocked users.
Parameters:
None requiredblock_user tool
Block a WhatsApp user.
Parameters:
- jid: The JID of the user to block (e.g., "[email protected]")unblock_user tool
Unblock a WhatsApp user.
Parameters:
- jid: The JID of the user to unblock (e.g., "[email protected]")follow_newsletter tool
Follow (join) a WhatsApp newsletter/channel.
Parameters:
- jid: The JID of the newsletter to followunfollow_newsletter tool
Unfollow a WhatsApp newsletter/channel.
Parameters:
- jid: The JID of the newsletter to unfollowcreate_newsletter tool
Create a new WhatsApp newsletter/channel.
Parameters:
- name: The name for the newsletter
- description: Optional description for the newsletterfunc tool
core tool
Search WhatsApp contacts by name or phone number.
Args:
query: Search term to match against contact names or phone numbers
Returns:
List of contact dicts with jid, phone_number, name, first_name, full_name, push_name, business_name, nickname
Hints:
- Use returned jid with `list_messages` to filter messages by contact
- Use `get_contact_context` for detailed contact info, chats, or last interactioncore tool
Get WhatsApp messages matching specified criteria.
Args:
after: Optional ISO-8601 formatted string to only return messages after this date
before: Optional ISO-8601 formatted string to only return messages before this date
chat_jid: Optional chat JID to filter messages by chat
query: Optional search term to filter messages by content
limit: Maximum number of messages to return (default 20)
page: Page number for pagination (default 0)
include_context: Return surrounding messages inline for each result (default False)
context_before: Messages before each result to include (default 1, requires include_context=True)
context_after: Messages after each result to include (default 1, requires include_context=True)
Hints:
- If expected messages are missing, use `request_history` to sync older messages from phone
- Set include_context=True to get surrounding messages inline, saving a get_message_context round-trip
- Use `search_contacts` first to find a contact's JID for filteringcore tool
Get WhatsApp chats matching specified criteria.
Args:
query: Optional search term to filter chats by name or JID
limit: Maximum number of chats to return (default 20)
page: Page number for pagination (default 0)
include_last_message: Whether to include the last message in each chat (default True)
sort_by: Field to sort results by, either "last_active" or "name" (default "last_active")
Hints:
- Use returned jid with `list_messages` to get all messages in a specific chat
- Use `get_chat` for detailed metadata of a specific chat by JID
- For group chats (jid ends with @g.us), use `get_group_info` for participant listcore 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)core 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)
Hints:
- Get message_id from `list_messages` results first
- Use for understanding conversation flow around a specific message
- Useful after finding a message via search to see full contextsend 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
mentioned_jids: Optional list of JIDs to mention in the message (e.g. ["[email protected]"])
quoted_message_id: Optional ID of a message to quote or reply to
Returns:
A dictionary containing success status and a status messagemedia tool
Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Provide the file either as a path on the server, or inline as base64.
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 media file to send (image, video, document).
This is a path on the *server*, so it only works for files already there.
file_content_base64: The file's bytes, base64-encoded. Use this for a local file —
the server cannot read your filesystem. Requires filename.
filename: Name for the file, including extension (e.g. "screenshot.png"). Required
with file_content_base64; the extension determines how WhatsApp shows it.
Returns:
A dictionary containing success status and a status message
Hints:
- Exactly one of media_path or file_content_base64 is required
- To send an image you just created locally, base64-encode it and pass
file_content_base64 with a filenamemedia 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 messagemedia tool
Download media from a WhatsApp message and get the local file path.
For image media (jpg/jpeg/png/gif/webp) the response also embeds the image
inline as an MCP image content block, so MCP clients without filesystem
access can still view and analyze it without a separate Read step.
Args:
message_id: The ID of the message containing the media
chat_jid: The JID of the chat containing the message
Returns:
For images: a list with [inline image, status dict].
For other media: a status dict with success, message, file_path.
Hints:
- Use `list_messages` first to find messages with media_type set (image, video, audio, document)
- The message_id and chat_jid come from `list_messages` results
- Check message has media_type before attempting downloadcore tool
List all WhatsApp contacts with their information.
Args:
limit: Maximum number of contacts to return (default 100)
Returns:
List of contact dicts with jid, phone_number, name, first_name, full_name, push_name, business_name, nicknamecore tool
Get contact details plus optional related chats and last interaction. Use after search_contacts when you need more context for a person.
core tool
Find the direct message chat for a phone number.
Args:
phone_number: Phone number to look up — digits only, partial match supported (e.g. "60123456789")
Returns:
Chat dict with jid, name, last_message_time, last_message — or null if no DM found
Hints:
- Faster than get_contact_context when you only need the chat JID
- Returns only DM chats (not groups)
- Use returned jid with list_messages to read the conversationcontacts_write tool
Manage custom contact nicknames. Use action='set', 'get', 'remove', or 'list'. This changes only local nickname metadata.
send tool
Send an emoji reaction to a WhatsApp message.
Args:
chat_jid: The JID of the chat containing the message
message_id: The ID of the message to react to
emoji: The emoji to react with (empty string to remove reaction)
Returns:
A dictionary containing success status, chat_jid, message_id, emoji, and actionmessage_admin tool
Edit a previously sent WhatsApp message.
Args:
chat_jid: The JID of the chat containing the message
message_id: The ID of the message to edit
new_content: The new message content
Returns:
A dictionary containing success status, chat_jid, message_id, and new_contentmessage_admin tool
Delete/revoke a WhatsApp message.
Args:
chat_jid: The JID of the chat containing the message
message_id: The ID of the message to delete
sender_jid: Optional sender JID for admin revoking others' messages in groups
Returns:
A dictionary containing success status, chat_jid, and message_idcore tool
Get information about a WhatsApp group.
Args:
group_jid: The JID of the group (e.g., "[email protected]")
Returns:
A dictionary containing success, group_jid, name, topic, participant_count, participantsmessage_admin tool
Mark WhatsApp messages as read (sends blue ticks).
Args:
chat_jid: The JID of the chat containing the messages
message_ids: List of message IDs to mark as read
sender_jid: Optional sender JID (required for group chats)
receipt_type: "read" (default) or "played" for voice messages that were listened to.
"played" turns the sender's microphone icon blue and also sends the read receipt.
Returns:
A dictionary containing success status, chat_jid, message_ids, and countgroups tool
Manage WhatsApp groups with one composable tool. Use action='create', 'add_members', 'remove_members', 'promote_admin', 'demote_admin', 'leave', or 'update'. Requires group admin rights for most actions.
send tool
Create and send a poll to a WhatsApp chat.
Args:
chat_jid: The JID of the chat to send the poll to
question: The poll question
options: List of poll options (2-12 options required)
multi_select: If True, allows multiple selections; if False, single selection only (default: False)
Returns:
A dictionary containing success, message_id, timestamp, chat_jid, question, optionshistory tool
Request older messages for a chat (on-demand history sync).
This requests WhatsApp to sync older messages for a specific chat.
The messages will appear in the database after the sync completes.
Note: Only works if the phone has older messages available.
Args:
chat_jid: The JID of the chat to request history for
oldest_msg_id: The ID of the oldest message currently in the chat
oldest_msg_timestamp: Unix timestamp in milliseconds of the oldest message
oldest_msg_from_me: Whether the oldest message was sent by you (default: False)
count: Number of messages to request (max 50, default: 50)
Returns:
A dictionary containing success status and message
Hints:
- Use `list_messages` first to get the oldest_msg_id and oldest_msg_timestamp
- After requesting, wait a few seconds then use `list_messages` to see synced messages
- Use when `list_messages` returns fewer messages than expectedpresence tool
Set your own presence status (available/unavailable).
Args:
presence: Either "available" or "unavailable"
Returns:
A dictionary containing success status and presencepresence tool
Subscribe to presence updates for a contact.
After subscribing, you'll receive presence events for this contact.
Note: Presence events arrive asynchronously via event handlers.
Args:
jid: The JID of the contact to subscribe to (e.g., "[email protected]")
Returns:
A dictionary containing success statuscore tool
Get the profile picture URL for a user or group.
Args:
jid: The JID of the user or group
preview: If True, get thumbnail instead of full resolution (default: False)
Returns:
A dictionary with url, id, type, direct_path (or has_picture=False if none)account_admin tool
Get the list of blocked WhatsApp users.
Returns:
A dictionary with users list and countaccount_admin tool
Block or unblock WhatsApp users. Use get_blocklist for read-only listing.
newsletter tool
Follow, unfollow, or create WhatsApp newsletters/channels.
resource_status resource
Live bridge connection state — connected, needs_pairing, disconnected_for.
resource_sync_status resource
Bridge sync statistics — message/chat counts, DB size, last sync time.
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 — 70 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 — 70 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 — 70 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 — 70 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 — 70 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 71 capabilities; 70 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 71 capabilities; 70 more call code the scanner could not follow, where it may happen
- Tools that call the network2 of 71 capabilities call the network; 68 more call code the scanner could not follow, where it may happen
Where the code is: 71 handlers in 2 files at commit be73e8c0f087
whatsapp-mcp-server/gradio-main.pysearch_contacts, list_messages, list_chats, get_chat, get_direct_chat_by_contact, get_contact_chats, get_last_interaction, get_message_context, send_message, send_file, send_audio_message, download_media +29whatsapp-mcp-server/main.pyfunc, core, core, core, core, core, send, media, media, media, core, core +18
- 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 manifests4 manifests: whatsapp-bridge/go.mod, whatsapp-mcp-server/pyproject.toml, whatsapp-mcp-server/requirements.txt, whatsapp-web-ui/package.json
- Lockfiles checked against OSV4 files resolved and checked against the OSV database; 2 not resolved: whatsapp-mcp-server/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; whatsapp-mcp-server/requirements.txt: 7 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependencies MEDIUM3 production packages with known advisories
- Known vulnerabilities in other dependencies2 packages with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK versionmcp >=1.23.0,<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 credentials2 of 71 capabilities read credentials; 68 more call code the scanner could not follow, where it may happen
- Environment variables2 capabilities read 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 (3 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
nextnpm 16.4.1 MEDIUM 7 advisories 15.5.2916.4.5
- MEDIUMGHSA-vc7v-qv4w-wrv8 CVE-2026-119351Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata
- MEDIUMGHSA-rhh4-g77r-r9qj CVE-2026-119349Next.js: Cross-user cache disclosure and poisoning in Next.js use cache with binary arguments
- MEDIUMGHSA-f3mh-rxg3-f5g2 CVE-2026-119346Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes
- MEDIUMGHSA-pc58-hwjq-p385 CVE-2026-119348Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responses
- MEDIUMGHSA-mfr8-8qww-v76h CVE-2026-119790Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()
- MEDIUMGHSA-vvgp-ww4w-46vf CVE-2026-119350Next.js: Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route params
- MEDIUMGHSA-7qx7-33qx-rqx2 CVE-2026-119347Next.js: SVG rejection bypass in the image optimization
golang.org/x/cryptoGo v0.58.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
postcssnpm 8.5.18 MEDIUM 1 advisory 8.5.23
- MEDIUMGHSA-fxqj-rqcc-2cmp CVE-2026-69153PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `from` is unset
2 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
zodnpm 4.6.5 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
minimatchnpm 10.2.6 MEDIUM 1 advisory 11.0.1
- MEDIUMGHSA-g3hv-75wg-m249 CVE-2026-118764minimatch has potential denial of service via globparts amplification
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, SSE, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=1.23.0,<2.0.0 |
| Servers in the code | 2 (whatsapp, whatsapp-extended) |
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-13 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | MIT |
| Created | 2025-12-24 |
| Topics | ai ai-agent ai-agents automation claude docker fastmcp mcp model-context-protocol webhook |
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.