VOOZH about

URL: https://apify.com/mdbm/whatsapp-cloud-api-mcp

⇱ Whatsapp Cloud MCP Gateway Β· Apify


Pricing

from $5.00 / 1,000 results

Go to Apify Store

Whatsapp Cloud API MCP

Give your AI agents a phone number! The easiest way to integrate WhatsApp Business API with Claude and other MCP-compliant tools. Supports text, media, and interactive buttons.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

πŸ‘ Mouhamed Bakhoum

Mouhamed Bakhoum

Maintained by Community

Actor stats

3

Bookmarked

13

Total users

2

Monthly active users

7 months ago

Last modified

Share

WhatsApp MCP Server

Model Context Protocol (MCP) Server for WhatsApp Business API

This Apify Actor runs a full MCP Server that enables AI agents (like Claude, Cursor, etc.) to interact with WhatsApp. It supports sending messages, handling webhooks, and managing conversations.

Features

  • MCP Protocol Support: Implements the Model Context Protocol (JSON-RPC 2.0) for seamless integration with AI agents.
  • WhatsApp Integration: Send and receive text, media, and interactive messages.
  • Webhook Handling: Validates and processes WhatsApp Cloud API webhooks.
  • Message History: Stores messages in Apify Dataset and provides tools to search and retrieve conversation history.
  • Reliability: Built-in retry logic, rate limiting, and message deduplication.

Tools Available to Agents

The server exposes the following MCP tools:

  1. send_whatsapp_message: Send text or media messages.
  2. send_interactive_message: Send buttons or list messages.
  3. get_recent_messages: Retrieve recent messages (inbound/outbound).
  4. get_conversation: Get full conversation history with a specific number.
  5. search_messages: Search message content.

Configuration

Required Settings

  1. WHATSAPP_PHONE_NUMBER_ID: Your Phone Number ID from the Meta for Developers Console.
  2. WHATSAPP_ACCESS_TOKEN: A valid system user access token with whatsapp_business_messaging permission.

Optional Settings

  • VERIFY_TOKEN: The verification token you set in the Meta App Dashboard > WhatsApp > Configuration.
  • WEBHOOK_SECRET: The App Secret for validating webhook signatures (highly recommended for security).

Usage

1. Deploy the Actor

Deploy this actor to your Apify account.

2. Configure Meta Webhook

