WhatsApp Messaging API MCP Server
Send WhatsApp messages from Claude. No Meta Business approval or WhatsApp Business account.
WhatsApp Messaging API scores 69 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 9 tools. Filed under Communication. GitHub shows 0 stars. Package registries report about 79 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
88/100 for listing completeness. Lost points: short README, 1 of 9 tools barely described, short summary.
How quality is graded
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jevil25-whatsapp-messaging-api-mcp": { "command": "npx", "args": [ "-y", "whatsapp-messaging-api-mcp@2.0.0" ], "env": { "WHATSAPP_API_KEY": "YOUR_WHATSAPP_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
WHATSAPP_API_KEYSecret | Required | Session token (ch_live_...) or account key (ak_live_...) from whatsapp-messaging.retentionstack.agency/app. Free tier, no credit card. |
Tools9Tool docs quality grade C
All capabilitiesCheck if a phone number is on WhatsApp before sending
create_sessiontoolCreate a new session (account key only)
get_qr_codetoolGet the QR code to authenticate a session
Check a session's current status
list_sessionstoolList all sessions on this API key
Get an 8-digit pairing code instead of a QR
send_filetoolSend a file (PDF, document) via URL
send_imagetoolSend an image via URL
Send a text message
About
WhatsApp Messaging API — MCP Server
Send WhatsApp messages from Claude, Cursor, or any MCP client. Create a session, scan a QR code, and send text, images and files — no Meta Business approval and no WhatsApp Business account required.
Wraps the WhatsApp Messaging API by Retention Stack.
Quick start
-
Sign in at whatsapp-messaging.retentionstack.agency/start (free tier, no credit card) and copy a key from the console:
- a session token (
ch_live_...) for one number. Tools then need no session name. - an account key (
ak_live_...) for every number on your account. Needed forcreate_session; passsessionto the other tools.
- a session token (
-
Add this to your MCP client config (Claude Desktop:
claude_desktop_config.json):{ "mcpServers": { "whatsapp": { "command": "npx", "args": ["-y", "whatsapp-messaging-api-mcp"], "env": { "WHATSAPP_API_KEY": "ch_live_your_session_token" } } } } -
Restart the client. Ask it to create a WhatsApp session and show you the QR code.
Nothing to install or build — npx fetches the package on first run.
Tools
| Tool | Description |
|---|---|
list_sessions | List all sessions on this API key |
create_session | Create a new session (account key only) |
get_session_status | Check a session's current status |
get_qr_code | Get the QR code to authenticate a session |
request_pairing_code | Get an 8-digit pairing code instead of a QR |
check_contact_exists | Check if a phone number is on WhatsApp before sending |
send_text_message | Send a text message |
send_image | Send an image via URL |
send_file | Send a file (PDF, document) via URL |
Typical flow
create_session→get_qr_code→ scan with WhatsApp (Settings → Linked Devices)get_session_statusuntil it reportsWORKING. If it reportsPASSKEY_REQUIREDorPASSKEY_CONFIRMATION_REQUIRED, finish linking in the console: the passkey is signed in a browser, which an MCP client cannot do.check_contact_exists, thensend_text_message/send_image/send_file
Sessions stay authenticated between runs, so steps 1-2 are one-time per number.
Configuration
| Variable | Required | Description |
|---|---|---|
WHATSAPP_API_KEY | yes | A session token (ch_live_...) or account key (ak_live_...). The server exits on startup if it is missing. |
The key is read from the environment and sent only to the API host. It is never logged.
Upgrading from 1.x: earlier versions used a RapidAPI key, which no longer works. Replace it with a session token or account key from the console.
Local development
git clone https://github.com/jevil25/whatsapp-messaging-api-mcp.git
cd whatsapp-messaging-api-mcp
npm install
npm run dev # runs src/index.ts directly via tsx, no build step
npm run build # compile to dist/
npm test # boots the built server and drives a real MCP handshake
npm test needs no credentials — it passes a dummy key, which gets far enough to
list tools because nothing in the handshake makes an API call.
To point an MCP client at your local build, use "command": "node" with
"args": ["/absolute/path/to/dist/index.js"].
See DEVELOPING.md for the release process.
Links
- npm package
- MCP registry entry —
io.github.jevil25/whatsapp-messaging-api-mcp - WhatsApp Messaging API docs
License
MIT
Frequently asked questions
What is WhatsApp Messaging API MCP Server?
Send WhatsApp messages from Claude. No Meta Business approval or WhatsApp Business account.
How do I install WhatsApp Messaging API MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. WhatsApp Messaging API MCP Server runs locally from the npm package whatsapp-messaging-api-mcp with the command npx -y whatsapp-messaging-api-mcp@2.0.0.
Is WhatsApp Messaging API MCP Server free and open source?
Yes. WhatsApp Messaging API MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does WhatsApp Messaging API MCP Server support remote (HTTP) connections?
No remote endpoint is listed for WhatsApp Messaging API MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does WhatsApp Messaging API MCP Server provide?
WhatsApp Messaging API MCP Server provides 9 tools, including check_contact_exists, create_session, get_qr_code, and get_session_status. See the full tool list for descriptions and parameters.
How is WhatsApp Messaging API MCP Server's trust score calculated?
WhatsApp Messaging API MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.