MCP server for WhatsApp messaging
## WhatsApp MCP Server: Business Messaging The **WhatsApp MCP Server** integrates WhatsApp Business API into Google Antigravity. This enables sending messages, notifications, and building conversational experiences on the world's most popular messaging platform. ### Why WhatsApp MCP? WhatsApp reaches billions: - **2B Users**: Global messaging reach - **Business API**: Professional messaging features - **Templates**: Pre-approved message templates - **Rich Media**: Images, documents, locations - **End-to-End**: Encrypted communications ### Key Features #### 1. Send Messages ```python import requests headers = { "Authorization": f"Bearer {access_token}", "Content-Type": "application/json" } # Send text message response = requests.post( f"https://graph.facebook.com/v17.0/{phone_number_id}/messages", headers=headers, json={ "messaging_product": "whatsapp", "to": "1234567890", "type": "text", "text": {"body": "Hello! Your order has shipped."} } ) ``` #### 2. Template Messages ```python # Send pre-approved template response = requests.post( f"https://graph.facebook.com/v17.0/{phone_number_id}/messages", headers=headers, json={ "messaging_product": "whatsapp", "to": "1234567890", "type": "template", "template": { "name": "order_confirmation", "language": {"code": "en"}, "components": [ { "type": "body", "parameters": [ {"type": "text", "text": "John"}, {"type": "text", "text": "ORD-12345"} ] } ] } } ) ``` #### 3. Interactive Messages ```python # Send interactive buttons response = requests.post( f"https://graph.facebook.com/v17.0/{phone_number_id}/messages", headers=headers, json={ "messaging_product": "whatsapp", "to": "1234567890", "type": "interactive", "interactive": { "type": "button", "body": {"text": "Would you like to track your order?"}, "action": { "buttons": [ {"type": "reply", "reply": {"id": "track", "title": "Track Order"}}, {"type": "reply", "reply": {"id": "contact", "title": "Contact Support"}} ] } } } ) ``` ### Configuration ```json { "mcpServers": { "whatsapp": { "command": "npx", "args": ["-y", "@anthropic/mcp-whatsapp"], "env": { "WHATSAPP_TOKEN": "your-access-token", "WHATSAPP_PHONE_NUMBER_ID": "your-phone-number-id" } } } } ``` ### Use Cases **Order Updates**: Send shipping and delivery notifications. **Customer Support**: Build conversational support bots. **Appointment Reminders**: Automated reminder messages. The WhatsApp MCP Server brings business messaging to Antigravity.
{
"mcpServers": {
"whatsapp": {
"mcpServers": {
"whatsapp": {
"args": [
"-y",
"whatsapp-mcp-n8n"
],
"command": "npx"
}
}
}
}
}