WhatsApp MCP Server
Provides tools for sending and receiving WhatsApp messages, managing contacts, templates, campaigns, and channels via the Wati API v3.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WhatsApp MCP Server send a message to +1234567890 saying Hello from Claude!"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WhatsApp MCP Server with Wati API v3
Wati now has an official hosted MCP server. There's nothing to install and no API key: connect https://mcp.wati.io/mcp (EU: https://eu-mcp.wati.io/mcp) and sign in with OAuth. It works with Claude, ChatGPT, Meta Muse, Cursor and more, and also manages Astra AI agents. Setup guide: wati-io/wati-mcp · support article. This self-hosted server is still available if you need it.
This is a Model Context Protocol (MCP) server for WhatsApp using the Wati API v3.
Manage your WhatsApp conversations, contacts, templates, campaigns, and channels through AI assistants like Claude. Search and read messages, send texts and files, manage contacts, and automate workflows — all via MCP tools.

To get updates on this and other projects enter your email here
What's New in v0.2.0
Breaking change: This release migrates from the legacy Wati v1 API to the v3 API (/api/ext/v3/*).
Changes
API v3 migration — All endpoints updated to
/api/ext/v3/*pathsURL scheme — Tenant ID no longer embedded in URL path; resolved from Bearer token
WATI_TENANT_IDis now optional — Only needed for multi-channel setups (Channel:PhoneNumber targeting)New tools:
list_contacts,get_contact,add_contact,update_contacts,get_contact_count,assign_contact_teams,send_file_via_url,send_interactive(buttons + list),assign_operator,update_conversation_status,list_templates,get_template,send_template,list_campaigns,get_campaign,list_channelsRemoved tools:
list_chats,get_chat,get_direct_chat_by_contact,get_contact_chats(replaced bylist_contacts/get_contact/get_messages)Simplified response parsing — v3 has standardized response schemas
Migration Guide
Update
WATI_API_BASE_URLto your Wati server (e.g.https://live-mt-server.wati.io)WATI_TENANT_IDcan be removed unless you use multi-channel targetingUpdate tool calls:
send_message(recipient=...)→send_message(target=...)Replace
list_chats/get_chatwithlist_contacts/get_contact+get_messages
Related MCP server: wati-mcp-server
Installation
Installing via Smithery
npx -y @smithery/cli install @wati-io/wati-mcp-server --client claudePrerequisites
Python 3.11+
Anthropic Claude Desktop app (or Cursor)
UV (Python package manager), install with
curl -LsSf https://astral.sh/uv/install.sh | shWati API access (you'll need your authentication token)
Steps
Clone this repository
git clone https://github.com/wati-io/wati-mcp-server.git cd wati-mcp-serverConfigure the Wati API
Copy the example environment file and edit it with your Wati API credentials:
cp .env.example .env # Edit .env with your Wati API credentialsRequired:
WATI_API_BASE_URL: The base URL for the Wati API (e.g.https://live-mt-server.wati.io)WATI_AUTH_TOKEN: Your Wati authentication token (Bearer token from dashboard)
Optional:
WATI_TENANT_ID: Your Wati tenant ID (only for multi-channel setups)
Connect to the MCP server
Copy the below json with the appropriate {{PATH}} values:
{ "mcpServers": { "whatsapp": { "command": "{{PATH_TO_UV}}", "args": [ "--directory", "{{PATH_TO_SRC}}/wati-mcp-server", "run", "main.py" ] } } }For Claude, save this as
claude_desktop_config.jsonin:~/Library/Application Support/Claude/claude_desktop_config.jsonFor Cursor, save this as
mcp.jsonin:~/.cursor/mcp.jsonRestart Claude Desktop / Cursor
MCP Tools
Contacts
search_contacts — Search contacts by name or phone number
list_contacts — List contacts with pagination
get_contact — Get detailed contact info by phone or ID
add_contact — Add a new WhatsApp contact
update_contacts — Bulk-update contact custom parameters
get_contact_count — Get total contact count
assign_contact_teams — Assign a contact to teams
Messages & Conversations
get_messages — Get conversation messages for a contact
send_message — Send a text message
send_file — Send a file (image, video, document, audio) via upload
send_file_via_url — Send a file by URL (no local download needed)
download_media — Download media from a message
send_interactive — Send interactive buttons or list messages
assign_operator — Assign an operator to a conversation
update_conversation_status — Update conversation status (open/solved/pending/block)
Templates
list_templates — List message templates
get_template — Get template details
send_template — Send template messages to recipients
Campaigns
list_campaigns — List broadcast campaigns
get_campaign — Get campaign details and statistics
Channels
list_channels — List available WhatsApp channels
Architecture
Claude/AI Assistant
↕ MCP Protocol (stdio)
Python MCP Server (FastMCP)
↕ HTTPS + Bearer Auth
Wati API v3
↕
WhatsApp BusinessClaude sends requests to the Python MCP server via MCP protocol
The MCP server makes authenticated API calls to the Wati v3 API
The Wati API communicates with WhatsApp's backend
Data flows back through the chain to Claude
Troubleshooting
Authentication errors: Ensure your
WATI_AUTH_TOKENis valid and not expired404 errors: Make sure
WATI_API_BASE_URLpoints to your correct Wati serverRate limiting: The Wati API has rate limits. If you hit them, wait or contact Wati support
Media upload failures: Check file type support and size limits
Permission issues with uv: Add it to your PATH or use the full path to the executable
For MCP integration troubleshooting, see the MCP documentation.
Available Tools
21 toolsadd_contactA
Add a new WhatsApp contact.
Args:
whatsapp_number: Phone number with country code, no + (e.g. "85264318721")
name: Contact display name
custom_params: Optional list of {"name": "key", "value": "val"} pairs
Inputs: whatsapp_number (required), name (required), custom_params.
assign_contact_teamsB
Assign a contact to one or more teams.
Args:
target: Phone number or contact ID
teams: List of team names (e.g. ["Support", "Sales"])
Inputs: target (required), teams (required).
assign_operatorA
Assign an operator to a WhatsApp conversation. Pass no email (or null) to assign to the bot.
Args:
target: Phone number or conversation ID
assignee_email: Operator's email address (null = assign to bot)
Inputs: target (required), assignee_email.
download_mediaC
Download media from a WhatsApp message.
Args:
message_id: The ID of the message containing the media
Inputs: message_id (required).
get_campaignC
Get details and statistics for a broadcast campaign.
Args:
broadcast_id: The campaign's unique ID
Inputs: broadcast_id (required).
get_contactB
Get detailed information about a specific contact.
Args:
target: Phone number (e.g. "85264318721") or contact ID
Inputs: target (required).
get_contact_countA
Get total number of WhatsApp contacts.
Inputs: no named parameters.
get_messagesA
Get conversation messages for a contact or conversation.
Args:
target: Phone number (e.g. "85264318721") or conversation ID
page_size: Messages per page (max 100, default 20)
page_number: Page number, 1-based (default 1)
Inputs: target (required), page_size, page_number.
get_templateB
Get details of a specific message template.
Args:
template_id: The template's unique ID
Inputs: template_id (required).
list_campaignsB
List broadcast campaigns.
Args:
page_size: Campaigns per page (max 100, default 20)
page_number: Page number, 1-based (default 1)
Inputs: page_size, page_number.
list_channelsC
List available WhatsApp channels.
Args:
page_size: Channels per page (max 100, default 20)
page_number: Page number, 1-based (default 1)
Inputs: page_size, page_number.
list_contactsA
List WhatsApp contacts with pagination.
Args:
page_size: Number of contacts per page (max 100, default 20)
page_number: Page number, 1-based (default 1)
Inputs: page_size, page_number.
list_templatesA
List WhatsApp message templates.
Args:
page_size: Templates per page (max 100, default 20)
page_number: Page number, 1-based (default 1)
Inputs: page_size, page_number.
search_contactsA
Search WhatsApp contacts by name or phone number. Returns contact information including name, phone, WhatsApp ID, status, teams, and custom parameters.
Args:
query: A search term to find matching contacts (name or phone)
Inputs: query (required).
send_fileB
Send a file (image, video, document, audio) via WhatsApp.
Args:
target: Recipient phone number with country code, no + (e.g. "85264318721")
file_path: Absolute path to the file or a URL
caption: Optional caption for the file
Inputs: target (required), file_path (required), caption.
send_file_via_urlA
Send a file by URL without downloading it locally first.
Args:
target: Recipient phone number with country code, no + (e.g. "85264318721")
file_url: Public URL of the file to send
caption: Optional caption
Inputs: target (required), file_url (required), caption.
send_interactiveA
Send an interactive WhatsApp message with buttons or a list.
Args:
target: Recipient phone number with country code, no + (e.g. "85264318721")
interactive_type: Either "buttons" or "list"
body_text: Main message body text
buttons: For type="buttons": list of {"text": "Button label"} (max 3)
header_text: Optional header text
footer_text: Optional footer text
button_text: For type="list": text shown on the list button
sections: For type="list": list of {"title": "...", "rows": [{"title": "...", "description": "..."}]}
Inputs: target (required), interactive_type (required), body_text (required), buttons, +4 more.
send_messageA
Send a WhatsApp text message to a contact.
Args:
target: Recipient phone number with country code, no + (e.g. "85264318721")
text: The message text to send
Inputs: target (required), text (required).
send_templateB
Send template messages to one or more recipients.
Args:
template_name: Name of the approved template
broadcast_name: Name for this broadcast batch
recipients: List of {"phone_number": "...", "custom_params": [{"name": "k", "value": "v"}]}
channel: Optional channel name or phone (null = default channel)
Inputs: template_name (required), broadcast_name (required), recipients (required), channel.
update_contactsC
Bulk-update contacts' custom parameters.
Args:
contacts: List of {"target": "phone_or_id", "customParams": [{"name": "k", "value": "v"}]}
Inputs: contacts (required).
update_conversation_statusB
Update a conversation's status.
Args:
target: Phone number or conversation ID
new_status: One of "open", "solved", "pending", "block"
Inputs: target (required), new_status (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Tools generally target distinct actions (e.g., send vs list vs get), but there is some overlap between send_file and send_file_via_url, and between send_message, send_interactive, send_template. Descriptions help disambiguate, but the similarities could cause misselection.
All tools follow a consistent verb_noun snake_case pattern (e.g., add_contact, list_templates, send_message). No mixing of styles or confusing abbreviations.
21 tools is on the higher side but still reasonable for a comprehensive WhatsApp server covering contacts, messaging, campaigns, and media. Could be slightly trimmed by merging file-send tools, but not excessive.
Covers most common operations (CRUD for contacts, sending various message types, campaigns, templates), but lacks delete operations for contacts, templates, and campaigns. This is a notable gap that may hinder some workflows.
Maintenance
Related MCP Connectors
Manage Wati WhatsApp and Instagram contacts, chats, campaigns and templates, plus Astra AI agents.
Send WhatsApp messages and templates, manage chats, contacts, broadcasts and AI agents.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Run WhatsApp Business campaigns from any AI assistant: contacts, segments, and broadcasts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage WhatsApp communications by sending messages, managing groups, and analyzing conversation patterns via the WaliChat API. It supports tasks like message scheduling, contact management, and automated business workflows through natural language commands.12 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for WATI WhatsApp Business API enabling AI assistants to send messages, manage contacts, and handle media.MIT
- AlicenseAqualityDmaintenanceEnables Claude to interact with WhatsApp through a unified backend API, providing 20 tools for messaging, media, groups, contacts, and chat management.2248 npmMIT
- AlicenseBqualityCmaintenanceEnables Claude to manage WhatsApp templates, flows, and send messages through the WhatsApp Cloud API.3132 npmMIT