WhatsApp MCP server using Streamable HTTP transport with web admin UI, bidirectional media upload/download, and SQLite persistence.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Whatsapp MCP Stream.
get_qr_codeGet the latest WhatsApp QR code as an image for authentication.
check_auth_statusCheck if the WhatsApp client is authenticated and ready.
logoutLogout from WhatsApp and clear the current session.
search_contactsSearch contacts by name or phone number.
resolve_contactResolve a contact by name or phone number (best matches).
get_contact_by_idGet contact details by JID.
A WhatsApp MCP server built around Streamable HTTP transport, using Baileys for WhatsApp connectivity, with a web admin UI and bidirectional media flow (upload + download).
Key points:
/mcp/media hosting + MCP download toolThe server will be available at:
http://localhost:3003/adminhttp://localhost:3003/mcphttp://localhost:3003/media/<filename>--iptables=falseOn some NAS / hardened hosts (e.g. Synology with dockerd --iptables=false), Docker's embedded DNS proxy (127.0.0.11) has no iptables DNAT rules and refuses connections inside containers.
Fix: copy resolv.conf.example to resolv.conf and add a volume override:
Then add to a local docker-compose.override.yml (not committed):
docker compose up picks up the override automatically.
Settings can be edited in the admin UI and are persisted to SETTINGS_PATH (defaults to MEDIA_DIR/settings.json).
Admin console with runtime settings, QR linking, chat history viewer, export, and status.
Supported settings:
media_public_base_urlupload_max_mbupload_enabledmax_files_per_uploadrequire_upload_tokenupload_tokenauto_download_mediaauto_download_max_mbBuilt-in authentication is not implemented yet. In production, use a gateway that enforces auth. This project works well behind authmcp-gateway:
Base64 JSON:
Multipart (recommended for large files):
Both return url and (if configured) publicUrl.
The ./files/ directory in the project root is bind-mounted into the container at /app/files. Drop any file there and reference it immediately β no container restart needed:
For a URL source, pass media_url directly to send_media or stage_media β the server downloads the file itself without base64.
If require_upload_token=true, provide a token with either:
x-upload-token: <token>Authorization: Bearer <token>The server exposes Streamable HTTP at /mcp.
Typical flow:
POST /mcp with JSON-RPC initializemcp-session-id header for subsequent requestsPOST /mcp for tool callsNote: clients must send Accept: application/json, text/event-stream on initialize.
Quick regression smoke for MCP tools:
Optional custom target:
| Tool | Description |
|---|---|
get_qr_code | Get the latest WhatsApp QR code as an image for authentication. |
check_auth_status | Check if the WhatsApp client is authenticated and ready. |
logout | Logout from WhatsApp and clear the current session. |
| Tool | Description |
|---|---|
search_contacts | Search contacts by name or phone number. |
resolve_contact | Resolve a contact by name or phone number (best matches). |
get_contact_by_id | Get contact details by JID. |
get_profile_pic | Get profile picture URL for a JID. |
get_group_info | Get group metadata and participants by group JID. |
| Tool | Description |
|---|---|
list_chats | List chats with metadata and optional last message. |
get_chat_by_id | Get chat metadata by JID. |
list_groups | List group chats only. |
get_direct_chat_by_contact_number | Resolve a direct chat JID by phone number. |
get_chat_by_contact | Resolve a contact by name or phone number and return chat metadata. |
analyze_group_overlaps | Find members that appear across multiple groups. |
find_members_without_direct_chat | Find group members with no direct chat. |
find_members_not_in_contacts | Find group members missing from contacts. |
run_group_audit | Run combined group audit as one routine operation. |
| Tool | Description |
|---|---|
list_messages | Get messages from a specific chat. |
search_messages | Search messages by text (optionally scoped to a chat). |
get_message_by_id | Get a specific message by ID (jid:id). |
get_message_context | Get recent messages around a specific message. |
get_last_interaction | Get the most recent message for a JID. |
send_message | Send a text message to a person or group. Supports optional idempotency_key. |
| Tool | Description |
|---|---|
send_media | Send media (image/video/document/audio). Accepts media_path, media_url, or media_content (base64). Supports optional idempotency_key. |
stage_media | Save a file to the server's media directory and return its local path. Use the returned saved_path in send_media (media_path) β avoids base64 when the source is a URL (server downloads directly), or allows sending the same file to multiple recipients without re-uploading. |
download_media | Download media from a message. |
| Tool | Description |
|---|---|
ping | Health check tool. |
This service contains an intentional recovery workaround for Baileys/WhatsApp session-state corruption.
Why it exists:
failed to find key ... to decode mutation and failed to sync state from version.Current behavior:
forceResync().Connection Terminated, the service schedules a disconnect watchdog and escalates to an internal restart if the socket does not return to open in time.428 Connection Terminated, 503 Stream Errored) being auto-recovered back to open./healthz endpoint reports 503 only when the service is genuinely stuck outside the allowed recovery window./healthz, so the container is restarted only after in-process recovery has had a chance to work.These recovery mechanisms reduce operator intervention and improve resilience against common WhatsApp/Baileys session failures.
MIT
Chats and messages are persisted to a local SQLite database stored in the session volume.
Environment variables:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/loglux-whatsapp-mcp-stream)<a href="https://allmcps.com/mcp/loglux-whatsapp-mcp-stream"><img src="https://allmcps.com/api/badge/loglux-whatsapp-mcp-stream?style=directory" alt="Whatsapp MCP Stream on AllMCPs" /></a>