Whatsapp MCP Stream logo

Whatsapp MCP Stream

by loglux

WhatsApp MCP server over Streamable HTTP with chat tools, media transfer, SQLite persistence, and a web admin UI.

Install Whatsapp MCP Stream

Run the project’s own setup commands, in order.

Setup steps from the project

loglux/whatsapp-mcp-stream installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    docker compose build
    
  2. 2. Start the server
    docker compose up -d
    

Overview

loglux/whatsapp-mcp-stream MCP server connects MCP clients to WhatsApp through Baileys over Streamable HTTP. It provides tools for authentication, contacts, chats, messages, group analysis, and sending or downloading media, while persisting chats and messages in SQLite. A web admin UI handles QR linking, status, logout, runtime settings, and chat history viewing. Reach for it when an agent needs to inspect or operate a WhatsApp account through a remotely hosted MCP endpoint.

Use cases

  • Search WhatsApp contacts and conversations
  • Send text messages to WhatsApp chats
  • Send documents, images, videos, or audio
  • Audit membership across WhatsApp groups
  • Retrieve and download message media

Key features

  • Streamable HTTP MCP endpoint
  • Baileys-based WhatsApp connectivity
  • Web admin UI with QR authentication
  • Bidirectional media transfer
  • SQLite chat and message persistence
  • Group membership audit tools

Tools27

What Whatsapp MCP Stream lets your agent do. Expand a tool for its parameters.

Self-reported~487 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Tools exposed27Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Whatsapp MCP Stream works

What loglux/whatsapp-mcp-stream MCP server does

loglux/whatsapp-mcp-stream MCP server exposes WhatsApp operations through an MCP endpoint at /mcp. It uses Baileys for the WhatsApp connection and includes a browser-based administration page at /admin for QR authentication, connection status, logout, runtime settings, and chat history.

The tool set covers the main objects an agent may need to work with: contacts, individual and group chats, messages, and media. It can search or resolve contacts, inspect chat metadata, list messages, search message text, retrieve message context, and send text or media. Group-oriented tools can identify overlapping members, members without direct chats, and members absent from contacts, or run those checks together as a group audit.

Chat and message data are stored in a local SQLite database located in the session volume. Media can move in both directions: the server can receive uploaded files, send media from a path, URL, or base64 content, and download media from a WhatsApp message.

How it works

The service uses Streamable HTTP rather than a local stdio process. An MCP client first sends an initialize request to /mcp, including Accept: application/json, text/event-stream, then uses the returned mcp-session-id for later tool calls.

WhatsApp authentication begins with get_qr_code; check_auth_status reports whether the client is ready. Once authenticated, tools address contacts and chats using identifiers such as WhatsApp JIDs. send_message handles text, while send_media accepts media_path, media_url, or base64 media_content. Optional idempotency keys are supported for both sending operations.

For larger files or repeated sends, stage_media stores a file in the server media directory and returns a path for later use. The HTTP API also supports JSON base64 uploads and multipart uploads. Uploaded or hosted files can be exposed through /media, depending on configuration.

Setup and configuration

The documented Docker startup path is docker compose build followed by docker compose up -d. After startup, the default admin address is http://localhost:3003/admin, the MCP endpoint is http://localhost:3003/mcp, and hosted media uses http://localhost:3003/media/<filename>.

Runtime settings are editable in the admin UI and saved to SETTINGS_PATH, which defaults to a file under MEDIA_DIR. Supported settings control the public media URL, upload size and count limits, upload enablement, optional upload-token enforcement, and automatic media downloads and their size limit.

loglux/whatsapp-mcp-stream MCP server does not implement built-in authentication. A production deployment should place it behind an authentication gateway. If upload-token enforcement is enabled, upload requests can provide the token through x-upload-token or an Authorization: Bearer header.

On hosts where Docker runs with --iptables=false, the repository documents an optional mounted resolv.conf workaround for container DNS resolution. The service also provides /healthz for health checks and includes recovery handling for several Baileys synchronization and disconnect failures.

Tools and capabilities

  • Authenticate, check readiness, and log out of WhatsApp.
  • Search, resolve, and inspect contacts, profile pictures, groups, and chats.
  • List, search, retrieve, and inspect message context.
  • Send text to people or groups.
  • Send image, video, document, and audio media.
  • Stage files, download message media, and run a ping health check.
  • Audit group membership relationships and contact coverage.
  • Persist chats and messages in SQLite.

Limitations and notes

The service requires a WhatsApp session to be authenticated before account data or sending operations can work. Its built-in web interface manages linking and operational settings, but it is not an access-control layer. Protect the MCP and administration endpoints externally when exposing them beyond a trusted network.

The recovery logic can attempt resynchronization or restart the internal WhatsApp client when session-state corruption or disconnect conditions recur. The documented behavior still includes health reporting and Docker restart integration for cases that remain unhealthy.

Media upload behavior depends on the configured limits and whether uploads are enabled. For large files, multipart upload or a server-side path avoids putting the entire file into base64 content.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Whatsapp MCP Stream

loglux/whatsapp-mcp-stream is an MCP server that connects AI clients to WhatsApp through Baileys and Streamable HTTP. Its main tools authenticate sessions, search contacts, inspect chats and messages, audit groups, send text or media, stage files, download message media, and check service health.

Install it with Docker Compose by running `docker compose build` and then `docker compose up -d` from the repository. The admin UI is available at `http://localhost:3003/admin`, and MCP clients connect to `http://localhost:3003/mcp`.

Authenticate through the web admin UI by opening the displayed QR code and linking the WhatsApp account. The `get_qr_code` and `check_auth_status` tools expose the QR and readiness state, while `logout` clears the current session.

Send media with `send_media` using a local `media_path`, a `media_url`, or base64 `media_content`. For reusable or URL-based files, call `stage_media` first and pass its returned path to `send_media`; the server also supports HTTP upload endpoints.

Yes, it can be used by MCP clients that support Streamable HTTP, including Cursor. Configure the client to use the server endpoint at `/mcp`; initialization requires the standard `Accept: application/json, text/event-stream` header.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWhatsapp MCP Stream AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/loglux-whatsapp-mcp-stream?style=directory)](https://allmcps.com/mcp/loglux-whatsapp-mcp-stream)
HTML Embed
<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>