Supergreen WhatsApp
Hosted WhatsApp MCP server for AI agents — read, search, send messages, media, polls, and groups.
Should I use this
Quality & Safety
Findings (1)
- LOWin convert_lid_to_number
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"whatsapp": {
"url": "https://api.supergreen.cc/mcp"
}
}
}Remote endpoints
https://api.supergreen.cc/mcpstreamable-httpWhat it can do
Tool inventory
Tools (21)
🟢get_account_status
Check whether the connected WhatsApp line is online, its phone number, display name, and recent connection health.
Input Schema
{
"type": "object",
"properties": {}
}🟢list_chats(limit, query)
List recent WhatsApp chats (1:1 and groups) ordered by most recent activity from the 7-day sync buffer, with names and last message preview.
Input Schema
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of recent chats to return (default: 20, max: 100)",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"query": {
"description": "Optional case-insensitive filter matched against chat name, phone number, or last message text",
"type": "string"
}
}
}🟢search_contacts(query, limit)
Search WhatsApp contacts and groups by name, pushname, or phone number to find their chat ID.
Input Schema
{
"type": "object",
"properties": {
"query": {
"description": "Name, pushname, or phone number substring to search for",
"type": "string",
"minLength": 1
},
"limit": {
"description": "Maximum number of matching contacts/groups to return (default: 20, max: 50)",
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"query"
]
}🟢search_messages(query, chatId, limit)
Search recent WhatsApp messages containing a text query in the 7-day sync buffer, optionally scoped to one chat.
Input Schema
{
"type": "object",
"properties": {
"query": {
"description": "Case-insensitive text substring to search for in recent messages",
"type": "string",
"minLength": 1
},
"chatId": {
"description": "Optional chat ID to restrict search to a single conversation or group",
"type": "string"
},
"limit": {
"description": "Maximum number of matching messages to return (default: 20, max: 100)",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"query"
]
}🟢get_messages(chatId, count, id, fromMe, direction, ...)
Read recent messages from a specific WhatsApp chat or group (supports pagination via message ID cursor and fromMe filter).
Input Schema
{
"type": "object",
"properties": {
"chatId": {
"description": "Chat ID to fetch messages from (e.g., '[email protected]', '[email protected]', or bare phone number)",
"type": "string"
},
"count": {
"description": "Number of messages to return (default: 20, max: 200)",
"type": "integer",
"minimum": 1,
"maximum": 200
},
"id": {
"description": "Message ID cursor for pagination",
"type": "string"
},
"fromMe": {
"description": "Filter by whether messages were sent by you",
"type": "boolean"
},
"direction": {
"description": "Fetch messages 'before' or 'after' the given message ID (default: 'before')",
"type": "string",
"enum": [
"before",
"after"
]
},
"threadId": {
"description": "Optional reconstructed group thread ID to filter messages to that thread",
"type": "string"
}
},
"required": [
"chatId"
]
}🟢get_groups(useCache)
List all WhatsApp groups the line participates in, along with admin status for each group.
Input Schema
{
"type": "object",
"properties": {
"useCache": {
"description": "Whether to use cached group metadata (defaults to true). Set to false for a fresh fetch.",
"type": "boolean"
}
}
}🟢get_group_members(groupId)
List members of a WhatsApp group and their admin status.
Input Schema
{
"type": "object",
"properties": {
"groupId": {
"description": "Group ID (e.g., '[email protected]')",
"type": "string"
}
},
"required": [
"groupId"
]
}🟢get_group_details(groupLink)
Inspect metadata and participants of a WhatsApp group from its invite link.
Input Schema
{
"type": "object",
"properties": {
"groupLink": {
"description": "WhatsApp group invite link (e.g., 'https://chat.whatsapp.com/AbCdEfGhIjK')",
"type": "string"
}
},
"required": [
"groupLink"
]
}🟢get_join_requests(groupId)
List pending membership join requests for a WhatsApp group where you are an admin.
Input Schema
{
"type": "object",
"properties": {
"groupId": {
"description": "Group ID to check for join requests",
"type": "string"
}
},
"required": [
"groupId"
]
}🟢check_whatsapp_number(targetNumber)
Check whether a phone number has an active WhatsApp account and retrieve its JID.
Input Schema
{
"type": "object",
"properties": {
"targetNumber": {
"description": "Phone number to check in international format (e.g., '972501234567' or '+972501234567')",
"type": "string"
}
},
"required": [
"targetNumber"
]
}🟢convert_lid_to_number(lid)
Resolve a WhatsApp Linked ID (e.g. '12345@lid') to a phone number.
Input Schema
{
"type": "object",
"properties": {
"lid": {
"description": "LID to resolve (e.g., '119846817792023@lid')",
"type": "string"
}
},
"required": [
"lid"
]
}🟡send_message(toNumber, message, linkPreview, quotedMessageId)
Send a text message to a WhatsApp contact or group. Always confirm recipient and content with the user first.
Input Schema
{
"type": "object",
"properties": {
"toNumber": {
"description": "Recipient's WhatsApp ID (e.g., '[email protected]' for individuals or '[email protected]' for groups)",
"type": "string"
},
"message": {
"description": "The text message to send",
"type": "string"
},
"linkPreview": {
"description": "Whether to show link previews for URLs in the message (default: false)",
"type": "boolean"
},
"quotedMessageId": {
"description": "ID of a message to quote/reply to",
"type": "string"
}
},
"required": [
"toNumber",
"message"
]
}🟡send_media(toNumber, base64, url, type, mimeType, ...)
Send an image, video, document, or audio file (via public URL or base64) with an optional caption to a WhatsApp chat or group.
Input Schema
{
"type": "object",
"properties": {
"toNumber": {
"description": "Recipient's WhatsApp ID",
"type": "string"
},
"base64": {
"description": "Base64 encoded media data (with or without data URL prefix)",
"type": "string"
},
"url": {
"description": "Public HTTP/HTTPS URL of the media file to send",
"type": "string",
"format": "uri"
},
"type": {
"description": "Media type: 'image', 'video', 'document', or 'audio'",
"type": "string",
"enum": [
"image",
"video",
"document",
"audio"
]
},
"mimeType": {
"description": "Media MIME type (e.g., 'image/jpeg', 'video/mp4', 'application/pdf'). Auto-detected from data URL if not provided",
"type": "string"
},
"filename": {
"description": "Filename for the media. Auto-generated from MIME type if not provided",
"type": "string"
},
"caption": {
"description": "Optional caption text for the media",
"type": "string"
}
},
"required": [
"toNumber",
"type"
]
}🟡send_poll(toNumber, name, choices, selectableCount)
Create and send a poll to a WhatsApp group.
Input Schema
{
"type": "object",
"properties": {
"toNumber": {
"description": "Group ID to send the poll to (e.g., '[email protected]')",
"type": "string"
},
"name": {
"description": "The poll question/title",
"type": "string"
},
"choices": {
"description": "Array of poll options (minimum 2)",
"type": "array",
"items": {
"type": "string"
}
},
"selectableCount": {
"description": "How many options a voter may select (default: 1)",
"type": "number"
}
},
"required": [
"toNumber",
"name",
"choices"
]
}🟡send_reaction(messageId, reaction)
Send an emoji reaction to a WhatsApp message.
Input Schema
{
"type": "object",
"properties": {
"messageId": {
"description": "ID of the message to react to",
"type": "string"
},
"reaction": {
"description": "Reaction emoji to send",
"type": "string"
}
},
"required": [
"messageId",
"reaction"
]
}🟡edit_message(messageId, newText)
Edit the text of a previously sent WhatsApp message.
Input Schema
{
"type": "object",
"properties": {
"messageId": {
"description": "ID of the message to edit (returned from sendMessage)",
"type": "string"
},
"newText": {
"description": "The new text for the message",
"type": "string"
}
},
"required": [
"messageId",
"newText"
]
}🔴delete_message(chatId, messageId)
Delete a previously sent WhatsApp message.
Input Schema
{
"type": "object",
"properties": {
"chatId": {
"description": "Chat ID (e.g. [email protected] for 1:1 or [email protected] for group)",
"type": "string"
},
"messageId": {
"description": "ID of the message to delete",
"type": "string"
}
},
"required": [
"chatId",
"messageId"
]
}🟡add_group_member(groupId, userId)
Add a user to a WhatsApp group where you are an admin.
Input Schema
{
"type": "object",
"properties": {
"groupId": {
"description": "Group ID (e.g., '[email protected]')",
"type": "string"
},
"userId": {
"description": "User ID to add (e.g., '[email protected]')",
"type": "string"
}
},
"required": [
"groupId",
"userId"
]
}🔴remove_group_member(groupId, userId)
Remove a user from a WhatsApp group where you are an admin.
Input Schema
{
"type": "object",
"properties": {
"groupId": {
"description": "Group ID (e.g., '[email protected]')",
"type": "string"
},
"userId": {
"description": "User ID to remove (e.g., '[email protected]')",
"type": "string"
}
},
"required": [
"groupId",
"userId"
]
}⚪approve_join_requests(groupId, requesterIds)
Approve one or more pending join requests for a WhatsApp group.
Input Schema
{
"type": "object",
"properties": {
"groupId": {
"description": "Group ID where requests should be approved",
"type": "string"
},
"requesterIds": {
"description": "Array of requester IDs to approve, or null to approve all",
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"required": [
"groupId"
]
}🔴reject_join_requests(groupId, requesterIds)
Reject one or more pending join requests for a WhatsApp group.
Input Schema
{
"type": "object",
"properties": {
"groupId": {
"description": "Group ID where requests should be rejected",
"type": "string"
},
"requesterIds": {
"description": "Array of requester IDs to reject",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"groupId",
"requesterIds"
]
}Community
Evidence