The WhatsApp MCP server connects AI agents to your personal WhatsApp account. Agents can search contacts, list chats and messages, read the context around a message, find direct chats, send text messages and files to people or groups, send voice messages, and download media from conversations.
Tools
download_media
Download media from a WhatsApp message to a local path.
get_chat
Get details and metadata about a specific WhatsApp chat.
get_contact_chats
List all of the chats involving a specific contact.
get_direct_chat_by_contact
Find a direct WhatsApp chat with a specific contact.
get_last_interaction
Get the most recent message exchanged with a contact.
get_message_context
Retrieve the messages surrounding a specific WhatsApp message.
list_chats
List the available WhatsApp chats along with metadata.
list_messages
Retrieve WhatsApp messages with optional filters and context.
search_contacts
Search for WhatsApp contacts by name or phone number.
send_audio_message
Send an audio file as a WhatsApp voice message to a chat.
send_file
Send an image, video, document, or audio file in a chat.
send_message
Send a WhatsApp message to a phone number or group.