Back to Browse

Wazap MCP Server

Developer ToolsUse Caution3.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

3.2
Use Caution3.2High Risk

This WhatsApp MCP server has a clear purpose and reasonable permissions alignment, but contains several security concerns that warrant attention. Key issues include: (1) sensitive credentials stored in plaintext in .env files with insufficient protection guidance, (2) potential for unauthorized message sending through insufficient auth validation, (3) input validation gaps in message sending functions, and (4) sensitive data logging practices. The architecture itself is sound, but implementation details expose the linked WhatsApp account to misuse if authentication is compromised. Supply chain analysis found 4 known vulnerabilities in dependencies (0 critical, 4 high severity). Package verification found 1 issue.

3 files analyzed · 16 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.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

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

process_spawn

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

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this 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. An MCP server that puts your WhatsApp account — chats, messages, media, contacts, groups — behind 24 tools any MCP client can call. Pairing-code login, no browser, no phone-number reseller, ~20 MB of RAM.

Built on Baileys, which speaks the WhatsApp multi-device protocol over a WebSocket.

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 and tells you what to restart.

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 CLIgemini extensions install https://github.com/razvangirgiz/wazap
Cursorthe Install in Cursor badge, then npx wazap-mcp skills install cursor
VS Codethe Install in VS Code badge
Codex CLInpx wazap-mcp connect codex, then npx wazap-mcp skills install codex
OpenCodenpx wazap-mcp connect opencode, then npx wazap-mcp skills install opencode
Windsurfnpx wazap-mcp connect windsurf
Anything elsethe MCP entry npx -y wazap-mcp over stdio, or a self-hosted URL

Each of those registers the server. Linking the WhatsApp account is a separate, one-time step in every one of them: npx wazap-mcp login.

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 agent: "what did I miss on WhatsApp today?"

Below are the steps setup runs for you. Each is still its own command when you want to run it by hand.

npx wazap-mcp login shows a QR code; scan it from Settings → Linked devices → Link a device. No camera handy, or linking over SSH? npx wazap-mcp login --phone +15550100 prints an 8-character code you type under Link with phone number instead. It ends by asking whether the agent may send messages; the answer is no unless you say yes, and npx wazap-mcp config writes on changes it later.

npx wazap-mcp connect claude-code writes the MCP entry for one client. The table under Connect a client has the rest.

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 — it checks Node, the data directory, the lock, the credentials and whether a newer version is out, and prints the fix next to anything broken.

Connect a client

wazap connect <client> writes the entry for you, keeping whatever else is in the file and backing it up once before the first change. --dry-run shows what it would write.

ClientWhat connect writes
claude-coderuns claude mcp add whatsapp for you
claude-desktopclaude_desktop_config.json in the Claude application directory
cursor~/.cursor/mcp.json
codex[mcp_servers.whatsapp] in ~/.codex/config.toml
vscode./.vscode/mcp.json, for the current workspace
gemini~/.gemini/settings.json
windsurf~/.codeium/windsurf/mcp_config.json
opencodemcp.whatsapp in ~/.config/opencode/opencode.json
anything remoteclient's MCP URL field: https://your-host/mcp with header Authorization: Bearer <token>, or just the URL once OAuth is on (see Self-host)

Other MCP clients

Cursor and VS Code install from a link:

Install in Cursor Install in VS Code

Both carry the same entry connect writes. Where a custom scheme is stripped before you can click it, VS Code also takes the https form. node scripts/badges.mjs reprints all three.

Any other MCP client works the same way: the command is npx -y wazap-mcp, the transport is stdio. Tell the agent to call learn first — it returns the id formats, the workflows and every error code with what to do about it.

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

Claude Desktop, Cursor, Gemini CLI and Windsurf take exactly that. VS Code nests it under servers and wants a "type": "stdio" alongside command. Codex CLI is TOML:

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

OpenCode takes the command and its arguments as one array, under mcp:

{
  "mcp": {
    "whatsapp": { "type": "local", "command": ["npx", "-y", "wazap-mcp"] }
  }
}

The skills/ folder follows the Agent Skills format, so Codex, Cursor and other skill-aware agents can load the same five skills.

Gemini CLI

gemini extensions install https://github.com/razvangirgiz/wazap

That reads gemini-extension.json at the repo root, so it registers the MCP server and loads GEMINI.md — the five skills below, concatenated, because the Gemini CLI takes one context file per extension rather than a skills directory. wazap connect gemini writes the server alone, without the context.

