Back to Browse

Wazap MCP Server

by User
Developer ToolsModerate6.2Local
Free

WhatsApp for your agent: chats, messages, media, contacts and groups behind MCP tools.

About

WhatsApp for your agent: chats, messages, media, contacts and groups behind MCP tools.

Security Report

6.2
Moderate6.2Moderate Risk

wazap is a well-designed MCP server with thoughtful security architecture, including draft-then-confirm workflows for sends, read-only mode, and per-recipient allowlists. However, moderate concerns exist around the use of an unofficial WhatsApp protocol (Baileys), subprocess execution for setup/config management, and local credential storage. The codebase demonstrates mature security practices in many areas but relies on user discipline for safety in others. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

3 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

process_spawn

Check that this permission is expected for this type of plugin.

system_info

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Refuse every write. The write tools are not registered at all.Optional

Environment variable: WAZAP_READ_ONLY

Where wazap keeps credentials, history and media. Defaults to ~/.wazap.Optional

Environment variable: WAZAP_DATA_DIR

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-razvangirgiz-wazap": {
      "env": {
        "WAZAP_DATA_DIR": "your-wazap-data-dir-here",
        "WAZAP_READ_ONLY": "your-wazap-read-only-here"
      },
      "args": [
        "-y",
        "wazap-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

╭───────────────╮
│        ▄██▀   │   ██╗    ██╗ █████╗ ███████╗ █████╗ ██████╗
│      ▄██▀     │   ██║    ██║██╔══██╗╚══███╔╝██╔══██╗██╔══██╗
│    ▄███████▀  │   ██║ █╗ ██║███████║  ███╔╝ ███████║██████╔╝
│       ▄██▀    │   ██║███╗██║██╔══██║ ███╔╝  ██╔══██║██╔═══╝
│     ▄█▀       │   ╚███╔███╔╝██║  ██║███████╗██║  ██║██║
╰─╮╭────────────╯    ╚══╝╚══╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═╝
  ╰╯                WhatsApp for your AI agent.

M8ven Score

WhatsApp for your AI assistant. wazap is an MCP server that puts your own WhatsApp account — chats, messages, media, contacts, groups — behind 21 tools any MCP client can call, so Claude, ChatGPT, Gemini, Cursor or Codex can read your inbox and draft your replies.

What it does

It links your account as a linked device, the way WhatsApp Web does, and keeps what it sees on this machine. Then you talk to your assistant instead of to a tool:

  • "What did I miss on WhatsApp today?" — one answer across every linked account: who is waiting on a reply, mentions, missed calls, groups condensed.
  • "Find the invoice Dan sent in spring." — search by meaning and by words at once, then open the file.
  • "What did the voice note from mama say?" — voice messages come back as text.
  • "Tell Ana I'll be twenty minutes late." — the assistant shows you the recipient and the exact words, and nothing leaves until you say yes.

Built on Baileys, which speaks the WhatsApp multi-device protocol over a WebSocket. No browser, no phone-number reseller, no account with us — there is no us: wazap runs on your machine.

Get started

The npm package is wazap-mcp; the command it installs is wazap.

npx wazap-mcp setup

That is the whole install. It links your account, finds the MCP clients installed on this machine, writes their config, copies the five skills where that client reads them, and tells you what to restart.

Or have your agent do it. Paste this:

Set up WhatsApp for me: run npx wazap-mcp setup --agent and follow what it prints.

Then ask your assistant: "what did I miss on WhatsApp today?"

Or the path your harness prefers

HarnessFastest path
Claude Code/plugin marketplace add razvangirgiz/wazap, then /plugin install wazap@wazap
Claude Desktopdownload wazap-<version>.mcpb from Releases and double-click it
Gemini CLInpx wazap-mcp connect gemini
Cursorthe Install in Cursor badge, then npx wazap-mcp skills install cursor
Codex CLInpx wazap-mcp connect codex, then npx wazap-mcp skills install codex
A hosted agent (claude.ai, ChatGPT)a URL it signs in to: Keep it running
Anything elsethe MCP entry npx -y wazap-mcp over stdio

Install in Cursor

Each local harness registers the server; a hosted agent gets a URL. Linking the WhatsApp account is a separate, one-time step: npx wazap-mcp login, which shows a QR code to scan from Settings → Linked devices → Link a device, or prints an 8-character code with --phone +15550100.

npx wazap-mcp on its own is safe to run: it prints where you stand and what to do next, and starts no server. When something is off, npx wazap-mcp status is the first thing to run — and it is what tells you if the Node you have is too old: wazap needs 22.16 or newer on the 22 line, or 24.

Every step setup takes, every client it can write, the background service and the upgrade command are in docs/install.md.

The 21 tools

Each one in a line. What every argument means, the workflows behind them and every error code are in docs/tools.md; the assistant itself gets all of it by calling learn first.

ToolKindWhat it does
learnreadThe guide to every tool, id format and error code. Call it first.
get_statusreadConnection, sync, linked accounts, how fresh the history is, webhook delivery, versions.
link_accountreadPair an account from the assistant; returns the 8-character code to type into the phone.
list_chatsreadConversations newest-first: all, unread, groups, individual or archived.
read_messagesreadMessages in a chat, paging back into the phone's history; chat_id: "status" reads the stories.
catch_upread"What did I miss?" across every account, in one call and within a token budget.
searchreadMessages by meaning and by words at once, narrowed by chat, sender or date.
get_messagereadOne message in full: its quote, each reaction with who left it, poll votes, delivery and read receipts.
find_contactreadWho "mama", a nickname, a group name or a number means, before anything is drafted.
list_contactsreadThe phone's address book a page at a time: saved name, number, and when you last talked.
get_group_inforeadParticipants, admins, who may post or edit, join requests, invite link.
get_mediareadA message's media: a voice note as its transcript, a photo as an image, any file saved to disk.
wait_for_messagesreadBlock up to 55 s until a message arrives, then return it with a cursor for the next call.
rememberlocalKeep a note, tags and details about a person, on this machine only. Nothing changes on WhatsApp.
send_messagewriteDraft a message, media, poll, location or forward — and send nothing.
confirm_sendwriteSend that draft, once, after the user has seen the preview and said yes.
edit_messagewriteEdit your own message, within WhatsApp's 15-minute window.
react_to_messagewriteAdd or remove an emoji reaction.
delete_messagewriteRetract your own message for everyone, or delete any message for this account only.
manage_chatwriteArchive, pin, mute, mark read or unread, star, clear, delete, block.
manage_groupwriteCreate, join, rename, add, remove, promote, invite links, join requests, settings.

Voice messages become text when you switch transcription on (docs/voice.md), and search matches meaning as well as words when you switch semantic recall on (docs/recall.md). Both are off by default and both can run entirely on this machine.

Security and privacy

  • Nothing is sent without your yes. send_message only drafts: it returns the recipient and the exact text and touches no network. Only confirm_send sends, and a draft goes out at most once, even across a crash. Draft-then- confirm is a workflow, not independent proof of consent: an agent can call both tools unless the harness makes you approve the second one.
  • Read-only is a real switch. With WAZAP_READ_ONLY=1, or wazap config writes off, the write tools are not registered at all — the assistant never sees them, so it cannot message anyone from your number even by mistake. The Claude Desktop bundle ships read-only ticked.
  • Who an account may message can be pinned to a list: wazap config send allow +15550100,…, or deny for the reverse. The rules are checked when a message is drafted and again when it is confirmed (docs/send-rules.md).
  • Writes are rate limited to 20 a minute per account, because sending faster than a human is how accounts get banned.
  • The data stays here. Credentials, messages, media and notes live in ~/.wazap, 0700, with credentials 0600. There is no wazap account, no server of ours and no telemetry. What does leave the machine: WhatsApp itself; the npm registry, for the version check; Hugging Face, when you ask for a transcription or embedding model; the transcription API, only if you chose the openai provider instead of the local one; and your own webhook URL, if you configured one (docs/data.md).
  • Some people can be kept out of it. Tag someone #private and their words stay out of everything the assistant did not ask about them by name, and the outbound webhook never posts them. Tag them #no-catchup and their chat is skipped entirely.
  • What it does not do. There is no bulk send, no scheduler and no campaign tool. It never marks anything read on WhatsApp on its own. Text it sends goes out without a link preview, and nothing — not wazap, not Baileys — fetches the page.

Findings, threat model and the limits of each of these are in docs/security-audit.md.

Known limitations

  • The protocol is unofficial. wazap talks to WhatsApp through Baileys, a reverse-engineered implementation of the WhatsApp multi-device protocol. This is not the WhatsApp Business API, Meta does not support it, and WhatsApp can change the protocol without warning — a change can break wazap until Baileys catches up. An account that sends in bulk, or sends to people who did not ask to hear from it, can be restricted or banned, and that is not recoverable from here. What wazap does about it is the whole of the section above: sends are drafted and confirmed one at a time, writes are capped at 20 a minute per account, an account can be locked to a list of recipients or to reading only, and there is no bulk or scheduled send to reach for. None of that is a guarantee, and the risk is yours.
  • How a model behaves with the tools is measured on Claude only. The evaluation of how an assistant uses them (eval/: 58 cases, each run three times, with the sends that must never happen counted apart) has been run on Claude. ChatGPT, Gemini, Cursor and Codex connect and get the same 21 tools, but nobody has measured them yet, so what the section above promises is the server's doing, not the model's. The manual protocol for ChatGPT is eval/chatgpt-protocol.md.
  • Media keys expire. WhatsApp drops old attachments from its servers, so get_media on an old message returns MEDIA_UNAVAILABLE.
  • History is what the phone syncs. wazap sees the history WhatsApp hands the linked device, not your full phone archive. read_messages with before asks for more, within whatever WhatsApp still keeps.
  • @lid ids. Newer accounts are addressed by a privacy id rather than a phone number. wazap translates them back to phone numbers when it has learned the mapping, and passes the @lid through when it has not.
  • Names come from the phone's address book. WhatsApp delivers it as an app state sync, and only to a connection asking for it from scratch. If contacts read as phone numbers and get_status shows contacts_named: 0, find_contact asks for it once, and wazap contacts resync asks again while no server runs.
  • Calls are WhatsApp calls only. A call shows up as a message with type: "call", carrying its kind, direction, outcome and duration. WhatsApp's own call log and the missed-call notices arrive on their own; a call that starts and ends while wazap is running is recorded live, so calls placed or received while it is stopped can be missing entirely. A cellular call from the phone's dialler is never visible, on any device.
  • Your phone must stay reachable. A linked device stops receiving once the phone has been offline long enough; get_status says so in hint.

What 1.0 guarantees — which names, shapes and settings are promised not to move, and which are not — is in docs/stability.md.

Documentation

docs/install.mdEvery step of setup, each client connect writes, the background service, expose, upgrading, and the five skills
docs/tools.mdThe 21 tools in full: catching up, finding people, sending once, keeping someone private, and every error code
docs/voice.mdVoice messages as text: whisper.cpp here, or an OpenAI-compatible API
docs/recall.mdSemantic recall: search by meaning, with a local embedding model
docs/data.mdThe data directory, the account database, wazap backup, the copy an upgrade takes, deleted and disappearing messages, and upgrading from 0.21
docs/accounts.mdSeveral WhatsApp accounts in one wazap, and several MCP clients on one server
docs/send-rules.mdRead-only mode, per-account send rules, link previews and media processing
docs/self-host.mdHTTP mode, systemd, Docker, tunnels, reverse-proxy trust and the OAuth server hosted agents sign in to
docs/api-and-webhooks.mdBuilding a product on wazap: static bearer tokens in, signed webhook events out
docs/settings.mdEvery WAZAP_* setting, its default and what sets it
docs/security-audit.mdThe audit report
CHANGELOG.mdWhat changed, release by release

Development

npm install
npm run typecheck
npm test                       # builds, then runs node --test
node test/smoke-stdio.mjs      # drives the built binary over MCP stdio
npm run dev -- status          # run from source with tsx

npm test needs no WhatsApp session. The stdio smoke test spawns the built binary against a throwaway data directory and checks that an unlinked install still answers initialize, tools/list and get_status.

AGENTS.md is the contributor's map: the layout, the rules that must never break, the release procedure and the knobs only tests use. Issues and pull requests go to github.com/razvangirgiz/wazap.

MIT licensed.

Reviews

No reviews yet

Be the first to review this server!