Skip to main content
Glama

Try it without a phone

With uv installed, uvx wa-mcp-server --demo starts a fictional archive of eight chats. The demo needs WA MCP 0.2.1 or later and runs offline after installation. Use the install buttons or copy the config for your client.

Claude Code

claude mcp add wa-mcp-demo -- uvx wa-mcp-server --demo

Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "wa-mcp-demo": { "command": "uvx", "args": ["wa-mcp-server", "--demo"] }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "wa-mcp-demo": { "type": "stdio", "command": "uvx", "args": ["wa-mcp-server", "--demo"] }
  }
}

Ask “What are my tasks today?”, then search for “blue umbrella” and read the voice note transcript. Two-minute tutorial

Related MCP server: WhatsApp MCP Server (TypeScript)

Features

Area

What it does

Login window

Links your account from a small local window with a QR code or a pairing code for your phone number. The terminal prints the QR code as a fallback.

Several accounts

More than one WhatsApp number in one MCP server: one bridge per number with its own store and sending limits, wa-bridge run-all keeps them running, every tool takes an account argument and get_my_day covers all numbers. A config without accounts works as before. See Several accounts.

History

Stores live messages and the history your phone sends after linking, and applies edits, deletions and reactions. Tools ask the phone for older pages, per chat or for the whole archive.

Chat import

Loads a WhatsApp "Export chat" file (.txt, or .zip with media) into the store, for history older than what the phone syncs. Reads Android and iPhone layouts in many date and clock formats, detects the date order, skips messages that are already stored and can be run again safely. Run it as a dry run first.

Media

Downloads images, video, audio, voice notes, documents and stickers. When the WhatsApp copy has expired, the bridge asks your phone to upload it again.

Search

Case-insensitive search in any script across messages, transcripts and extracted file text. The phone and LID chats of one person are merged.

Voice transcription

Turns voice notes into text with pluggable backends: faster-whisper, openai-whisper, whisper.cpp, any OpenAI-compatible endpoint or your own command.

Text from screenshots

Reads the text in photos and screenshots with a local OCR engine (tesseract or RapidOCR). The text is stored with the message, so search and list_messages find it.

Documents and archives

Reads text from PDF, DOCX, XLSX, PPTX, plain text and HTML files, lists ZIP and RAR archives without unpacking them, and reads public Google Docs links.

Chat analytics

Message volume, reply timing in both directions, message length, emoji, stickers, voice notes, formality and group roles. Compares up to 8 chats.

Tasks

Detects requests in chats with plain rules, tracks their status and finds watched words. No language model is involved.

get_my_day

One call that lists what needs you today: open requests, your own promises that are due, chats waiting for your answer, missed calls and scheduled sends.

Sending

Text, files, voice notes and stickers, with replies and mentions. Off by default. You approve each send in your client when it supports that; other clients need sending.allow_confirm_flag.

Human-like sending

Sending paces itself like a person would. The bridge marks the chat read first, shows the typing indicator for a time that depends on the message length, leaves a pause between messages, and follows quiet hours and per-hour limits. This makes automated sending look less mechanical. It does not guarantee anything.

Read receipts

Marks messages as read on request, or automatically if you turn that on.

Calls

Call history with direction, video flag, outcome and duration. Answering and placing calls with an agent is in development, see Roadmap.

Scheduled messages

One-time, daily, weekly or monthly messages that the bridge sends without a running assistant.

Agent connector

Connect your own reply API or model. Draft, approve or send text and voice notes for listed chats.

Webhooks

Posts message, receipt, call, connection, scheduled and security events to your URLs. The bridge retries failed deliveries and signs requests when a secret is set.

HTTP API

Local REST API with token authentication and an OpenAPI 3.1 document.

Embedding

The Go package bridge/pkg/wabridge runs the bridge inside another program, with hooks for every stored message and chat, extra HTTP routes and access to sending, media and history. wa_mcp_server.embed.register adds chosen tools to another MCP server.

Remote access

wa-mcp serve --http serves MCP over Streamable HTTP for remote clients such as claude.ai custom connectors, Claude Code, Cursor and VS Code. Per-device bearer tokens (stored hashed) or OAuth 2.1 with PKCE, dynamic registration and an owner approval page. Rate limits, Host and Origin checks, no CORS by default, and TLS proxy support. See Connect remotely.

