1. Conduid
  2. Communication
  3. Wa LLM
MCP server · Communication

Wa LLM

A WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned.

Unclaimed MIT last commit 6 months ago mcpcommswhatsapp-botmcp-servercommunitieswhatsappwhatsapp-api
85Excellent

Scored 2 hours ago · breakdown

About Wa LLM

Wa LLM is an MCP server published by ilanbenb in the Communication category: a WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned. It has been installed 0 times through Conduid.

The repository has 143 stars and 55 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx wa-llm

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Wa LLM

Powered by Claude · Grounded in docs

I know everything about Wa LLM. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.4.10v1.4.10 · 19 Aug 2026v1.4.10 (2026-08-19) Bug Fixes Parse bot JID from new gowa device response shape ([#161](https://github.com/ilanbenb/wa_llm/pull/161), [`984b369`](https://github.com/ilanbenb/wa_llm/commit/984b369c2d5f8ad28848cba6a2ea194592c059c1)) Chores…
v1.4.9v1.4.9 · 6 Jul 2026v1.4.9 (2026-07-06) Bug Fixes deps**: Update python non-major dependencies ([#141](https://github.com/ilanbenb/wa_llm/pull/141), [`3864c0e`](https://github.com/ilanbenb/wa_llm/commit/3864c0e52620040f6579b6eea5d8db469725546d)) Build System…
v1.4.8v1.4.8 · 30 Mar 2026v1.4.8 (2026-03-30) Bug Fixes deps**: Update python non-major dependencies ([#139](https://github.com/ilanbenb/wa_llm/pull/139), [`4111f50`](https://github.com/ilanbenb/wa_llm/commit/4111f50bb5f5b3e098274ff0969cff05d58be14f)) Build System…
v1.4.7v1.4.7 · 21 Mar 2026v1.4.7 (2026-03-21) Bug Fixes deps**: Update python non-major dependencies ([#132](https://github.com/ilanbenb/wa_llm/pull/132), [`0c79710`](https://github.com/ilanbenb/wa_llm/commit/0c7971037415beced0b2a710e03b36762375949f)) Build System…
v1.4.6v1.4.6 · 12 Mar 2026v1.4.6 (2026-03-12) Bug Fixes deps**: Update python non-major dependencies ([#125](https://github.com/ilanbenb/wa_llm/pull/125), [`d6464b5`](https://github.com/ilanbenb/wa_llm/commit/d6464b581a76f135c74eaaf19eee7b3cb498e5f3)) Chores…

README

📱 WhatsApp Group Summary Bot

release version Build Image Release

AI-powered WhatsApp bot that joins any group, tracks conversations, and generates intelligent summaries.


Features

  • 🤖 Automated group chat responses (when mentioned)
  • 📝 Smart LLM-based conversation summaries
  • 📚 Knowledge base integration for context-aware answers
  • 📂 Persistent message history with PostgreSQL + pgvector
  • 🔗 Support for multiple message types (text, media, links)
  • 👥 Group management & customizable settings
  • 🔕 Opt-out feature: Users can opt-out of being tagged in summaries/answers via DM.
  • ⚡ REST API with Swagger docs (localhost:8000/docs)

🐳 Docker Compose Configurations

This project includes multiple Docker Compose files for different environments:

File Purpose Usage
docker-compose.yml Default/Development. Builds the application from source code. docker compose up -d
docker-compose.prod.yml Production. Uses pre-built images from GHCR. Recommended for deployment. docker compose -f docker-compose.prod.yml up -d
docker-compose.local-run.yml Local Execution. For running the app on host while services run in Docker. docker compose -f docker-compose.local-run.yml up -d
docker-compose.base.yml Base Configuration. Contains shared service definitions. Do not use directly

📋 Prerequisites

  • 🐳 Docker and Docker Compose
  • 🐍 Python 3.13+
  • 🗄️ PostgreSQL with pgvector extension
  • 🔑 Voyage AI API key
  • 📲 WhatsApp account for the bot

Quick Start

1. Clone & Configure

git clone https://github.com/YOUR_USER/wa_llm.git cd wa_llm

2. Create .env file

  • Copy .env.example to .env and fill in required values.
cp .env.example .env

Environment Variables

Variable Description Default
WHATSAPP_HOST WhatsApp Web API URL http://localhost:3000
WHATSAPP_BASIC_AUTH_USER WhatsApp API user admin
WHATSAPP_BASIC_AUTH_PASSWORD WhatsApp API password admin
VOYAGE_API_KEY Voyage AI key
DB_URI PostgreSQL URI postgresql+asyncpg://user:password@localhost:5432/postgres
LOG_LEVEL Log level (DEBUG, INFO, ERROR) INFO
ANTHROPIC_API_KEY Anthropic API key. You need to have a real anthropic key here, starts with sk-....
LOGFIRE_TOKEN Logfire monitoring key, You need to have a real logfire key here
DM_AUTOREPLY_ENABLED Enable auto-reply for direct messages False
DM_AUTOREPLY_MESSAGE Message to send as auto-reply Hello, I am not designed to answer to personal messages.

3. Starting the Services

Option A: Development (Build from source)

docker compose up -d

Option B: Production (Use pre-built images)

docker compose -f docker-compose.prod.yml up -d

4. Connect your device

  1. Open http://localhost:3000
  2. Scan the QR code with your WhatsApp mobile app.
  3. Invite the bot device to any target groups you want to summarize.
  4. Restart service: docker compose restart wa_llm-web-server

5. Activating the Bot for a Group

  1. open pgAdmin or any other posgreSQL admin tool

  2. connect using

    Parameter Value
    Host localhost
    Port 5432
    Database postgres
    Username user
    Password password
  3. run the following update statement:

        UPDATE public."group"
        SET managed = true
        WHERE group_name = 'Your Group Name';
    
  4. Restart the service: docker compose restart wa_llm-web-server

6. API usage

Swagger docs available at: http://localhost:8000/docs

Key Endpoints

  • /load_new_kbtopic (POST) Loads a new knowledge base topic, prepares content for summarization.
  • /trigger_summarize_and_send_to_groups (POST) Generates & dispatches summaries, Sends summaries to all managed groups

7. Opt-Out Feature

Users can control whether they are tagged in bot-generated messages (summaries, answers) by sending Direct Messages (DMs) to the bot:

Command Description
opt-out Opt-out of being tagged. Your name will be displayed as text instead of a mention.
opt-in Opt-in to being tagged (default).
status Check your current opt-out status.

Note: This only affects messages generated by the bot. It does not prevent other users from tagging you manually.


🚀 Production Deployment

To deploy in a production environment using the optimized configuration:

  1. Create Production Environment File: Copy .env.example to .env.prod and configure your production secrets.

    cp .env.example .env.prod
    
  2. Start Services:

    docker compose -f docker-compose.prod.yml up -d
    

This configuration includes:

  • Automatic restart policies (restart: always)

Developing

Setup

Install dependencies using uv:

uv sync --all-extras --dev

Development Commands

The project uses Poe the Poet for task automation with parallel execution:

# Run all checks (format, then parallel lint/typecheck/test)
uv run poe check

# Individual tasks
uv run poe format     # Format code with ruff
uv run poe lint       # Lint code with ruff
uv run poe typecheck  # Type check with pyright
uv run poe test       # Run tests with pytest

# List all available tasks
uv run poe

The check command runs formatting first, then executes linting, type checking, and testing in parallel for faster execution.

Key Files

  • Main application: app/main.py
  • WhatsApp client: src/whatsapp/client.py
  • Message handler: src/handler/__init__.py
  • Database models: src/models/

Architecture

The project consists of several key components:

  • FastAPI backend for webhook handling
  • WhatsApp Web API client for message interaction
  • PostgreSQL database with vector storage for knowledge base
  • AI-powered message processing and response generation

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

LICENCE

README mirrored from the source repository 2 hours ago. The original is authoritative.

Questions

About Wa LLM

How do I install Wa LLM?

Run npx wa-llm, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Wa LLM safe to use with an AI agent?

Its trust score is 85 out of 100 (excellent). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Wa LLM still maintained?

Yes — the latest release is v1.4.10 (19 Aug 2026), and the last commit was 6 months ago. The repository has 143 stars and 0 open issues.