GEMINI.md is generated: npm run context:build rebuilds it from skills/*/SKILL.md, and a test fails if the two have drifted, so a workflow is only ever edited in its skill.

Claude Desktop, without a terminal

Download wazap-<version>.mcpb from Releases and double-click it. Claude Desktop installs the server, its Node dependencies and the icon, and shows two settings: Read-only, ticked, and Data directory, empty. wazap connect claude-desktop does the same job by editing claude_desktop_config.json, and needs npx at launch; the bundle does not.

Linking the account still needs a terminal once: npx wazap-mcp login. The bundle reads the session that login writes to ~/.wazap.

Untick Read-only to let Claude send. It ships ticked because a bundle that can message people from your number before you have said so is the wrong default, and because the setting cannot be left unanswered: the manifest format has no way to omit an argument, so the box you see is the answer the server gets.

Build it yourself with npm run bundle:mcpb, which stages dist/, the manifest, the icon and a fresh production node_modules, then packs them with @anthropic-ai/mcpb.

Tools

ToolKindWhat it does
learnreadThe guide to every tool, id format and error code. Call it first.
get_statusreadConnection status, sync state, linked account, named-contact count, versions, data dir.
list_chatsreadConversations newest-first; filter all/unread/groups/individual/archived.
read_messagesreadMessages in a chat; before pages further back, pulling older history from the phone; types narrows to one or more message types, e.g. ["call"].
get_recent_messagesreadEverything from the last N hours, grouped by chat. The catch-up tool. include_system adds WhatsApp's own notices, types narrows to one or more message types.
search_messagesreadText search across the locally held messages.
get_messagereadOne message in full, with its quoted message and reactions.
search_contactsreadFind contacts by name or number.
sync_contactsreadFetch the phone's address book from WhatsApp again, when names are missing.
get_contactreadName, number, about text, profile picture.
get_group_inforeadParticipants, admins, announcement mode, invite link (when you are admin).
download_mediareadSave an attachment to disk; small images also come back inline.
transcribe_audioreadTurn a voice note or audio message into text, with the local or the API provider.
send_messagewriteSend text, optionally as a reply, with @-mentions.
send_mediawriteSend an image, video, audio, voice note or document from a path or URL.
send_pollwriteSend a poll with 2–12 options.
send_locationwriteSend a map pin.
edit_messagewriteEdit your own message, within WhatsApp's 15-minute window.
react_to_messagewriteAdd or remove an emoji reaction.
forward_messagewriteForward a message to another chat.
delete_messagewriteRetract your own message, within WhatsApp's 2-day window.
manage_chatwriteArchive, pin, mute (8h by default), mark read/unread.
create_groupwriteCreate a group and add participants.
manage_groupwriteAdd, remove, promote, demote, leave, rename, invite links.

Every message comes back with a non-empty text: media and system messages carry a placeholder such as [image] caption, [voice message · 0:42], [deleted] or [poll] Pizza or pasta?. Timestamps are ISO 8601 with the machine's UTC offset, alongside a human age like 2h ago.

Voice messages

A voice note is the one message an agent cannot read. Switch transcription on and it becomes text: [voice message · 0:42] "sunt la notar, ajung în 20 de minute", with the bare words also in a transcript field. get_recent_messages and search_messages see that text, so a voice note becomes findable by what was said in it.

Pick a provider once, in wazap setup or later:

wazap config transcribe local     # free and private, one 574 MB model on disk
wazap config transcribe openai    # cheap and fast, the audio leaves this machine
wazap config transcribe off
localopenai
Runswhisper.cpp, hereany OpenAI-compatible /audio/transcriptions
Costsnothingper minute of audio, on your key
Privacythe audio never leaves this machinethe audio leaves this machine
Needswhisper-cpp and ffmpeg, plus a modelan API key

Local, with whisper.cpp

brew install whisper-cpp ffmpeg      # macOS; elsewhere build whisper.cpp, install ffmpeg from your package manager
wazap transcribe download            # fetch and verify the model
wazap transcribe test recording.ogg  # prove it before you trust it

Models land in <data-dir>/models/ and are checked against a SHA-256 pinned in the source; an interrupted download resumes where it stopped.

WAZAP_WHISPER_MODELFileSize
turbo (default)ggml-large-v3-turbo-q5_0.bin574 MB
large-v3ggml-large-v3-q5_0.bin1.08 GB
mediumggml-medium-q5_0.bin539 MB

turbo is the default because it is the smallest model that still gets Romanian right. medium and below drop diacritics and mangle names, which is worse than no transcript at all: a missing transcript is a question, a wrong name is a wrong answer. large-v3 is the same accuracy for several times the wait.

An API, OpenAI-compatible

wazap config transcribe openai asks for the key without echoing it and stores it in <data-dir>/.env. The default endpoint is OpenAI; Groq works unchanged:

WAZAP_TRANSCRIBE_URL=https://api.groq.com/openai/v1
WAZAP_TRANSCRIBE_MODEL=whisper-large-v3-turbo

With this provider the audio leaves your machine. Every voice note wazap transcribes is uploaded to that endpoint. If that is not acceptable, use local, which uploads nothing.

The key is treated as a secret rather than as a setting:

  • It is never accepted as a command-line argument, because an argument lands in your shell history and in ps.
  • The prompt echoes nothing, not even asterisks.
  • It is stored only in <data-dir>/.env, mode 0600.
  • status, status --json, config and get_status show at most api key: set (…abcd).
  • A provider's own error message has the key stripped out of it before wazap prints it.
  • A plain-http WAZAP_TRANSCRIBE_URL is refused unless it points back at this machine.

Without being asked

With a provider configured, incoming voice notes of up to ten minutes are transcribed in the background as they arrive, one at a time, never holding up a message. The transcript is cached by message id and persisted, so a voice note is transcribed once and not again after a restart. Audio files are left alone, since one can be an hour long; call transcribe_audio(message_id) for those. WAZAP_TRANSCRIBE_AUTO=0 keeps the tool and stops the background work.

Skills

wazap ships five Agent Skills that teach an agent the workflows behind the tools, not just the tools:

SkillWhat the agent does
wazap-setupDiagnose with wazap status, link by QR or pairing code, connect a client with wazap connect, repair an expired session
whatsapp-inbox"What did I miss?" Triage into needs you / FYI / noise, ranked, plus forgotten replies. Read-only
whatsapp-recall"Find the invoice Dan sent." Search with query variants, page back in time, download and read the file. Read-only
whatsapp-groupsCatch up on a 300-message group: decisions, dates, what is asked of you. Read-only
whatsapp-sendDraft in the chat's own register, show recipient and text, send only after the user says yes

Install everything (server and skills) as a Claude Code plugin:

/plugin marketplace add razvangirgiz/wazap
/plugin install wazap@wazap

Every other harness gets them with one command:

npx wazap-mcp skills install codex     # or cursor, opencode, agents
HarnessWhere the five directories land
claude-codenowhere — the plugin above already carries them
codex~/.agents/skills/, the directory Codex documents for user skills. Cursor and OpenCode read it too
cursor~/.cursor/skills/
opencode~/.config/opencode/skills/
agents./.agents/skills/, in the current project, for anything that reads the cross-tool convention

Re-running overwrites, so an upgrade is the same command. --dry-run lists what it would copy.

Errors

Every failure is a structured { error, message, fix } rather than a stack trace, so an agent can decide whether to retry, ask the user, or stop.

CodeMeaning
NOT_LINKEDNo account linked. Run npx wazap-mcp login.
SESSION_EXPIREDUnlinked from the phone. Run npx wazap-mcp login.
SESSION_CORRUPTCredentials unreadable. Run npx wazap-mcp logout then login.
NOT_CONNECTEDStill connecting or reconnecting.
SYNC_IN_PROGRESSHistory sync has not finished; results may be partial.
INVALID_PHONENumber is not in international format.
INVALID_IDNot a WhatsApp chat, contact or group id.
NOT_ON_WHATSAPPThat number has no WhatsApp account.
CHAT_NOT_FOUND / MESSAGE_NOT_FOUND / CONTACT_NOT_FOUND / GROUP_NOT_FOUNDUnknown id.
NOT_A_PARTICIPANT / NOT_ADMIN / GROUP_ANNOUNCEMENT_ONLYGroup permissions.
MEDIA_UNAVAILABLEWhatsApp expired the file, or it was never synced here.
FILE_NOT_FOUND / FILE_TOO_LARGE / URL_FETCH_FAILEDOutbound media problems.
TEXT_TOO_LONGOver WhatsApp's message limit.
EDIT_WINDOW_EXPIRED / RETRACT_WINDOW_EXPIRED / NOT_OWN_MESSAGEWhatsApp's own limits on editing and deleting.
READ_ONLYwazap is running read-only.
RATE_LIMITEDToo many writes; fix says how long to wait.
TIMEOUT / WHATSAPP_ERRORWhatsApp did not answer, or rejected the operation.

Data directory

Everything lives in ~/.wazap (override with --data-dir or WAZAP_DATA_DIR), created 0700 with credentials written 0600:

~/.wazap/
  auth/         WhatsApp credentials — treat this like a password
  media/        downloads from download_media
  history/      per-chat message history, so a restart is not amnesia
  models/       whisper.cpp models, when transcription runs locally
  store.json    chat-list snapshot
  server.lock   pid of the running server
  daemon.json   loopback endpoint a second wazap bridges to
  oauth.json    registered agents and hashed OAuth grants, when OAuth is on
  .env          optional settings, see .env.example

Credential writes go to a temp file and are renamed into place, so killing the process mid-write cannot leave you re-linking your phone.

Several clients at once

Claude Desktop, Claude Code and Cursor each launch their own wazap. WhatsApp allows one socket per linked device, so they share one session instead of fighting over it. The first wazap on a data directory owns the session and opens an MCP endpoint on 127.0.0.1; every later one bridges to it over that endpoint. There is nothing to configure, and no client can tell the difference. The owner publishes <data-dir>/daemon.json (0600) with its pid, its port and the token a bridge authenticates with.

A bridge serves whatever the owner exposes, so an owner started --read-only makes every client read-only, whatever flags that client was launched with.

When the owner exits, the bridges exit with it, and the next wazap a client starts becomes the new owner.

WAZAP_NO_SHARE=1 opts out: a second wazap on the same directory exits with code 2 naming the pid of the one already running. An explicit --http is a server of its own rather than a bridge, and is refused the same way.

Read-only mode

Writes are opt-in. login asks once and stores the answer in <data-dir>/.env; wazap config writes on|off changes it, and wazap config alone prints every effective setting with where it came from.

WAZAP_READ_ONLY=1 or wazap serve --read-only does not register the write tools at all. The agent never sees them, so it cannot message anyone from your number even by mistake — useful when the linked account is your personal one.

Writes are also rate limited to WAZAP_RATE_LIMIT per minute (default 20, 0 disables). Sending faster than a human is how accounts get banned.

HTTP mode

WAZAP_READ_TOKEN=$(openssl rand -hex 32) \
WAZAP_WRITE_TOKEN=$(openssl rand -hex 32) \
npx wazap-mcp serve --http --host 0.0.0.0 --port 8766

Streamable HTTP at /mcp, with a health check at /healthz. Two bearer tokens: the read token gets the read tools, the write token also unlocks the write tools, so a leaked read token can never message anyone. wazap refuses to bind a non-loopback address without a read token. Agents that cannot carry a header sign in with OAuth instead.

Self-host

Run wazap on a server of your own when the agent is not on your laptop: another machine, a VPS, a client's infrastructure. The session stays on that server; nothing goes through a third party.

With systemd

npm install -g wazap-mcp
sudo useradd --system --home /var/lib/wazap --create-home wazap
sudo -u wazap WAZAP_DATA_DIR=/var/lib/wazap wazap login --phone +15550100   # pairing code works over SSH
sudo -u wazap tee /var/lib/wazap/.env >/dev/null <<END
WAZAP_READ_TOKEN=$(openssl rand -hex 32)
WAZAP_WRITE_TOKEN=$(openssl rand -hex 32)
END
sudo curl -fsSL https://raw.githubusercontent.com/razvangirgiz/wazap/main/deploy/wazap.service -o /etc/systemd/system/wazap.service
sudo systemctl enable --now wazap
curl -s http://127.0.0.1:8766/healthz

The unit binds loopback only. Put TLS in front with the two-line deploy/Caddyfile (caddy run --config deploy/Caddyfile after editing the hostname) or any reverse proxy, then point the client at https://your-host/mcp with Authorization: Bearer <read or write token>.

With Docker

git clone https://github.com/razvangirgiz/wazap && cd wazap
printf 'WAZAP_READ_TOKEN=%s\nWAZAP_WRITE_TOKEN=%s\n' $(openssl rand -hex 32) $(openssl rand -hex 32) > .env
docker compose run --rm wazap login --phone +15550100   # once; the session lands in the wazap-data volume
docker compose up -d
curl -s http://127.0.0.1:8766/healthz

The container publishes 8766 on loopback only; add the same TLS proxy in front. Upgrading is git pull && docker compose up -d --build; the volume keeps the session.

From a machine without a public address

A laptop or a box behind NAT can still serve hosted agents through a tunnel, with no port opened and TLS done at the edge. With Cloudflare Tunnel and a domain on Cloudflare:

cloudflared tunnel login
cloudflared tunnel create wazap
cloudflared tunnel route dns wazap wazap.example.com
cloudflared tunnel run --url http://127.0.0.1:8766 wazap

wazap keeps binding loopback; only the tunnel reaches it. Set WAZAP_PUBLIC_URL=https://wazap.example.com for OAuth and keep cloudflared running the way you keep wazap running (a systemd unit, a launchd agent). Tailscale Funnel or ngrok work the same way: whatever ends at https://your-host with /mcp behind it.

Which clients can reach it

Claude Code, Claude Desktop, Cursor, Codex, VS Code, Poke and any client with an "MCP URL + header" field connect with the bearer token. Keep the read token in clients that only need to read; hand out the write token deliberately.

claude.ai Connectors, ChatGPT and some hosted agents will not take a static header. They want OAuth, which is the next section.

Hosted agents (OAuth)

Two more lines in the same .env turn wazap into its own OAuth 2.1 server:

WAZAP_PUBLIC_URL=https://wazap.example.com
WAZAP_OAUTH_PASSWORD=$(openssl rand -base64 18)

Then give an agent nothing but https://wazap.example.com/mcp. It finds the authorization server at /.well-known/oauth-protected-resource/mcp, registers itself (RFC 7591, so there is no client id to paste anywhere), and sends you to a page on your own host that asks two things: the password above, and whether this agent may only read or also send. A refresh token keeps the agent signed in until you revoke it; access tokens rotate every 24 hours on their own.

Tested against the flow claude.ai, ChatGPT and Poke use: S256 PKCE, public clients, /token with refresh, /revoke. The bearer tokens keep working next to it, so a laptop client on a header and a hosted agent on OAuth share one server.

What to know before exposing it:

  • WAZAP_PUBLIC_URL must be https and a bare origin, no path: the endpoints live at its root. The password travels to it.
  • The password is the whole identity layer. Use a long one. A consent page takes three wrong guesses and is gone; five from one address lock that address out for fifteen minutes; twenty from anywhere close the page for everyone for fifteen minutes.
  • With OAuth on, /mcp never answers an unauthenticated request, whether or not a read token is set.
  • Grants live in <data-dir>/oauth.json as hashes. Delete the file to sign every agent out at once, running server included; wazap status lists who holds one. Disconnecting an agent on its side revokes its refresh token and every access token it minted. A refresh token unused for ninety days is dropped.
  • A read grant never sees a write tool, whatever scope the agent requested. The radio button on the consent page is the only thing that decides.

Settings

VariableDefaultMeaning
WAZAP_DATA_DIR~/.wazapWhere everything is stored.
WAZAP_READ_ONLY0Do not register the write tools.
WAZAP_SYNC_FULL_HISTORY0Ask WhatsApp for a fuller history sync.
WAZAP_PERSIST_HISTORY1Keep chats and messages across restarts.
WAZAP_RATE_LIMIT20Write tool calls per minute; 0 disables.
WAZAP_TRANSPORTstdiostdio or http.
WAZAP_HOST / WAZAP_PORT127.0.0.1 / 8766HTTP bind address.
WAZAP_READ_TOKEN / WAZAP_WRITE_TOKENunsetHTTP bearer tokens.
WAZAP_PUBLIC_URLunsetThe https address agents reach the server at. With the password, turns OAuth on.
WAZAP_OAUTH_PASSWORDunsetWhat the consent page asks for. At least 8 characters.
WAZAP_NO_UPDATE_CHECK01 stops status asking npm for a newer version.
WAZAP_TRANSCRIBEofflocal, openai or off.
WAZAP_TRANSCRIBE_AUTO1Transcribe incoming voice notes in the background.
WAZAP_TRANSCRIBE_LANGUAGEautoSpoken language, e.g. ro.
WAZAP_WHISPER_MODELturboturbo, large-v3 or medium.
WAZAP_WHISPER_BINunsetPath to a whisper.cpp binary that is not on PATH.
WAZAP_TRANSCRIBE_API_KEYunsetAPI key; OPENAI_API_KEY is the fallback. Never a flag.
WAZAP_TRANSCRIBE_URLhttps://api.openai.com/v1OpenAI-compatible base URL.
WAZAP_TRANSCRIBE_MODELgpt-4o-mini-transcribeModel at that URL.

Flags beat environment variables, which beat <data-dir>/.env.

Known limitations

  • Unofficial. Baileys reverse-engineers the WhatsApp multi-device protocol. This is not the WhatsApp Business API and Meta does not support it.
  • Ban risk is real. Automated sending, bulk messaging or anything a human would not plausibly type can get the number banned, and that is not recoverable from here. The rate limit helps; it is not a guarantee.
  • Media keys expire. WhatsApp drops old attachments from its servers, so download_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, ask for it again with the sync_contacts tool or wazap contacts resync.
  • 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.

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.

MIT licensed.

Reviews

No reviews yet

Be the first to review this server!