Server deployment

Docker images for the bridge and the server (non-root, read-only file system, health checks) and a Compose file with optional Caddy for automatic HTTPS. The login page works through the proxy with a one-time link. See Run on a server. Public images are available for v0.1.0. CI builds them and starts the preview stack on pushes to main.

AI providers (optional)

Off by default: your assistant does the thinking. You can set one background provider, Ollama, an OpenAI-compatible server or Anthropic, for get_my_day summaries and image descriptions. Keys come from environment variables, and daily call and input limits guard the cost.

Python SDK

The wa_mcp package: bridge client, read access to the local database, transcription and exports.

Encryption

On by default: message text, attachment names, reactions, transcripts and media keys in the database are encrypted with a key kept in the OS keystore (Windows DPAPI, macOS Keychain, Linux Secret Service), or with a passphrase or key file. The API token is kept there too, and on Windows the store folder gets EFS. See Encryption and keys.

Session alerts

Records a remote logout, another client using this session, a new device on the account and a different account at login, and shows them in get_bridge_status, GET /api/v1/status and a security webhook.

How it compares

The table covers features each project supplies. Encryption refers to message text encrypted by the application. Chat import means reading a WhatsApp chat export. Several accounts means one deployment can host more than one linked number. Partial marks a feature with limited or unconfirmed support.

Feature

WA MCP

finereli

verygoodplugins

felipeadeildo

jlucaso1

BrOrlandi

Send messages

Yes

No

Yes

Yes

Yes

Yes

Send media and voice notes

Yes

No

Yes

No

No

Partial

Voice transcription

Yes

Yes

Yes

Yes

No

Yes

Text from images (OCR)

Yes

No

No

Yes

No

No

Document text

Yes

Partial

No

Yes

No

No

Encryption at rest

Yes

Yes

No

No

No

No

Human-like pacing and limits

Yes

No

Partial

Partial

No

Partial

Scheduled messages

Yes

No

No

No

No

No

Several accounts

Yes

Yes

No

Yes

No

Yes

Webhooks

Yes

No

Yes

Yes

No

Yes

Remote MCP over HTTP with OAuth

Yes

Yes

Partial

Yes

No

Partial

Docker

Yes

Yes

No

No

Yes

Yes

Chat import

Yes

No

No

No

No

No

License

MIT

MIT

MIT

GPL-3.0

ISC

MIT

Language

Go, Python

TypeScript

Go, Python

TypeScript

TypeScript

Go

Checked in November 2026 from each project's public repository. Corrections are welcome.

Architecture

Quick start

Install uv so your MCP client can run uvx. The buttons install the Python server. Keep a linked bridge running for live messages and bridge tools.

Demo in Cursor Demo in VS Code Add to Cursor Install in VS Code Install in VS Code Insiders

cursor://anysphere.cursor-deeplink/mcp/install?name=wa-mcp&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJ3YS1tY3Atc2VydmVyPT0wLjEuMCIsIi0td2l0aCIsIndhLW1jcC1zZGtbZW5jcnlwdGlvbixmaWxlc10iLCJ3YS1tY3AiXX0%3D

Claude Desktop. Download wa-mcp.mcpb from the latest release and open it. Select the bridge's config.json when prompted. For v0.1.0, use the manual PyPI command below until a release includes the bundle.

Start the bridge. With Go 1.26 or newer, clone the repository and build the bridge. On Windows, use ../wa-bridge.exe as the build output.

git clone https://github.com/tsahospital-beep/wa-mcp.git
cd wa-mcp
go build -C bridge -o ../wa-bridge ./cmd/wa-bridge
cp config.example.json config.json
./wa-bridge

In WhatsApp, open Linked devices, choose Link a device, and scan the QR code. To run the public bridge image instead, follow Run the bridge in Docker.

Connect the server. For the buttons, set WA_MCP_CONFIG to the absolute path of the bridge's config.json in the environment your client inherits, then restart the client. You can also append --config and that path to the installed server's arguments. This lets the server find the same message store even when the client starts in another directory.

Check the published command from a terminal.

uvx --from wa-mcp-server==0.1.0 wa-mcp --help

For a persistent install, use pipx with Python 3.11 or newer.

