Get the FREE Ultimate OpenClaw Setup Guide →

Whatsapp

MCP server from mattcoatsworth/Whatsapp-MCP-Server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mattcoatsworth-whatsapp-mcp-server npx -y whatsapp-business-mcp-server \
  --env WHATSAPP_API_TOKEN="your_api_token_here" \
  --env WHATSAPP_API_VERSION="v18.0" \
  --env WHATSAPP_PHONE_NUMBER_ID="your_phone_number_id_here" \
  --env WHATSAPP_BUSINESS_ACCOUNT_ID="your_business_account_id_here"

How to use

This MCP server provides a programmable interface for interacting with the WhatsApp Business API. It exposes a suite of tools to send messages (text, template, media, interactive), manage message templates, upload and retrieve media, and adjust business profile and phone number settings. You can also configure webhooks and monitor webhook activity through the MCP Inspector integration. The available tools are organized by category, including Messaging, Media, Templates, Business Profile, Phone Numbers, and Webhooks, making it straightforward to perform common WhatsApp Business API tasks from MCP clients or automations.

How to install

Prerequisites:

  • Node.js 16 or higher
  • npm or npx available in your environment
  • WhatsApp Business API credentials: API Token, Phone Number ID, Business Account ID

Installation steps:

  1. Install the MCP server as a package (via npm) or run directly with npx: npm install whatsapp-business-mcp-server

    or to run directly without installing:

    npx whatsapp-business-mcp-server

  2. Create a .env file with your WhatsApp Business API credentials (recommended): WHATSAPP_API_TOKEN=your_api_token_here WHATSAPP_PHONE_NUMBER_ID=your_phone_number_id_here WHATSAPP_BUSINESS_ACCOUNT_ID=your_business_account_id_here WHATSAPP_API_VERSION=v18.0

  3. Start the server: npm start

    or if you installed globally or used npx, ensure the appropriate startup script is invoked

  4. Optional: run in development mode or inspect MCP activity if you have the inspector set up: npm run dev npm run inspect

Additional notes

Environment variables can be supplied via a .env file or environment. Ensure your WhatsApp Business API credentials are kept secure. If you hit authentication errors, verify token scope and API version compatibility (v18.0 in the example). The package exposes a rich set of tools; consult the available commands within the MCP interface to confirm which endpoints and operations are enabled in your deployment. If using MCP Inspector, you can visualize and test tool calls before integrating into production workflows.

Related MCP Servers

Sponsor this space

Reach thousands of developers