Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 75
  • 0 stars
  • 161 a week
  • ISC
  • Updated

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-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install whatsapp-mcp in Claude Code

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
SettingNeededWhat it is
WHATSAPP_TARGET_NUMBEREnvironment variableRequiredTarget WhatsApp number (required)
WHATSAPP_ALLOWED_NUMBERSEnvironment variableOptionalComma-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

A

No 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 →

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.

whatsapp-mcp Install

Add to stack

Loading.