pipx install wa-mcp-server
pipx inject --force wa-mcp-server 'wa-mcp-sdk[encryption,files]'
wa-mcp --help

The buttons include the SDK extras for encrypted messages and file text extraction. A pipx client can launch wa-mcp directly with --config and the absolute config path. Run get_bridge_status in your client to check the database and phone connection. See Getting started and Connect an MCP client for manual setup.

Tutorials

Step-by-step lessons for install, first login, clients, tasks, voice, screenshots, imports, sending, several accounts, Docker, remote access, webhooks and security are in the tutorials index.

Example: "What are my tasks today?"

You:        What are my tasks today?

Assistant:  (calls get_my_day for 2026-11-23)

            Four things need you today.

            A client asked for the updated invoice yesterday at 16:40 and wants it by the end of the
            day. It is still open.

            On Sunday you told a colleague "I will send you the photos tomorrow". That promise is due today.

            The Book club group asked "Which day works for the next meeting?" about 95 minutes ago.
            Nobody has answered yet.

            A reminder for the Book club is scheduled to go out at 18:00.

get_my_day runs on your machine and uses plain rules. The assistant only phrases the result.

Toolsets

The default core toolset exposes 11 tools for checking bridge status, finding contacts and chats, reading or searching messages, reviewing your day, sending text and files, downloading media and transcribing voice notes. Sending requires sending.enabled and follows the configured approval policy.

Enable additional sets with {"mcp": {"toolsets": ["core", "actions"]}} in config.json. Choose from history, media, insight, tasks, schedule, agent, accounts and actions. To expose every tool after upgrading from 0.1.1, use ["all"]. The --toolsets flag takes precedence over WA_MCP_TOOLSETS and the file. For example, wa-mcp --toolsets core,actions enables message reactions, edits, revocations and text forwards. Tool reference.

Configuration

The bridge and the server work without a config file. To change something, copy config.example.json to config.json. It lists every key with its default. Settings can also come from environment variables such as WA_MCP_API_LISTEN, and the bridge warns about keys it does not know. For example, to allow sending and make transcription lighter:

{
  "sending": { "enabled": true },
  "transcription": { "model": "small" }
}

All keys are described in Configuration. Sending has its own page: Sending.

Voice transcription

Transcription is optional. Pick a backend with transcription.backend:

Backend

Notes

faster-whisper

Default. Runs on CPU or an NVIDIA GPU.

openai-whisper

Reference implementation on PyTorch.

whisper.cpp

A separate whisper-cli program and a ggml model.

http

Any OpenAI-compatible /v1/audio/transcriptions server.

command

Any program that prints the text of a WAV file.

ffmpeg must be on your PATH. Install a backend with the script for your system:

scripts/install_whisper.sh --backend faster-whisper --model large-v3 --download
scripts\install_whisper.ps1 -Backend faster-whisper -Model large-v3 -Download

See Voice transcription for the details and for keeping the packages across uv sync.

Use in your own project

Read the local database from Python:

from wa_mcp import config, db, people

cfg = config.load("config.json")
db.connect(cfg)
people.connect(cfg)

for m in db.messages(after="2026-11-01", query="invoice", limit=5):
    print(m["time"], people.name_of(m["conv"]), m["body"][:60])

Verify a signed webhook using the raw request body and the two headers the bridge signed.

import hashlib, hmac, json, os, time
from http.server import BaseHTTPRequestHandler, HTTPServer

SECRET = os.environ["WA_MCP_WEBHOOK_SECRET"].encode()


class Hook(BaseHTTPRequestHandler):
    def do_POST(self):
        body = self.rfile.read(int(self.headers.get("Content-Length", 0)))
        stamp = self.headers.get("X-WA-MCP-Timestamp", "")
        delivery = self.headers.get("X-WA-MCP-Delivery", "")
        signed = f"{stamp}.{delivery}.".encode() + body
        expected = "sha256=" + hmac.new(SECRET, signed, hashlib.sha256).hexdigest()
        valid_stamp = stamp.isascii() and stamp.isdecimal() and len(stamp) <= 12
        fresh = valid_stamp and abs(time.time() - int(stamp)) <= 300
        if not (
            fresh and delivery and hmac.compare_digest(expected, self.headers.get("X-WA-MCP-Signature", ""))
        ):
            self.send_response(401)
            self.end_headers()
            return
        print(json.loads(body)["event"])
        self.send_response(204)
        self.end_headers()


