whatsapp-mcp-server: Instructions file for Claude Code

CLAUDE.md

whatsapp-mcp-server CLAUDE.md is an instructions file for Claude Code from FredShred7/whatsapp-mcp-server. It costs 1,103 tokens per session, scanned A, original, MIT.

Project instructions for a TypeScript MCP server that connects AI clients to Meta’s official WhatsApp Cloud API. The API supports WhatsApp messages, media, templates, and business-profile operations.

In plain words
What is it for?
Use it when working on WhatsApp message tools, media transfers, templates, business profiles, incoming webhooks, or the server build.
Why use it?
It describes the server structure and operational rules, helping agents change messaging or webhook behavior without breaking authentication and shutdown handling.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is FredShred7/whatsapp-mcp-server's own configuration. It tells Claude Code how to work on whatsapp-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything whatsapp-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FredShred7/whatsapp-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FredShred7/whatsapp-mcp-server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/FredShred7/whatsapp-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for whatsapp-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fredshred7/whatsapp-mcp-server/claude-md/github.svg)](https://agentmods.dev/instructions/fredshred7/whatsapp-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fredshred7/whatsapp-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/fredshred7/whatsapp-mcp-server/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for whatsapp-mcp-server CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fredshred7/whatsapp-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/fredshred7/whatsapp-mcp-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,103 This file is loaded in full into every session.
When invoked 1,103 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01103 $0.01103
Opus 5.5 $0.00441 $0.00441
Sonnet 5.5 $0.00221 $0.00221
Haiku 4.5 $0.00110 $0.00110

Measured 2mo ago against content hash 599e803ed2f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

whatsapp-mcp-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Guidance for Claude Code (and future AI sessions) working in this repository.

Project overview

whatsapp-mcp-server is a TypeScript Model Context Protocol server that exposes the official Meta WhatsApp Cloud API to MCP clients (Claude Desktop, Claude Code, etc.). It speaks MCP over the stdio transport and registers tools for sending messages (text/image/video/audio/document/reaction), templates, media upload/download, and business-profile management. An optional Express webhook server (enabled by setting WEBHOOK_PORT) receives incoming messages and delivery statuses and keeps an in-memory conversation store; incoming requests are verified against the X-Hub-Signature-256 header when WHATSAPP_APP_SECRET is set. The package is ESM ("type": "module"), compiled with tsc to dist/, and ships a whatsapp-mcp-server bin.

Layout

  • src/index.ts — entry point: loads env, builds config, optionally starts the webhook, wires SIGINT/SIGTERM graceful shutdown, starts the MCP server.
  • src/server.ts — MCP server: aggregates all tools and handles tools/list + tools/call.
  • src/whatsapp/client.ts — Axios-based Cloud API client with retry/backoff.
  • src/whatsapp/webhook.ts — Express webhook server, signature verification, in-memory store.
  • src/whatsapp/types.ts — shared types and the WhatsAppError class.
  • src/tools/*.ts — tool definitions; shared.ts holds formatError and toInputSchema (Zod → JSON Schema). Each tool's inputSchema is derived from its Zod schema — keep that single source of truth.
  • test/ — Vitest unit tests (not shipped; excluded from dist).

Commands

npm install        # or: npm ci  (uses package-lock.json; what CI runs)
npm run build      # tsc -> dist/
npm run dev        # tsx watch src/index.ts
npm run typecheck  # tsc --noEmit
npm run lint       # eslint src --ext .ts
npm test           # vitest run
npm run test:watch # vitest (watch mode)

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 77 lines · 1,103 tokens per session scan A 599e803ed2f3

Subscribe to this mod's changes

whatsapp-mcp-server CLAUDE.md is an instructions file published in the GitHub repository FredShred7/whatsapp-mcp-server (25 stars, last pushed 5mo ago), licensed MIT. It adds 1,103 tokens to every session, about $0.0044 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

whatsapp-mcp-server CLAUDE.md compared with instructions from other repositories

whatsapp-mcp-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
whatsapp-mcp-server CLAUDE.mdFredShred7/whatsapp-mcp-serverInstructions file255mo agoMITA1,103Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode