WhatsApp MCP Server - Human-in-the-loop for AI agents via WhatsApp
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"whatsapp-mcp": {
"env": {
"WHATSAPP_TARGET_NUMBER": "1234567890@s.whatsapp.net"
},
"args": [
"-y",
"@mhrj/whatsapp-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This is an MCP (Model Context Protocol) server that enables AI agents (like Claude or Cursor) to interact directly with you via WhatsApp. It bridges the gap between your autonomous AI and your phone, allowing for runtime confirmations, permission requests, or simple status updates while you are away from your computer.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in communication
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API
PubNub Model Context Protocol MCP Server for Cursor and Claude
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.mcp" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.mcp/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.mcp?activeTab=code" t
MCP Security Weekly
Get CVE alerts and security updates for io.github.meharajM/whatsapp-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This is an MCP (Model Context Protocol) server that enables AI agents (like Claude or Cursor) to interact directly with you via WhatsApp. It bridges the gap between your autonomous AI and your phone, allowing for runtime confirmations, permission requests, or simple status updates while you are away from your computer.
AI: Deploy to production?
WhatsApp: [YES] [NO]
You: YES
Agent continues.
Since this package is published to NPM, you can run it directly via npx in your MCP configuration.
Add this to your MCP configuration file:
{
"mcpServers": {
"whatsapp-mcp": {
"command": "npx",
"args": [
"-y",
"@mhrj/whatsapp-mcp"
],
"env": {
"WHATSAPP_TARGET_NUMBER": "1234567890@s.whatsapp.net"
}
}
}
}
Note about Allowed Numbers:
WHATSAPP_TARGET_NUMBERis the default recipient for all messages. However, if your target is a Whatsapp Group, any member of the group would be able to answer the AI by default. To restrict replies only to specific numbers (to prevent unauthorized people from answering), you can optionally add a comma-separated list of numbers as an environment variable:"WHATSAPP_ALLOWED_NUMBERS": "123@s.whatsapp.net,456@s.whatsapp.net". If set, the AI will ONLY honor responses from these specific matching users.
Troubleshooting
npx: executable file not found in $PATHorenv: node: No such file or directory: If your IDE/Agent complains it cannot findnpxornode, it's because GUI apps (like Cursor) don't inherit your terminal's$PATH. To fix this, explicitly pass yourPATHin the MCPenvconfig."env": { "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin", "WHATSAPP_TARGET_NUMBER": "1234567890@s.whatsapp.net" }
The very first time you use the MCP server, it needs to authenticate with WhatsApp Web:
connect tool via your Agent, or just use any WhatsApp tool normally. If the session is not authenticated yet, the server will trigger authentication automatically.~/.whatsapp-mcp/qr.html.~/.whatsapp-mcp/baileys_auth_info), so you don't need to scan it again across restarts.To make your AI agent run fully autonomously and only ask for permissions/guidance via WhatsApp (allowing you to step away from your computer):
Always Allow (or enable "yolo" mode in settings). This gives the agent the mechanical freedom to operate wit