HTTPServer(("127.0.0.1", 9000), Hook).serve_forever()

Retries use the same delivery ID. For a receiver that also skips IDs it has already processed, see webhook_receiver.py.

Call the HTTP API:

TOKEN=$(./wa-bridge api-token)
curl -H "Authorization: Bearer $TOKEN" "http://127.0.0.1:8080/api/v1/messages?query=invoice&limit=5"

More in Webhooks, the HTTP API and the list of MCP tools.

Security and privacy

  • By default, the bridge stores chats locally and listens on loopback for API and login requests. Your MCP client receives the tool results it requests.

  • The /api/v1 endpoints require a bearer token. Run wa-bridge api-token to read it. The store folder is restricted to your user. Login links work once.

  • Message text in the database is encrypted by default. The key is kept by Windows DPAPI, the macOS Keychain or the Linux Secret Service for your user, so a copy of the store on another computer or in another Windows account cannot be read. On Windows the store folder, including the WhatsApp session, is encrypted with EFS as well; on macOS and Linux use full disk encryption for the session file.

  • The bridge reports session events, such as another client using this session or a new linked device, in get_bridge_status, the status endpoint and a security webhook.

  • Sending is disabled by default. You approve each send in your client when it can ask. Clients that cannot ask can send only if you set sending.allow_confirm_flag; they then pass confirm=true, which the model sets itself, so that path is a weaker check. The bridge adds limits, quiet hours and duplicate protection, and it only sends files from the downloads and exports folders unless you allow more.

  • Message text is untrusted input. The server tells clients not to follow instructions found in it.

  • With a webhook secret set, the signature covers the timestamp, delivery ID and raw body. Process each verified delivery ID once. Retries reuse it.

  • Remote access is opt-in. wa-mcp serve --http requires a valid bearer token for /mcp. A non-loopback listener needs a TLS proxy and server.trusted_proxies unless you use --insecure-lan. See Remote mode security.

  • The encryption covers message text, attachment names, reactions, transcripts and media keys. It does not cover downloads, exports, chat ids, titles or timestamps.

  • An administrator or malware running as your user can still read the store and ask the keystore for the key. Check Linked devices on your phone from time to time.

Details are in docs/security.md, keys and modes in Encryption and keys and the threat model in docs/security/audit.md. To report a vulnerability, see SECURITY.md.

Roadmap

  • Voice calls (in progress). Answer and place one-to-one WhatsApp calls with your agent: the caller's audio goes to your speech model or voice service, and its answer is spoken back in the call. It will ship as a separate module, off by default, together with a follow-up message after a missed call.

License

MIT. Dependency licenses are listed in THIRD_PARTY_NOTICES.md.

Available Tools

11 tools
download_mediaDownload one attachmentA
Idempotent

Save the attachment from one message, reusing a verified local copy.

Use download_chat_media for a batch. A missing message fails. New downloads need the bridge. Demo declines downloads. Omit account for the default. Unknown accounts fail.

Inputs: chat (required), message_id (required), account. Returns: object

get_bridge_statusCheck bridge statusA
Read-onlyIdempotent

Check whether this account is linked and ready to send.

Use list_accounts to check several accounts. An offline bridge is reported alongside local diagnostics. Demo reports an unlinked archive with sending disabled. Omit account for the default. Unknown accounts fail.

Inputs: account. Returns: object

get_chatInspect one chatA
Read-onlyIdempotent

Inspect one conversation and its newest stored messages.

Use list_messages for a longer history. Works offline and in demo. An unknown name fails, an absent JID gives found=false, and a chat without messages has an empty preview. Omit account for the default. Unknown accounts fail.

Inputs: chat (required), recent, account. Returns: object

get_message_contextRead messages around an IDA
Read-onlyIdempotent

Read a stored message and the messages immediately before and after it.

Use list_messages to find the anchor. Works offline and in demo without sending receipts. A missing chat or message fails. Either side of the exchange can be empty. Omit account for the default. Unknown accounts fail.

Inputs: chat (required), message_id (required), after, before, +1 more. Returns: object