In your Meta App Dashboard:

  1. Go to WhatsApp > Configuration.
  2. Click Edit under Webhook.
  3. Callback URL: Use the Apify Actor Container URL + /webhook.
    • Start the actor in Apify.
    • Copy the Container URL from the "Live View" or logs (e.g., https://unique-container-url.apify.actor).
    • Append /webhook (e.g., https://unique-container-url.apify.actor/webhook).
  4. Verify Token: Enter the VERIFY_TOKEN you configured in the Actor input.

3. Connect Your AI Agent

Your AI agent (e.g., Claude Desktop, Cursor) needs to connect to this MCP server. The server exposes the MCP endpoint at /mcp.

Endpoint: https://unique-container-url.apify.actor/mcp

Endpoint: https://unique-container-url.apify.actor/mcp

How to Use with LLMs

Since your actor runs on Apify (remote HTTP), you need a way to bridge it to your local MCP client.

Option 1: Using with Claude Desktop

Claude Desktop typically communicates with MCP servers via standard input/output (stdio). To connect to your remote Apify Actor, you can use a generic HTTP client adapter or a simple local script.

1. Get your Apify Actor URL

  1. Go to your Actor in the Apify Console.
  2. Copy the Container URL (e.g., https://whatsapp-mcp-actor-xyz.apify.actor).

2. Configure Claude Desktop

Open your Claude Desktop configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the following configuration. We'll use npx to run a lightweight bridge that forwards requests to your Apify Actor.

{
"mcpServers":{
"whatsapp":{
"command":"npx",
"args":[
"-y",
"@modelcontextprotocol/server-http-client",
"https://<YOUR-ACTOR-URL>.apify.actor/mcp"
],
"env":{
"APIFY_TOKEN":"<YOUR_APIFY_TOKEN>"
}
}
}
}

Note: Replace <YOUR-ACTOR-URL> with your actual actor URL and <YOUR_APIFY_TOKEN> with your Apify API token.

3. Restart Claude Desktop

Restart the application. You should now see the WhatsApp tools (e.g., send_whatsapp_message) available in the chat interface.

Option 2: Testing with MCP Inspector

You can use the official MCP Inspector to test your server directly from the command line without configuring Claude Desktop yet.

Run this command in your terminal:

$npx @modelcontextprotocol/inspector https://<YOUR-ACTOR-URL>.apify.actor/mcp

This will open a web interface where you can:

  1. See the list of available tools.
  2. Test sending messages.
  3. View the JSON-RPC responses.

Option 3: Using with Cursor

Cursor currently has built-in MCP support (beta).

  1. Open Cursor Settings (Ctrl/Cmd + ,).
  2. Navigate to Features > MCP.
  3. Click Add New MCP Server.
  4. Name: whatsapp
  5. Type: HTTP (if available) or Command.
    • If HTTP is supported: Enter your Actor URL + /mcp.
    • If only Command is supported: Use the same npx command as above: npx -y @modelcontextprotocol/server-http-client https://<YOUR-ACTOR-URL>.apify.actor/mcp

Troubleshooting

  • Connection Refused: Ensure your Actor is RUNNING in the Apify Console. It must be active to receive requests.
  • Authentication: If your actor requires an Apify Token for access (likely), ensure you pass it in the headers or environment variables if using a custom client. The @modelcontextprotocol/server-http-client might need specific configuration for headers.

Output

All messages (sent and received) are stored in the Apify Dataset. You can view them in the "Output" tab or download them in JSON/CSV format.

Pricing

This Actor is paid per event. For detailed pricing information, please visit the Pricing Page.

You might also like

WhatsApp Link Hunter: Bulk Website To WhatsApp Mapper

6sigmag/whatsapp-link-hunter-bulk-website-to-whatsapp-mapper

Transform website URLs into valuable WhatsApp Link in bulk. Automatically extract domains and find associated Whatsapp accounts for powerful lead generation, competitor analysis, and market research. Save hours of manual work with this efficient automation tool.

Whatsapp Profiles Scraper

inutil_labs/wscrp-free

Scrape the Whatsapp network and fetch profile info of any user, including: Profile picture, About status, or check if it's a Whatsapp for Business or personal account.

4.2K

5.0

WhatsApp API

devscrapper/WhatsAppAPI

A powerful WhatsApp API to send and receive text, images, and videos with ease β€” built for scalability, flexibility, and seamless integration into CRMs, e-commerce platforms, or chatbots.

πŸ‘ User avatar

Oussama Production

130

Whatsapp Scraper Profile By Number

antonio_cesar/whatsapp-scraper-profile

WhatsApp Scraper Profile By Number allows you to extract public profile information directly from a WhatsApp number.

πŸ‘ User avatar

AntΓ΄nio CΓ©sar

264

5.0

Whatsapp Scraper

inutil_labs/whatsapp-scraper

Fetch Whatsapp profiles data, including: display picture, name and status.

8

1.0

Whatsapp Scraper Profile(unlimited by month)

antonio_cesar/whatsapp-scraper-profile-unlimited-by-month

WhatsApp Profile Scraper lets you extract public profile info from any WhatsApp number β€” unlimited per month.

πŸ‘ User avatar

AntΓ΄nio CΓ©sar

186

5.0

WhatsApp Messages Scraper

extremescrapes/whatsapp-messages-scraper

Scrape and monitor WhatsApp group or private chat messages in real time. Scan the QR code to connect and start collecting structured WhatsApp message data.

πŸ‘ User avatar

Extreme Scrapes

410

1.5

Whatsapp Ads Scrapper [ADVANCED]

scrapeio/whatsapp-scraper-premium

Scrape WhatsApp ads (Click‑to‑WhatsApp campaigns) from the Meta Ad Library by keyword, Facebook Page ID, or Ad Library URL. Extract creatives, copy, CTAs, wa.me deep links, impressions and spend ranges. Filtered to WhatsApp publisher placements. Export to CSV or JSON. No Meta developer app required.

41

5.0

WhatsApp Number Validator - Bulk Check 10K per Run

clearpath/whatsapp-phone-number-validator-api

Check if phone numbers have WhatsApp. Validate up to 10,000 numbers per run from CSV, Excel, or direct input. Yes/no result per number. Clean contact lists before WhatsApp campaigns.

WhatsApp Number Validator

devscrapper/whatsapp-number-validator

Instantly verify if a phone number is active on WhatsApp. Fast, secure, and reliable validation service.

πŸ‘ User avatar

Oussama Production

454

5.0