MCP server from mattcoatsworth/Whatsapp-MCP-Server
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:
-
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
-
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
-
Start the server: npm start
or if you installed globally or used npx, ensure the appropriate startup script is invoked
-
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
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.