get_my_dayGet the daily WhatsApp briefingA
Destructive

Find what needs your attention on a given day across configured accounts.

Use list_tasks for tracked work across dates. Omit account to merge all accounts. Unknown accounts fail. Works offline and in demo. Empty days show no priorities. Refresh can prune expired tasks. Optional summaries may contact a paid provider.

Inputs: chat, date, account, refresh, +1 more. Returns: object

list_chatsList recent chatsA
Read-onlyIdempotent

Browse conversations in the local archive, most recently active first.

Use search_contacts for a person or get_chat for one conversation. Works offline and in demo. An empty archive or unmatched filter gives an empty page. Omit account for the default. Unknown accounts fail.

Inputs: limit, query, offset, account. Returns: object

list_messagesSearch stored messagesA
Read-onlyIdempotent

Search stored messages and derived text without sending read receipts.

Use get_message_context around a known message. Works offline and in demo. An unknown chat name fails. Empty history or unmatched filters give an empty page. Omit account for the default. Unknown accounts fail.

Inputs: chat, after, kinds, limit, +8 more. Returns: object

search_contactsSearch contactsA
Read-onlyIdempotent

Find a contact by name, alias or phone fragment in the local directory.

Use list_chats to browse by recent activity. Works offline and in demo. Blank queries and unmatched names give an empty list. Omit account for the default. Unknown accounts fail.

Inputs: query (required), limit, account. Returns: object

send_fileSend a file attachmentA

Upload an allowed local file to a WhatsApp recipient or queue it during quiet hours.

Use send_message for text alone. Sending defaults off and follows the approval policy. Missing files, unknown recipients, demo or an offline bridge block delivery. Omit account for the default. Unknown accounts fail.

Inputs: to (required), path (required), account, caption, +3 more. Returns: object

send_messageSend a WhatsApp text messageA

Send a text message through the linked account or queue it during quiet hours.

Use send_file for attachments. Sending defaults off and follows the configured human approval policy. Demo, unknown recipients and an offline bridge block delivery. Multipart failures identify any parts already sent. Omit account for the default. Unknown accounts fail.

Inputs: to (required), text (required), account, confirm, +2 more. Returns: object

transcribe_chat_audioTranscribe voice notes and audioA
Destructive

Transcribe a chat's stored voice notes and audio files.

Use get_media_text to read a saved transcript. Missing files need the bridge. Force replaces transcripts, and remote backends may charge. Empty scans find nothing. Demo previews cached transcripts. Omit account for the default. Unknown accounts fail.

Inputs: chat (required), days, force, limit, +3 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools target distinct resources and actions (search vs. inspect vs. send vs. media vs. status), and descriptions explicitly cross-reference alternatives like 'use get_chat for one conversation.' The only real overlap is between list_messages, get_chat, and get_message_context, which all surface stored message text but at different scopes; descriptions mitigate this well enough.

    Naming Consistency5/5

    Every tool follows a consistent snake_case verb_noun pattern (list_messages, search_contacts, get_chat, send_file, download_media, transcribe_chat_audio, get_bridge_status). No camelCase or mixed verb styles anywhere in the set.

    Tool Count5/5

    Eleven tools sit comfortably in the well-scoped 3-15 range for a WhatsApp archive/messaging server. Each tool covers a distinct capability (browse, search, read context, send, download, transcribe, status, daily digest) with no filler.

    Completeness3/5

    Core read/search/send/media workflows are covered, but descriptions point to tools that do not exist in this set: list_accounts (referenced by get_bridge_status), get_media_text (referenced by transcribe_chat_audio), and list_tasks (referenced by get_my_day). These dangling references create real dead ends for an agent, and there is no message/chat mutation or contact-management surface.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with your personal WhatsApp account, allowing them to search messages and contacts, retrieve chat history, and send messages to individuals or groups. Uses WhatsApp Web API with local data storage for privacy and security.
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with your personal WhatsApp account to search messages, list chats, and send messages. It stores all authentication and message data locally using SQLite for privacy and direct multi-device API connection.
      1
      ISC
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to manage WhatsApp instances, send messages and campaigns, handle incoming messages, webhooks, members, and metrics through 30 authenticated tools, with an optional WhatsApp-to-assistant bridge.
      Apache 2.0