Skip to content
MCP server

WhatsApp MCP server (wacli)

MCP server that lets AI agents read and reply to your WhatsApp chats via a linked device

Runs locally

WhatsApp MCP server (wacli) is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.1.2

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add wacli-mcp -- npx -y wacli-mcp

Add --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": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "wacli-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add wacli-mcp -- npx -y wacli-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.wacli-mcp]
command = "npx"
args = ["-y", "wacli-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user wacli-mcp npx -- -y wacli-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "wacli-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "wacli-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About WhatsApp MCP server (wacli)

Connects an AI agent such as Claude Code or Codex to a WhatsApp account that has been paired through the open-source wacli client. The agent can list chats, search messages and contacts, download photos, voice notes and documents, and send text replies. Reads come from a local SQLite copy of the messages that is refreshed before reads, so the agent works against data kept on your own computer.

Voice notes and videos can optionally be transcribed on your machine with faster-whisper, so audio is not sent to an outside transcription service. The server communicates with the agent over stdio only and opens no network port. Sending can be left to the agent's normal tool approvals or switched to a server-side confirmation prompt that shows the real recipient and full text before anything goes out.

It suits people who want an agent to summarise chats, find a shared file or draft and send quick replies. The project labels itself alpha software, and wacli is not an official WhatsApp client, so an account linked this way can be restricted by WhatsApp.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 8 tools changes data.

From the server's own tool labels and tool names; not verified by us.

whatsapp_statusName suggests: reads
Checks that wacli is installed, paired, and has a readable store.
list_chatsName suggests: reads
Lists chats by recent activity with JIDs and unread counts.
list_messagesName suggests: reads
Returns a chat's messages, newest first, with optional transcripts.
search_messagesName suggests: reads
Full-text search across messages, optionally within one chat or sender.
get_message_contextName suggests: reads
Returns the messages around one message.
search_contactsName suggests: reads
Finds contacts by name or number and returns their JIDs.
get_mediaName suggests: reads
Downloads attachments from up to 20 messages and returns their paths.
send_textName suggests: changes
Sends a text message, optionally as a reply, to a chat JID or phone number.

What it does

Chat and message search
Lists chats by recent activity and runs full-text search across messages, optionally within one chat or sender.
Attachment download
Saves photos, voice notes, videos and documents to a local cache folder and returns their paths.
Optional local transcription
Transcribes voice notes and videos on your computer using faster-whisper when the extra is installed.
Confirmed sending
Can require an explicit yes through an MCP prompt that shows the recipient and full text before each send.
Read-only mode
Hides the send tool and skips syncing so the server only reads from the local copy.
Local-only transport
Talks to the agent over stdio and opens no network listener.

Good for

  • Ask an agent what a contact said in the last hour across chats
  • Find a document or photo that someone sent in a WhatsApp conversation
  • Transcribe voice notes from a chat into text an agent can read
  • Draft and send a short reply to a recent message after confirming it
  • Pull unread chats into a daily summary for review

Pricing

Open source

Free and MIT licensed; self-hosted on your machine.

More servers for the same service

WhatsApp MCP server (wacli) FAQ

Does transcription send audio to an external service?

No. Transcription runs faster-whisper on the user's computer, so voice notes are not sent to a transcription service.

Can the agent send messages without my approval?

By default the agent and its client decide when to send, like any other tool. A server confirmation mode can be enabled so that each send requires an explicit yes in a prompt.

What do I need before installing?

wacli 0.26 or later paired with your WhatsApp account, plus uv, pipx with Python 3.11 or later, or Node.js 18 or later.

Which clients can use WhatsApp MCP server (wacli)?

Any MCP client that can run a stdio server. The setup guide covers Claude Code and Codex CLI specifically.

Is WhatsApp MCP server (wacli) free?

Yes. WhatsApp MCP server (wacli) is open source, so you can use and self-host it for free.

How do I add WhatsApp MCP server (wacli) to Claude Code?

Run this command in your terminal: claude mcp add wacli-mcp -- npx -y wacli-mcp

What are the best alternatives to WhatsApp MCP server (wacli)?

The closest alternatives to WhatsApp MCP server (wacli) are WACrew · WhatsApp MCP server, Whatsapp MCP, WhatsApp Connect, WhatsApp MCP and WhatsApp MCP.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers