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.
WhatsApp MCP Server - Human-in-the-loop for AI agents via WhatsApp
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.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe 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
An MCP server that securely interfaces with your iMessage database via the Model Context Protocol (MCP), allowing LLMs to query and analyze iMessage conversations. It includes robust phone number validation, attachment processing, contact management, group chat handling, and full support for sending and receiving messages.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP server for Kaseya Autotask PSA — 39 tools for companies, tickets, projects, time entries, and more
Email & SMS infrastructure for AI agents — send and receive real email and text messages programmatically
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.
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.~/.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 without pausing indefinitely for a UI click..cursorrules (or system prompt) file: You must explicitly instruct the AI to use WhatsApp whenever it reaches a logical decision point. Create a .cursorrules file in your project root with this exact prompt:# Human-in-the-Loop via WhatsApp
You are connected to the user via the `whatsapp-mcp` server.
Whenever you are about to make significant/destructive changes, run a deployment, or whenever you need the user's permission/opinion to proceed with a plan, you MUST use the `ask_question` tool to ask the user on WhatsApp.
DO NOT simply ask for confirmation in the IDE chat interface. Y
... [View full README on GitHub](https://github.com/meharajM/whatsapp-mcp#readme)