Softagon Relay
OfficialConnects to WhatsApp Web as a self-hosted gateway, supporting QR session pairing, session status/logout/delete, chat listing, message search and retrieval, sending text messages, and retrieving voice-note transcriptions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Softagon Relay
Connect your apps and local AI agents to WhatsApp without spinning up Chromium, Node.js, PostgreSQL, Redis, or external transcription APIs.
Self-hosted WhatsApp Web gateway, embedded Web Console, and native local MCP Server in a single Rust container (~55 MB).
Docs: Português (BR) · English · Español · Français · Bahasa Indonesia · Basa Betawi · Basa Sunda · Basa Jawa · Hata Batak Toba · Bahasa Melayu · Changelog & Roadmap · Contributing · Security
Quick Start (One-Line Docker Run)
KEY="$(openssl rand -hex 32)" && echo "RELAY_API_KEY=$KEY" && docker run -d --name softagon-relay --restart unless-stopped -p 127.0.0.1:8080:8080 -v relay-data:/data -e RELAY_API_KEY="$KEY" softagon/relay:latestBinds to
127.0.0.1:8080by default and generates a random 256-bit key. Known placeholder keys and keys shorter than 16 characters are rejected at startup.
Open http://localhost:8080/console (or /manager), paste the printed RELAY_API_KEY, type a phone number, and scan the live SVG QR code.

