WhatsApp LLM

v1.0.0Communicationstable

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

communitiesmcpmcp-serverwhatsappwhatsapp-api
Share:
158
Stars
0
Downloads
0
Weekly
0/5

What is WhatsApp LLM?

WhatsApp LLM is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to whatsapp bot that can participate in group conversations, powered by ai. the bot monitors group messages and responds when mentioned.

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

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A WhatsApp bot that can participate in group conversations,

Use Cases

A WhatsApp bot that can participate in group conversations, powered by AI. The b
ilanbenb

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx wa-llm

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use WhatsApp LLM

WhatsApp LLM (wa_llm) is a self-hosted WhatsApp bot that monitors group conversations and responds intelligently when mentioned, powered by Claude AI via the Anthropic API. It uses vector embeddings and PostgreSQL to maintain conversation context, can generate AI-powered summaries of group discussions, and provides a REST API for triggering summaries and loading knowledge base topics. Users deploy it to add an AI assistant to WhatsApp groups without sharing access to a third-party service.

Prerequisites

  • Docker and Docker Compose installed (recommended deployment method)
  • An Anthropic API key (format: sk-ant-...) for Claude AI responses
  • A Voyage AI API key for vector embeddings (VOYAGE_API_KEY)
  • A PostgreSQL database accessible via connection string
  • A WhatsApp account to authenticate the bot via QR code scan
1

Clone the repository

Clone the wa_llm repository to your server or local machine.

git clone https://github.com/ilanbenb/wa_llm.git
cd wa_llm
2

Configure environment variables

Copy the example environment file and fill in your credentials. All required keys must be set before starting the containers.

cp .env.example .env
# Edit .env with your values:
# ANTHROPIC_API_KEY=sk-ant-your-key
# VOYAGE_API_KEY=your-voyage-key
# DB_URI=postgresql://user:password@host:5432/dbname
# WHATSAPP_HOST=http://localhost:3000
# WHATSAPP_BASIC_AUTH_USER=admin
# WHATSAPP_BASIC_AUTH_PASSWORD=your-password
3

Start the services with Docker Compose

Launch all services (WhatsApp Web API, bot, and database) using Docker Compose for development.

docker compose up -d
4

Scan the WhatsApp QR code

Open a browser and navigate to localhost:3000 to see the WhatsApp Web QR code. Scan it with the WhatsApp app on your phone (Settings → Linked Devices → Link a Device) to authenticate the bot.

5

Activate the bot for specific WhatsApp groups

After authentication, use the PostgreSQL database to set 'managed = true' for the WhatsApp groups you want the bot to monitor. Only groups with this flag enabled will receive bot responses and summaries.

6

Verify the bot is working

Mention the bot in a managed WhatsApp group. It should respond using Claude AI. You can also trigger a summary via the REST API.

# Trigger a group summary via REST API:
curl -X POST http://localhost:8000/trigger_summarize_and_send_to_groups

WhatsApp LLM Examples

Client configuration

This server is a standalone WhatsApp bot, not a typical MCP server added to a client config. Below is the .env configuration structure for deployment.

{
  "mcpServers": {
    "wa-llm": {
      "command": "npx",
      "args": ["wa-llm"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-your-key",
        "VOYAGE_API_KEY": "your-voyage-api-key",
        "DB_URI": "postgresql://user:password@localhost:5432/wa_llm",
        "WHATSAPP_HOST": "http://localhost:3000",
        "WHATSAPP_BASIC_AUTH_USER": "admin",
        "WHATSAPP_BASIC_AUTH_PASSWORD": "your-password",
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

Prompts to try

Interact with the bot in a WhatsApp group by mentioning it, or use the REST API endpoints for automation.

- Mention the bot in a group: "@bot can you summarize what we discussed today?"
- "@bot what did we decide about the project deadline?"
- REST API: POST /load_new_kbtopic to load a knowledge base topic for informed answers
- REST API: POST /trigger_summarize_and_send_to_groups to push a summary to all managed groups
- DM the bot 'opt-out' to disable summary notifications for your account

Troubleshooting WhatsApp LLM

QR code does not appear at localhost:3000

Ensure the WhatsApp Web API container started successfully by checking 'docker compose logs'. The WHATSAPP_HOST variable should match the container's network address. If running on a remote server, forward port 3000 via SSH tunneling: 'ssh -L 3000:localhost:3000 user@server'.

Bot does not respond in WhatsApp groups

Verify that the group has 'managed = true' in the PostgreSQL database. Check ANTHROPIC_API_KEY is valid and has available quota. Review logs with LOG_LEVEL=DEBUG to see incoming message processing and any API errors.

Vector embedding or similarity search fails

VOYAGE_API_KEY must be set and valid for the Voyage AI embedding service. Verify the PostgreSQL database has the pgvector extension installed. Check DB_URI is correct and the database is reachable from the Docker network.

Frequently Asked Questions about WhatsApp LLM

What is WhatsApp LLM?

WhatsApp LLM is a Model Context Protocol (MCP) server that whatsapp bot that can participate in group conversations, powered by ai. the bot monitors group messages and responds when mentioned. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install WhatsApp LLM?

Follow the installation instructions on the WhatsApp LLM GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with WhatsApp LLM?

WhatsApp LLM works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is WhatsApp LLM free to use?

Yes, WhatsApp LLM is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "wa-llm": { "command": "npx", "args": ["-y", "wa-llm"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use WhatsApp LLM?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides