This MCP server connects to your personal WhatsApp account, allowing you to search and read messages (including media), search contacts, and send messages through AI assistants like Claude. It uses the WhatsApp web multidevice API, storing messages locally in SQLite and only sharing them with the AI when explicitly requested through tools.
git clone https://github.com/lharries/whatsapp-mcp.git
cd whatsapp-mcp
cd whatsapp-bridge
go run main.go
You'll need to scan a QR code with your WhatsApp mobile app on the first run. Re-authentication may be required after approximately 20 days.
{{PATH}}
values:{
"mcpServers": {
"whatsapp": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
]
}
}
}
For Claude:
~/Library/Application Support/Claude/claude_desktop_config.json
For Cursor:
~/.cursor/mcp.json
If using Windows, you'll need to enable CGO and install a C compiler:
ucrt64\bin
folder to your PATH
cd whatsapp-bridge
go env -w CGO_ENABLED=1
go run main.go
Once connected, you can interact with your WhatsApp through Claude using the following tools:
You can send various media types to your WhatsApp contacts:
send_file
toolsend_audio_message
tool
.ogg
Opus formatsend_file
To access media sent in messages:
message_id
and chat_jid
shown in messages containing mediadownload_media
tool with these parameterswhatsapp-bridge/store/messages.db
and whatsapp-bridge/store/whatsapp.db
) and restartThere are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.