wa-mcp-server

v0.2.1
wa-mcp-server Checked 4 days ago Published 12 days ago

MCP server (stdio and Streamable HTTP) that gives AI assistants access to a wa-mcp WhatsApp bridge

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_contacts Search contacts

Find a contact by name, alias or phone fragment in the local directory. Use list_chats to browse by recent activity. Works offline and in demo. Blank queries and unmatched names give an empty list. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
query *stringCase-insensitive name, alias or phone fragment, such as Rivera or 55501. A blank query yields no contacts.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
limitintegerMaximum matching contacts, up to 200. Zero or negative uses 20.

list_chats List recent chats

Browse conversations in the local archive, most recently active first. Use search_contacts for a person or get_chat for one conversation. Works offline and in demo. An empty archive or unmatched filter gives an empty page. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
limitintegerMaximum results per page, up to 200. Zero or negative uses the default.
offsetintegerNumber of rows to skip, starting at 0. Pass the previous next_offset to continue.
queryFilter by stored title or JID substring, such as Team or @g.us. Omit for all chats.

get_chat Inspect one chat

Inspect one conversation and its newest stored messages. Use list_messages for a longer history. Works offline and in demo. An unknown name fails, an absent JID gives found=false, and a chat without messages has an empty preview. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
chat *stringChat JID from list_chats (15550100001@s.whatsapp.net or 120363000000001@g.us), international phone number or chat name. Unknown names fail. Ambiguous names return candidates.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
recentintegerNumber of recent messages, up to 200. Zero or negative uses 5.

list_messages Search stored messages

Search stored messages and derived text without sending read receipts. Use get_message_context around a known message. Works offline and in demo. An unknown chat name fails. Empty history or unmatched filters give an empty page. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
afterExclusive lower bound in Unix seconds as text, YYYY-MM-DD (local midnight) or ISO 8601, such as 2026-11-01T09:00:00Z. Omit for no lower bound.
beforeExclusive upper bound in Unix seconds as text, YYYY-MM-DD (local midnight) or ISO 8601, such as 2026-12-01T00:00:00Z. Omit for no upper bound.
chatRestrict to one chat by JID (15550100001@s.whatsapp.net or 120363000000001@g.us), international number or name. Omit for all chats. Unknown names fail. Ambiguous names return candidates.
full_textbooleanReturn complete derived text. By default each transcript or extracted text is clipped at 2000 characters.
include_deletedbooleanInclude stored messages marked deleted for everyone. By default these rows are hidden.
kindsMessage kinds to include, such as ["voice","audio"]. Choices are text, image, video, ptv, audio, voice, document, sticker, location, contact, poll and unsupported. Omit for all.
limitintegerMaximum results per page, up to 200. Zero or negative uses the default.
offsetintegerNumber of rows to skip, starting at 0. Pass the previous next_offset to continue.
oldest_firstbooleanReturn chronological order when true. The default starts with the newest message.
queryCase-insensitive substring, such as invoice. Also searches stored derived text. Omit for all text.
senderAuthor JID from a message's from_jid or international phone number, such as +15550100001. Omit for all senders.

get_message_context Read messages around an ID

Read a stored message and the messages immediately before and after it. Use list_messages to find the anchor. Works offline and in demo without sending receipts. A missing chat or message fails. Either side of the exchange can be empty. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
chat *stringChat JID from list_chats (15550100001@s.whatsapp.net or 120363000000001@g.us), international phone number or chat name. Unknown names fail. Ambiguous names return candidates.
message_id *stringOpaque id from list_messages in this chat, such as ABC123. Copy it exactly.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
afterintegerNumber of later messages, clamped to 0 through 50. Use 0 for none.
beforeintegerNumber of earlier messages, clamped to 0 through 50. Use 0 for none.

download_media Download one attachment

Save the attachment from one message, reusing a verified local copy. Use download_chat_media for a batch. A missing message fails. New downloads need the bridge. Demo declines downloads. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
chat *stringChat JID from list_chats (15550100001@s.whatsapp.net or 120363000000001@g.us), international phone number or chat name. Unknown names fail. Ambiguous names return candidates.
message_id *stringOpaque id from list_messages in this chat, such as ABC123. Copy it exactly.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.

