WhatsApp MCP

v1.0.0Communicationstable

Connects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without

aimcpwhatsappwhatsapp-apimcp-server
Share:
5,673
Stars
0
Downloads
0
Weekly
0/5

What is WhatsApp MCP?

WhatsApp MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to connects ai assistants to the official meta whatsapp cloud api for managing conversations and sending various message types through natural language. it provides tools for media management, template m...

Connects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Connects AI assistants to the official Meta WhatsApp Cloud A

Use Cases

Send messages via WhatsApp Cloud API
Manage conversations and media
Process templates and webhook events
FredShred7

Maintainer

LicenseMIT License
Languagego
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y whatsapp

Manual Installation

npx -y whatsapp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use WhatsApp MCP

The WhatsApp MCP Server connects AI assistants to the official Meta WhatsApp Cloud API, enabling them to send and receive messages, manage media, handle template messages, and update business profiles through natural language. Unlike reverse-engineered alternatives, it uses Meta's official API so there is no ban risk. Developers use it to build AI-driven customer support bots, notification systems, and conversational workflows on WhatsApp without writing custom API integration code.

Prerequisites

  • Node.js 18+ and npm/npx installed
  • A Meta Developer account with a WhatsApp Business app created at developers.facebook.com
  • A verified WhatsApp Business phone number with an assigned Phone Number ID
  • A permanent WhatsApp access token from the Meta dashboard
  • An MCP-compatible client such as Claude Desktop
1

Set up a Meta WhatsApp Business app

Log in to developers.facebook.com, create a new app of type 'Business', and add the WhatsApp product. Note your Phone Number ID and generate a permanent access token from the app dashboard.

2

Collect your credentials

Gather the four required values from your Meta dashboard: Phone Number ID, Access Token, Webhook Verify Token (a secret string you choose), and optionally your App Secret for production use.

3

Test the server locally

Run the server once via npx to verify your credentials work before adding it to your MCP client configuration.

WHATSAPP_PHONE_NUMBER_ID=your_id WHATSAPP_ACCESS_TOKEN=your_token npx -y @fredshred7/whatsapp-mcp-server
4

Add the server to your MCP client configuration

Edit your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) to add the WhatsApp server with your real credentials.

{
  "mcpServers": {
    "whatsapp": {
      "command": "npx",
      "args": ["-y", "@fredshred7/whatsapp-mcp-server"],
      "env": {
        "WHATSAPP_PHONE_NUMBER_ID": "your_phone_number_id",
        "WHATSAPP_ACCESS_TOKEN": "your_permanent_access_token",
        "WHATSAPP_WEBHOOK_VERIFY_TOKEN": "your_webhook_secret",
        "WHATSAPP_APP_SECRET": "your_meta_app_secret"
      }
    }
  }
}
5

Restart your MCP client and verify the connection

Restart Claude Desktop (or your chosen client) to load the new server. Ask your AI assistant to send a test WhatsApp message to confirm the connection is working.

WhatsApp MCP Examples

Client configuration

Full Claude Desktop configuration for the WhatsApp MCP server using the official Meta Cloud API.

{
  "mcpServers": {
    "whatsapp": {
      "command": "npx",
      "args": ["-y", "@fredshred7/whatsapp-mcp-server"],
      "env": {
        "WHATSAPP_PHONE_NUMBER_ID": "123456789012345",
        "WHATSAPP_ACCESS_TOKEN": "EAAxxxxxxxxxxxxx",
        "WHATSAPP_WEBHOOK_VERIFY_TOKEN": "my_secret_token",
        "WHATSAPP_APP_SECRET": "abc123def456"
      }
    }
  }
}

Prompts to try

Send messages, manage media, and handle templates through natural language once the server is connected.

- "Send a WhatsApp message to +1234567890 saying 'Your order has shipped'"
- "Upload the invoice.pdf to WhatsApp media storage and get its media ID"
- "Send a template message using the 'order_confirmation' template to +1234567890"
- "Update my WhatsApp business profile description to 'Open Mon-Fri 9am-5pm'"

Troubleshooting WhatsApp MCP

Messages fail with 'Invalid OAuth access token' error

Ensure you are using a permanent access token, not the temporary 24-hour token shown in the Meta dashboard's 'Try the API' section. Generate a permanent token via System Users in Meta Business Manager.

Webhook verification fails when registering with Meta

The WHATSAPP_WEBHOOK_VERIFY_TOKEN in your config must exactly match the Verify Token you enter in the Meta dashboard Webhook setup. Also ensure your webhook URL is publicly accessible — use ngrok for local development.

Template messages are rejected with 'template not found'

Template names are case-sensitive and must be pre-approved in your WhatsApp Business Manager. Verify the template exists and its status is 'Approved' before attempting to send it via the MCP server.

Frequently Asked Questions about WhatsApp MCP

What is WhatsApp MCP?

WhatsApp MCP is a Model Context Protocol (MCP) server that connects ai assistants to the official meta whatsapp cloud api for managing conversations and sending various message types through natural language. it provides tools for media management, template messages, and real-time webhook processing without It connects AI assistants to external tools and data sources through a standardized interface.

How do I install WhatsApp MCP?

Install via npm with the command: npx -y whatsapp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with WhatsApp MCP?

WhatsApp MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is WhatsApp MCP free to use?

Yes, WhatsApp MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use WhatsApp MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides