WaWarden
Self-hosted WhatsApp gateway that gives your own AI agents scoped access to one account's
WaWarden is an open-source MCP server for communication. It runs as a hosted remote server, so there is nothing to install locally.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Remotely
- What it can do
- Read-only
- Version
- 1.4.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add wawarden --env WAWARDEN_LISTEN='<WAWARDEN_LISTEN>' --env WAWARDEN_ADMIN_TOKEN_SHA256='<WAWARDEN_ADMIN_TOKEN_SHA256>' -- docker run -i --rm -e WAWARDEN_LISTEN -e WAWARDEN_ADMIN_TOKEN_SHA256 ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635afAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"wawarden": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"WAWARDEN_LISTEN",
"-e",
"WAWARDEN_ADMIN_TOKEN_SHA256",
"ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af"
],
"env": {
"WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>",
"WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"wawarden": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"WAWARDEN_LISTEN",
"-e",
"WAWARDEN_ADMIN_TOKEN_SHA256",
"ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af"
],
"env": {
"WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>",
"WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"wawarden": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"WAWARDEN_LISTEN",
"-e",
"WAWARDEN_ADMIN_TOKEN_SHA256",
"ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af"
],
"env": {
"WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>",
"WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"wawarden": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"WAWARDEN_LISTEN",
"-e",
"WAWARDEN_ADMIN_TOKEN_SHA256",
"ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af"
],
"env": {
"WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>",
"WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add wawarden --env WAWARDEN_LISTEN='<WAWARDEN_LISTEN>' --env WAWARDEN_ADMIN_TOKEN_SHA256='<WAWARDEN_ADMIN_TOKEN_SHA256>' -- docker run -i --rm -e WAWARDEN_LISTEN -e WAWARDEN_ADMIN_TOKEN_SHA256 ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635afOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.wawarden]
command = "docker"
args = ["run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af"]
env = { WAWARDEN_LISTEN = "<WAWARDEN_LISTEN>", WAWARDEN_ADMIN_TOKEN_SHA256 = "<WAWARDEN_ADMIN_TOKEN_SHA256>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"wawarden": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"WAWARDEN_LISTEN",
"-e",
"WAWARDEN_ADMIN_TOKEN_SHA256",
"ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af"
],
"env": {
"WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>",
"WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }Or run: gemini mcp add -s user -e WAWARDEN_LISTEN='<WAWARDEN_LISTEN>' -e WAWARDEN_ADMIN_TOKEN_SHA256='<WAWARDEN_ADMIN_TOKEN_SHA256>' wawarden docker -- run -i --rm -e WAWARDEN_LISTEN -e WAWARDEN_ADMIN_TOKEN_SHA256 ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "wawarden": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WAWARDEN_LISTEN", "-e", "WAWARDEN_ADMIN_TOKEN_SHA256", "ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af" ], "env": { "WAWARDEN_LISTEN": "<WAWARDEN_LISTEN>", "WAWARDEN_ADMIN_TOKEN_SHA256": "<WAWARDEN_ADMIN_TOKEN_SHA256>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
WAWARDEN_LISTENClient listener address inside the container; bind 0.0.0.0:8080 so host loopback port publishing reaches itRequiredWAWARDEN_OWNER_PHONEWhatsApp account phone number in E.164 format permitted to pair (e.g. +15550100001)WAWARDEN_ADMIN_TOKEN_SHA25664-hex-character SHA-256 hash of the admin token from 'wawarden admin init'; enables the admin listenerWAWARDEN_ADMIN_LISTENAdmin listener address inside the container (default 127.0.0.1:8082)WAWARDEN_LOG_LEVELStructured JSON log verbosity levelWAWARDEN_MEDIA_MAX_BYTESMaximum downloadable attachment size in bytes (0 disables media downloads; up to 2147483648)
About WaWarden
WaWarden links to a single personal WhatsApp account as a companion device and keeps its messages in a local archive on your own host. Agents and scripts reach that archive through a REST API or MCP tools, and every client holds its own bearer token that can read only the chats on its allowlist and write only to the chats it is allowed.
The service runs as one process for one owner, under systemd or as a container, and is meant to sit behind a VPN, private network or TLS proxy, since it terminates no TLS itself. Sending is paced and budgeted, and a client only messages chats it has been explicitly granted.
It suits owners who want an assistant such as Claude Code to handle some conversations, and developers who need a stable, scoped API rather than handing an agent the full account. WhatsApp can restrict or ban accounts that link unofficial clients, so the project's ban-risk notes should be read before linking.
Tools this server provides (5)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, all 5 tools only read data.
From the server's own tool labels and tool names; not verified by us.
- get_changesName suggests: reads
- Returns changes since a point in the archive.
- get_chatName suggests: reads
- Returns details for one chat.
- get_messagesName suggests: reads
- Returns messages from a chat.
- list_chatsName suggests: reads
- Lists the chats a client may read.
- search_messagesName suggests: reads
- Searches messages the client may read.
What it does
- Scoped client tokens
- Each client gets an expiring token limited to named read and write chats.
- Local message archive
- Messages are stored on the host before being acknowledged, with revoked and expired text removed from disk.
- REST and MCP access
- Clients read chats, pages of messages and search results over REST or as MCP tools.
- Paced sending
- Text can be sent to permitted chats once per idempotency key, behind a pacer and send budgets.
- Optional attachment downloads
- Media downloads are off by default and can be enabled per client with a size cap.
- Audit and backups
- Client changes are recorded in a hash-chained audit table, and nightly backups are encrypted.
Good for
- Letting an AI coding agent read and reply in a few designated WhatsApp chats
- Building a script that searches personal message history through a scoped token
- Feeding WhatsApp conversations into a self-hosted assistant without exposing the full account
- Keeping a local, encrypted archive of one WhatsApp account on a Linux host
Pricing
Open source
Free and GPL-3.0-or-later licensed; self-hosted.
Prices change. Check wawarden.dortort.dev before you buy.
WaWarden FAQ
Is WaWarden an official WhatsApp API?
No. It is built on an unofficial implementation of WhatsApp's multi-device protocol and is not affiliated with WhatsApp or Meta.
Can WaWarden run for multiple accounts?
No. One process serves one account for its owner and is not a hosted or multi-account service.
Does WaWarden provide TLS or access control?
No. Its listeners speak plain HTTP on loopback, so TLS and network access control must come from a VPN, private subnet or reverse proxy.
How are attachments handled?
Downloads are off by default. When enabled with a size limit, a client created with media permission can fetch attachments on request.
Is WaWarden free?
Yes. WaWarden is open source, so you can use and self-host it for free.
How do I add WaWarden to Claude Code?
Run this command in your terminal: claude mcp add wawarden --env WAWARDEN_LISTEN='<WAWARDEN_LISTEN>' --env WAWARDEN_ADMIN_TOKEN_SHA256='<WAWARDEN_ADMIN_TOKEN_SHA256>' -- docker run -i --rm -e WAWARDEN_LISTEN -e WAWARDEN_ADMIN_TOKEN_SHA256 ghcr.io/dortort/wawarden:v1.4.1@sha256:a9beadf84676a3900fd93098afac9cc042640eecc19b673982c0d63d3a4635af
What are the best alternatives to WaWarden?
The closest alternatives to WaWarden are Whatsapp, wa — safe WhatsApp automation, Guarded WhatsApp, wa2agent and WhatsApp Connect.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.