Related MCP server: whatsapp-web-mcp
What It Includes
Single container, zero external databases: native Rust binary (Tokio + Axum) with embedded SQLite (WAL) — no PostgreSQL, Redis, RabbitMQ, or Chromium required.
Embedded Raycast-style Web Console (
/console): keyboard-first Vue 3 UI (⌘K/Ctrl+K), Light/Dark theme, 10 languages — Português (pt-BR), English (en), Español (es), Français (fr), Bahasa Indonesia (id), Basa Betawi (bew, Jakarta & Bekasi), Basa Sunda (su, Bandung & Bekasi), Basa Jawa (jv, Surabaya), Hata Batak Toba (bbc, Medan), and Bahasa Melayu (ms, Medan) — with live SVG QR pairing, test messaging, webhook management, and live OpenAPI runner.Native Local MCP Server (
v0.3.0,rmcp): connects local AI agents (Claude Desktop, Cursor, Antigravity, VS Code) directly to the internalRelayServicewithout going through HTTP REST:STDIO (default local mode):
softagon-relay mcp --stdio(logs routed tostderr).Streamable HTTP:
softagon-relay mcp --httporMCP_HTTP_ENABLED=true— binds to127.0.0.1by default (Docker opt-in:MCP_HTTP_HOST=0.0.0.0+MCP_ALLOW_CONTAINER_BIND=truebehind-p 127.0.0.1:8091:8091),Originvalidation (anti-DNS rebinding), Bearer auth, destructive tools blocked by default, and SQLite audit log (mcp_audit_log).
Versioned HTTP API (
/v1) + OpenAPI 3.2.1: available at/openapi.json,/openapi.yaml, and/docs(Scalar).Signed Webhooks (HMAC-SHA256): persistent SQLite outbox with exponential backoff + jitter and stable UUIDv7 event IDs.
Offline Multilingual Voice-Note Transcription: pure-Rust OGG/Opus decoding (
symphonia+symphonia-opus+rubato, no FFmpeg) +whisper.cpp(lazy-loaded on demand and unloaded after idle timeout).Pluggable Media Storage: Local filesystem (
/data/media) or S3-compatible object storage (AWS S3, Cloudflare R2, MinIO).
Measured Resource Footprint (Real Scenarios)
Measured on 2026-11-25 against softagon/relay:0.3.0 (linux/amd64, compiled with --features whisper) using docker stats --no-stream via scripts/monitor.sh on Docker 29.1.3 / Linux (x86_64):
Scenario | RAM | CPU | Notes |
Boot / Idle (0 paired sessions) | ~4–5 MiB | ~0.05% | Measured right after container start, before pairing |
1 paired WhatsApp session (steady state) | ~38 MiB | ~0.1–0.2% | Measured with 1 real WhatsApp account connected via WebSocket |
Active voice-note transcription ( | ~212–338 MiB | Burst | Model loads lazily on incoming voice note and unloads after |
Docker image size ( | ~55 MB compressed (Docker Hub) | — | Rust binary, Console SPA, SQLite, Opus decoder, |
Architecture note: Prebuilt Docker images currently publish
linux/amd64. Multi-archlinux/arm64support is tracked on our roadmap (you can also build locally on ARM64 withdocker build).
Local MCP Server (AI Agents)
Recommended when
softagon-relayis already running in Docker: enable Streamable HTTP inside the same container so a single process owns the WhatsApp WebSocket and SQLite database. Publish the port only on host loopback (-p 127.0.0.1:8091:8091) and opt in to container bind (-e MCP_HTTP_ENABLED=true -e MCP_HTTP_HOST=0.0.0.0 -e MCP_ALLOW_CONTAINER_BIND=true) — the MCP server still enforces loopbackHost&Originchecks plusAuthorization: Bearer <RELAY_API_KEY>athttp://127.0.0.1:8091/mcp.STDIO via Docker (safe default alongside a running server — reads SQLite without touching active WhatsApp sessions):
{
"mcpServers": {
"softagon-relay": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "relay-data:/data",
"-e", "RELAY_API_KEY",
"softagon/relay:latest",
"mcp", "--stdio"
],
"env": {
"RELAY_API_KEY": "<paste-your-generated-key>"
}
}
}
}Standalone STDIO (no
servecontainer running): add"-e", "MCP_RESTORE_SESSIONS=true"toargsso STDIO reconnects your persisted WhatsApp sessions directly. Never setMCP_RESTORE_SESSIONS=truewhile anothersoftagon-relayserver is already connected to the same/datavolume.
If you prefer running natively without Docker, prebuilt linux-x86_64 binaries are attached to GitHub Releases.
Tools exposed: list_sessions, get_session_status, list_chats, search_messages, get_chat_messages, get_message_transcription, send_text_message, and (disabled unless MCP_ALLOW_DESTRUCTIVE=true + confirm: true) logout_session / delete_session.
Hardened Docker Compose
Use the repository's compose.yaml (read_only: true, cap_drop: ALL, no-new-privileges:true, non-root UID 10001).
cp .env.example .env
# Edit RELAY_API_KEY in .env
docker compose up -dFrequently Asked Questions (FAQ)
How much RAM does Softagon Relay use compared to Chromium-based WhatsApp gateways?
Softagon Relay uses ~4–5 MiB RAM at idle and ~38 MiB RAM with an active WhatsApp WebSocket session in a ~55 MB compressed Docker image, compared to 350–900+ MiB commonly required by headless Chromium/Puppeteer and Node.js stacks.
Does Softagon Relay require PostgreSQL, Redis, RabbitMQ, or FFmpeg?
No. Sessions, messages, webhook delivery retries, and MCP audit logs run on embedded SQLite (WAL), and OGG/Opus voice-note decoding runs in pure Rust (symphonia + rubato) before local whisper.cpp transcription.
Which languages are supported in the Web Console and documentation?
The embedded Web Console and visual guides support 10 languages: Português (BR), English, Español, Français, Bahasa Indonesia, Basa Betawi (Jakarta & Bekasi), Basa Sunda (Bandung & Bekasi), Basa Jawa (Surabaya), Hata Batak Toba (Medan), and Bahasa Melayu (Medan).
How do I connect Claude Desktop, Cursor, Antigravity, or n8n?
AI coding/desktop agents connect via the native MCP Server (softagon-relay mcp --stdio or Streamable HTTP at http://127.0.0.1:8091/mcp). Workflow tools like n8n, Make, or custom backends connect via the versioned /v1 REST API, HMAC-SHA256 webhooks, and /openapi.json.
Transparency on AI-Assisted Development
Softagon Relay was built using AI-assisted software engineering alongside human architecture decisions, code review, security design, and live testing against real WhatsApp accounts. All automated checks (vue-tsc, vite build, cargo fmt, cargo clippy --all-targets -- -D warnings, and integration tests covering REST, SQLite, webhooks, audio decoding, and MCP security) run locally before every push.
Roadmap
Native Desktop App (Tauri — Windows, Linux & macOS): bundle the Rust core, embedded Console, and local MCP Server with a system tray icon so desktop users do not need Docker.
Multi-arch
linux/arm64Docker images for Raspberry Pi, Apple Silicon, and ARM VPS servers.
If you need the Tauri Desktop edition, ARM64 images, or specific MCP tools, open a GitHub Issue and share your OS and use case!
Disclaimer & License
Softagon Relay is an independent, unofficial open-source project built on whatsapp-rust and is not affiliated with, authorized by, or endorsed by Meta or WhatsApp. Review Meta's Terms of Service, deploy behind TLS, and protect backups of /data.
Licensed under the Apache License, Version 2.0 · Maintained by Softagon Sistemas.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your own WhatsApp as an MCP server: read, search and send from any MCP client.
Hosted WhatsApp MCP server: send and read messages from your own linked number. OAuth sign-in.
Drive WhatsApp from any MCP client: pair devices, send text and media, manage contacts and groups.
WhatsApp MCP on your own number: read chats, search contacts, send messages.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that enables interaction with WhatsApp using the Baileys library and Streamable HTTP transport. It supports managing contacts, chats, and messages, while providing a web admin UI for QR code authentication and media handling.4285MIT
- FlicenseBqualityDmaintenanceRead-only MCP server for WhatsApp Web allowing listing chats and reading recent messages, without sending or mutating WhatsApp state.3-
- AlicenseNot gradedqualityCmaintenanceMCP server for WhatsApp that exposes send, read, and media management tools through the waxum REST API gateway, enabling any MCP client to interact with WhatsApp chats and media over stdio.2MIT
- AlicenseBqualityBmaintenanceFull-featured personal WhatsApp MCP server: read and full-text search all chats, send, reply, react, edit and delete, media as raw files, groups and communities, multi-account and live notifications. Rust server with a Go whatsmeow bridge, local SQLite.394MIT