whatsapp-mcp
About
Provides a secure bridge to your WhatsApp account, enabling message search, contact management, and sending capabilities while keeping all data stored locally on your device.
Details
- Author
- lharries
- Repository
- lharries/whatsapp-mcp
- GitHub stars
- 4,952
- Downloads
- 1,244
- License
- MIT License
- Categories
- Community, Workplace, File Management, Search, Communication, Other, API, Productivity, Developer Tools, Design, AI, Database, Knowledge Base
- Tags
- #web
Jump to
The MCP server supports both sending and receiving various media types:
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
whatsapp-mcpCommand (node, npx, python, etc.){{PATH_TO_UV}}Arguments-
Argument 1
--directory -
Argument 2
{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server -
Argument 3
run -
Argument 4
main.py
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Once connected, you can interact with your WhatsApp contacts through Claude, leveraging Claude's AI capabilities in your WhatsApp conversations.
- QR Code Not Displaying: If the QR code doesn't appear, try restarting the authentication script. If issues persist, check if your terminal supports displaying QR codes.
- WhatsApp Already Logged In: If your session is already active, the Go bridge will automatically reconnect without showing a QR code.
- Device Limit Reached: WhatsApp limits the number of linked devices. If you reach this limit, you'll need to remove an existing device from WhatsApp on your phone (Settings > Linked Devices).
- No Messages Loading: After initial authentication, it can take several minutes for your message history to load, especially if you have many chats.
- WhatsApp Out of Sync: If your WhatsApp messages get out of sync with the bridge, delete both database files (whatsapp-bridge/store/messages.db and whatsapp-bridge/store/whatsapp.db) and restart the bridge to re-authenticate.
For additional Claude Desktop integration troubleshooting, see the MCP documentation. The documentation includes helpful tips for checking logs and resolving common issues.
search_contacts
Search for contacts by name or phone number.
list_messages
Retrieve messages with optional filters and context.
list_chats
List available chats with metadata.
get_chat
Get information about a specific chat.
get_direct_chat_by_contact
Find a direct chat with a specific contact.
get_contact_chats
List all chats involving a specific contact.
get_last_interaction
Get the most recent message with a contact.
get_message_context
Retrieve context around a specific message.
send_message
Send a WhatsApp message to a specified phone number or group JID.
send_file
Send a file (image, video, raw audio, document) to a specified recipient.
send_audio_message
Send an audio file as a WhatsApp voice message (requires the file to be an .ogg opus file or ffmpeg must be installed).
download_media
Download media from a WhatsApp message and get the local file path.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"whatsapp-mcp": {
"cwd": "whatsapp-bridge",
"env": {},
"args": [
"--directory",
"{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
],
"command": "{{PATH_TO_UV}}"
}
}
}
Linux
{
"cwd": "whatsapp-bridge",
"env": [],
"args": [
"--directory",
"{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
],
"command": "{{PATH_TO_UV}}"
}
Macos
{
"cwd": "whatsapp-bridge",
"env": [],
"args": [
"--directory",
"{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
],
"command": "{{PATH_TO_UV}}"
}
Windows
{
"cwd": "whatsapp-bridge",
"env": [],
"args": [
"--directory",
"{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
],
"command": "{{PATH_TO_UV}}"
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