send_message Send a WhatsApp text message

Send a text message through the linked account or queue it during quiet hours. Use send_file for attachments. Sending defaults off and follows the configured human approval policy. Demo, unknown recipients and an offline bridge block delivery. Multipart failures identify any parts already sent. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
text *stringNonblank message body, up to 12000 characters including mention tags. Example: Meeting moved to 10.
to *stringRecipient JID (15550100001@s.whatsapp.net), international number, configured alias or exact address-book name. For groups use the JID, such as 120363000000001@g.us.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
confirmbooleanOnly for clients without elicitation when sending.allow_confirm_flag is enabled. Set true only after the user approves the exact recipient and content. Defaults to false.
mentionsGroup members to mention by JID or international phone number, such as ["+15550100001"]. Omit for no mentions.
reply_toMessage id to quote in the recipient chat, such as ABC123 from list_messages. Omit for a standalone message.

send_file Send a file attachment

Upload an allowed local file to a WhatsApp recipient or queue it during quiet hours. Use send_message for text alone. Sending defaults off and follows the approval policy. Missing files, unknown recipients, demo or an offline bridge block delivery. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
path *stringServer-local file in downloads_dir, exports_dir or sending.allowed_media_dirs, such as /exports/invoice.pdf.
to *stringRecipient JID (15550100001@s.whatsapp.net), international number, configured alias or exact address-book name. For groups use the JID, such as 120363000000001@g.us.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
captionOptional message caption, up to 4096 characters, such as November invoice. Omit to send the file alone.
confirmbooleanOnly for clients without elicitation when sending.allow_confirm_flag is enabled. Set true only after the user approves the exact recipient and content. Defaults to false.
mentionsGroup members to mention by JID or international phone number, such as ["+15550100001"]. Omit for no mentions.
reply_toMessage id to quote in the recipient chat, such as ABC123 from list_messages. Omit for a standalone message.

transcribe_chat_audio Transcribe voice notes and audio

Transcribe a chat's stored voice notes and audio files. Use get_media_text to read a saved transcript. Missing files need the bridge. Force replaces transcripts, and remote backends may charge. Empty scans find nothing. Demo previews cached transcripts. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
chat *stringChat JID from list_chats (15550100001@s.whatsapp.net or 120363000000001@g.us), international phone number or chat name. Unknown names fail. Ambiguous names return candidates.
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.
daysintegerLook back this many days, at least 1. Ignored when full_archive is true.
forcebooleanTranscribe even if a transcript exists, replacing stored text and potentially repeating charges.
full_archivebooleanScan all stored audio and voice messages in this chat instead of the recent day window.
limitintegerMaximum audio messages to transcribe this call, clamped to 1 through 200.
time_budget_secondsintegerTime budget in seconds, clamped to 1 through 600. Checked between operations.

get_bridge_status Check bridge status

Check whether this account is linked and ready to send. Use list_accounts to check several accounts. An offline bridge is reported alongside local diagnostics. Demo reports an unlinked archive with sending disabled. Omit account for the default. Unknown accounts fail.

ParameterTypeDescription
accountAccount name from list_accounts, such as work. Omit to use the default account. An unknown account name fails.

get_my_day Get the daily WhatsApp briefing

Find what needs your attention on a given day across configured accounts. Use list_tasks for tracked work across dates. Omit account to merge all accounts. Unknown accounts fail. Works offline and in demo. Empty days show no priorities. Refresh can prune expired tasks. Optional summaries may contact a paid provider.

ParameterTypeDescription
accountAccount name from list_accounts, such as work. Omit to merge all configured accounts, with account labels on multi-account results. Unknown account names fail. Accounts missing the chat or archive are…
chatRestrict to one chat by JID (15550100001@s.whatsapp.net or 120363000000001@g.us), international number or name. Omit for all chats. Unknown names fail. Ambiguous names return candidates.
dateLocal calendar date in YYYY-MM-DD form, such as 2026-11-23. Omit for today.
refreshbooleanRefresh the local task tracker if stale before collecting the briefing. False uses stored task state.
summarybooleanAlso request ai_summary from the configured AI provider using names, due hints and clipped context. Remote providers may charge. Default uses local rules.