whatsapp-mcp
MCP server by meharajM Community
WhatsApp MCP is an MCP server that lets AI agents such as Claude or Cursor message you on WhatsApp. It sends notifications, asks questions and waits for replies, so agents can get approvals while you are away from your computer.
Install whatsapp-mcp
Built from the published package, never by AI.
claude mcp add whatsapp-mcp -e WHATSAPP_TARGET_NUMBER=YOUR_WHATSAPP_TARGET_NUMBER -- npx -y @mhrj/whatsapp-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"whatsapp-mcp": {
"env": {
"WHATSAPP_TARGET_NUMBER": "YOUR_WHATSAPP_TARGET_NUMBER"
},
"args": [
"-y",
"@mhrj/whatsapp-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"whatsapp-mcp": {
"env": {
"WHATSAPP_TARGET_NUMBER": "YOUR_WHATSAPP_TARGET_NUMBER"
},
"args": [
"-y",
"@mhrj/whatsapp-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"whatsapp-mcp": {
"env": {
"WHATSAPP_TARGET_NUMBER": "YOUR_WHATSAPP_TARGET_NUMBER"
},
"args": [
"-y",
"@mhrj/whatsapp-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add whatsapp-mcp --env WHATSAPP_TARGET_NUMBER=YOUR_WHATSAPP_TARGET_NUMBER -- npx -y @mhrj/whatsapp-mcp{
"mcpServers": {
"whatsapp-mcp": {
"env": {
"WHATSAPP_TARGET_NUMBER": "YOUR_WHATSAPP_TARGET_NUMBER"
},
"args": [
"-y",
"@mhrj/whatsapp-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add whatsapp-mcp npx -y @mhrj/whatsapp-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the whatsapp-mcp block.
About
WhatsApp MCP is an MCP (Model Context Protocol) server that lets AI agents like Claude or Cursor interact with you through WhatsApp. It sends one-way notifications, asks questions that block until a reply arrives, and lets agents request permission or confirmation while you are away from your computer. The README's example shows an agent asking whether to deploy to production and continuing after a YES reply.
The server authenticates with WhatsApp Web using a QR code, and the session is saved under your home directory so you do not need to scan again after restarts. The WHATSAPP_TARGET_NUMBER variable sets the default recipient, and WHATSAPP_ALLOWED_NUMBERS can limit which replies the agent honors. It is aimed at Cursor and Claude Desktop users, solo builders shipping agentic workflows, and DevOps teams that need runtime approvals.
Written from the project's README and checked against it.
Tools it gives your assistant
connectConnects to WhatsApp and returns a QR image if the session is not logged in.disconnectLogs out of WhatsApp and invalidates the session credentials.send_messageSends a one-way notification, with optional WhatsApp bold formatting.ask_questionSends a prompt and blocks until a WhatsApp reply arrives or a timeout is reached.get_incoming_messagesPolls unsolicited inbound WhatsApp messages for agents without server-side sampling.get_statusReports connection state such as connected, connecting or qr_pending.
What you need
- A WhatsApp account on a phone to link as a device
- An MCP client such as Cursor, Claude Desktop, Claude Code, OpenCode or Codex
- npx to run the package from NPM
- Node.js, as the README mentions npx and node paths
| Setting | Needed | What it is |
|---|---|---|
WHATSAPP_Environment variable | Required | Target WhatsApp number (required) |
WHATSAPP_Environment variable | Optional | Comma-separated JIDs to restrict who can control replies |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Ask me on WhatsApp whether to deploy to production before continuing.
- Send me a WhatsApp status update when the build finishes.
- Check my WhatsApp for any incoming messages.
Good to know
- If the target is a group, any member can reply unless WHATSAPP_ALLOWED_NUMBERS is set.
- The first use requires scanning a QR code to authenticate with WhatsApp Web.
- If the client does not render inline images, a fallback HTML page is written to ~/.whatsapp-mcp/qr.html.
- The auto-pilot workflow relies on setting the IDE to Always Allow or yolo mode.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to whatsapp-mcp
All alternatives →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
Compare with Jitsu, Vexa or Linkedin MCP server
whatsapp-mcp: common questions
Who can reply to the agent through WhatsApp?
By default, if the target is a group, any group member can answer. Setting WHATSAPP_ALLOWED_NUMBERS restricts replies to the listed numbers only.
Do I need to scan the QR code every time?
No. The authentication session is saved in ~/.whatsapp-mcp/baileys_auth_info, so you do not need to scan again across restarts.
What happens when the agent asks a question?
The ask_question tool blocks execution until a reply is received, with a timeout. Concurrent questions are queued and tagged with references.
How do I install whatsapp-mcp?
In Claude Code run claude mcp add whatsapp-mcp -e WHATSAPP_TARGET_NUMBER=YOUR_WHATSAPP_TARGET_NUMBER -- npx -y @mhrj/whatsapp-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is whatsapp-mcp the official server?
whatsapp-mcp is a community project by meharajM, not verified by a company domain.
Is whatsapp-mcp free?
The code is published under the ISC licence. The service it connects to may have its own pricing.
Is whatsapp-mcp safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to whatsapp-mcp?
Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.
Does whatsapp-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
