Skip to content
← All MCP servers

Is the WhatsApp MCP server safe? What it can reach

What the WhatsApp MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

The most used WhatsApp MCP server is a community project by lharries, run locally. You link it to your personal account by scanning a QR code, so it acts as you. It can read your messages and contacts and send messages and files to anyone. Its README warns that prompt injection could leak private data. The last commit was July 2025.

Who maintains it

ImplementationKindStatus
whatsapp-mcp (lharries, community)Communityactive

It runs as a local process on your machine.

How it signs in

A Go bridge links to your personal WhatsApp account as a linked device through the whatsmeow library, using a QR code you scan in the phone app. Messages are stored in a local SQLite database.

What its tools can do

KindTools
Readsearch_contacts, list_messages, list_chats, get_chat, get_direct_chat_by_contact, get_contact_chats, get_last_interaction, get_message_context, download_media
Writenone documented
Can’t be undonesend_message, send_file, send_audio_message

The three send tools cannot be undone once the message is delivered. download_media saves a file to your disk. The README does not describe any read-only mode.

Built-in limits

OptionWhat it does
Linked devicesRemoving the device under Settings > Linked Devices in WhatsApp on your phone ends the bridge’s access. The README says you may need to scan again after about 20 days.
Local message storeMessages sit in SQLite files under whatsapp-bridge/store/ and are sent to an LLM only when a tool reads them. Deleting messages.db and whatsapp.db clears the local copy.
Client tool approvalThe server has no filter of its own, so limiting the send tools has to happen in your MCP client.

The risks

  • The README itself says the server is subject to the lethal trifecta, so an incoming message could carry an instruction that makes the agent read other chats and send them out.
  • send_message and send_file go to any phone number or group from your own account, so a misdirected or injected send looks like it came from you and cannot be recalled by the tool.
  • Every chat the account can see, including group chats and media, is readable by the agent, and results are passed to your LLM provider.
  • The project has had no commit since July 2025, and it relies on an unofficial library for WhatsApp’s web protocol, so fixes depend on that library keeping up.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add whatsapp -- uv --directory {{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server run main.py

Claude Code names MCP tools mcp__whatsapp__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__whatsapp__send_message",
      "mcp__whatsapp__send_file",
      "mcp__whatsapp__send_audio_message"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.whatsapp]
command = "uv"
args = ["--directory", "{{PATH_TO_SRC}}/whatsapp-mcp/whatsapp-mcp-server", "run", "main.py"]
disabled_tools = ["send_message", "send_file", "send_audio_message"]

Checklist

  • Deny the send tools unless you need the agent to message people.
  • Never run it with an account that holds sensitive business or family chats.
  • Remove the linked device on your phone when you stop using it.
  • Read the README’s own warning about prompt injection first.

Checked against the vendor documentation on November 25, 2026. whatsapp-mcp README (lharries) · whatsmeow library README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing