I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

WhatsApp-MCP-servidor
Servidor de whatsapp mcp
3 years
Works with Finder
1
Github Watches
1
Github Forks
3
Github Stars
WhatsApp MCP Server
A WhatsApp server implementation using the Model Context Protocol (MCP) SDK. This server provides a standardized interface for interacting with WhatsApp through the GreenAPI service.
Features
- WhatsApp session management
- Integration with GreenAPI service
- Standardized MCP protocol implementation
- TypeScript support
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- GreenAPI account and credentials
Installation
- Clone the repository:
git clone <repository-url>
cd whatsapp-mcp-server
- Install dependencies:
npm install
Configuration
The server requires the following environment variables:
-
GREENAPI_API_URL
: The base URL for GreenAPI service -
GREENAPI_API_TOKEN
: Your GreenAPI API token
Usage
- Start the server:
npm start
- The server will start listening for MCP protocol messages through standard input/output.
Available Tools
Open Session
Opens a new WhatsApp session using GreenAPI credentials.
Parameters:
-
sessionId
: A unique session ID -
instanceId
: GreenAPI instance ID -
apiTokenInstance
: GreenAPI API token
Send Message
Sends a message to a specified chat.
Parameters:
-
sessionId
: Session ID from open_session -
chatId
: Recipient chat ID (e.g., 1234567890@c.us or group@g.us) -
message
: The message to send
Get Chats
Retrieves the list of available chats.
Parameters:
-
sessionId
: Session ID from open_session
Create Group
Creates a new WhatsApp group.
Parameters:
-
sessionId
: Session ID from open_session -
groupName
: Name of the group to create -
participants
: Array of phone numbers with domain (e.g. 12345@c.us)
Get Chat History
Retrieves recent messages from a specified chat (personal or group).
Parameters:
-
sessionId
: Session ID from open_session -
chatId
: Chat ID to retrieve messages from (e.g., 1234567890@c.us or group@g.us) -
count
: Number of messages to retrieve (default: 50)
Important: To receive incoming messages in the chat history, you need to enable the "Receive webhooks on incoming messages and files" setting using the SetSettings method or through the GreenAPI console. Without this setting enabled, the chat history will only show outgoing messages.
Send File
Sends a file to a specified chat.
Parameters:
-
sessionId
: Session ID from open_session -
chatId
: WhatsApp chat ID (e.g., 1234567890@c.us) -
fileUrl
: Public URL of the file to send -
fileName
: (Optional) Name of the file as seen by recipient -
caption
: (Optional) Caption text to display below the file
Add Participant
Adds a participant to an existing WhatsApp group.
Parameters:
-
sessionId
: Session ID from open_session -
groupId
: ID of the WhatsApp group (e.g., group@g.us) -
participantChatId
: Chat ID of the participant to add (e.g., 1234567890@c.us)
Remove Participant
Removes a participant from an existing WhatsApp group.
Parameters:
-
sessionId
: Session ID from open_session -
groupId
: ID of the WhatsApp group (e.g., group@g.us) -
participantChatId
: Chat ID of the participant to remove (e.g., 1234567890@c.us)
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.
Espejo de https: //github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。
Reviews

user_Mccyawph
As a dedicated user of the whatsapp-mcp-server, I have found this tool incredibly useful for managing multiple connections with ease. Piyushgupta53 has done a fantastic job creating a robust and reliable server. The setup is straightforward, and the documentation on the GitHub page is clear. Highly recommend it to anyone needing efficient WhatsApp connectivity management!