WhatsApp Web MCP Server
MCP server for WhatsApp via whatsapp-web.js: send/receive messages, media, chats, groups, contacts
Versions
1.1.0latestTools 16
list_chats Get WhatsApp chats sorted by recent activity. Note: the
get_chat_by_id Get WhatsApp chat metadata by JID.
get_direct_chat_by_contact_number Get direct WhatsApp chat JID by contact phone number (less reliable, use get_chat_by_id if JID is known).
get_qr_code Get the latest WhatsApp QR code as an image for authentication
request_pairing_code Request a pairing code as a text-based alternative to scanning the QR code. The user enters the returned 8-character code on their phone under Settings > Linked Devices > Link a device >
check_auth_status Check if the WhatsApp client is authenticated and connected
logout Logout from WhatsApp and clear the current session
list_messages Get WhatsApp messages from a specific chat. This is the source of truth for actual message content: use it whenever the question is about what someone said/wrote. Entries include non-text events too (check the
get_message_by_id Get a specific WhatsApp message by its ID.
get_message_context Get recent messages around a specific message ID within its chat (context accuracy depends on fetch limit).
get_last_interaction Get the most recent event involving a specific contact or group JID. IMPORTANT: this returns the newest event of ANY type - including call logs, media, and system notifications, which have an empty
send_message Send a WhatsApp text message to a person or group.
search_contacts Search WhatsApp contacts by name or phone number.
get_contact_by_id Get contact details by JID.
send_media Send media (image, video, document, audio) via WhatsApp.
download_media Download media from a WhatsApp message and return its content.
Permissions 4
network medium filesystem low shell high env_vars low