Wa LLM

Messaging and emailData and AI

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

Your AI app calls the Wa LLM MCP server, which does the messaging and email and data and AI work and sends the result back to the chat.

About Wa LLM

Wa LLM is a community MCP server from ilanbenb, filed in our directory under messaging and email and data and ai. A WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned.

At a glance

Publisher
ilanbenb (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
174

How to set up Wa LLM

  1. Follow the install steps in the Wa LLM README; it is written in Python, so have that toolchain ready.
  2. Check the Wa LLM README for keys or settings; the registry lists none that Wa LLM requires.
  3. Add Wa LLM to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Wa LLM tools to confirm the connection.
  5. Run one read-only task with Wa LLM first, and keep your app asking before each tool call until the results look right.

Wa LLM compared with similar servers

  • Nitrosend by nitrosend has fewer GitHub stars than Wa LLM (172 against 174); both are community servers, and Nitrosend runs as a remote server and Wa LLM runs on your own machine.
  • Email (codefuturist) by codefuturist has fewer GitHub stars than Wa LLM (174 against 174); both are community servers, and both run locally.
  • Wechat DevTools by WaterTian has fewer GitHub stars than Wa LLM (172 against 174); both are community servers, and both run locally.

Before you connect Wa LLM

  • Give Wa LLM its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Wa LLM tool call until you trust what it does with them.
  • Treat text that Wa LLM fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Wa LLM on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Wa LLM

How marketing and sales teams put Wa LLM to work, by company size. Pick the size closest to yours and start Wa LLM on one use case.

Small business

  • A small team can have Wa LLM summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Wa LLM and send them only after a read, keeping the personal tone customers expect.
  • A small team can use Wa LLM to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Wa LLM runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Wa LLM to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Wa LLM so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Marketing ops can connect Wa LLM to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Start Wa LLM on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can deploy Wa LLM with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Wa LLM to find what employees ask most across channels and answer it once, in the right place.
  • Enterprises can run Wa LLM inside their own cloud and data boundary, so models and data stay where governance requires.
  • Wa LLM is a community server, so have security review the code and pin a version before Wa LLM touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Wa LLM README

From ilanbenb/wa_llm on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

📱 WhatsApp Group Summary Bot

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

Questions about Wa LLM

What is the Wa LLM MCP server?

A WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned. Wa LLM is maintained by ilanbenb on GitHub at ilanbenb/wa_llm, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Wa LLM MCP server?

Wa LLM doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (ilanbenb/wa_llm). Like most servers, Wa LLM ends with a command or URL you paste into your AI app's MCP config.

Does Wa LLM need an API key?

The registry lists no required keys for Wa LLM. Check the Wa LLM README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Wa LLM an official MCP server?

No. Wa LLM is a community server maintained by ilanbenb. Community servers can be excellent; read the code and the open issues before you give Wa LLM access to company data.

What license is Wa LLM under?

Wa LLM is released under the MIT license, according to its GitHub repository. The license covers the code of Wa LLM; the service it connects to has its own terms.