Skip to main content
Glama
Evolution API WhatsApp MCP Server

Evolution API WhatsApp MCP Server

by luiso2

Evolution API MCP Server - Guía de Uso

Configuración Actual

Related MCP server: WhatsApp Cloud API MCP Server

Endpoints Disponibles

1. Información del Servidor

curl https://mcp-evolution-api-fixed-production.up.railway.app/

2. Estado de Salud

curl https://mcp-evolution-api-fixed-production.up.railway.app/api/health \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24"

3. Listar Instancias

curl https://mcp-evolution-api-fixed-production.up.railway.app/api/instances \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24"

4. Estado de una Instancia

curl https://mcp-evolution-api-fixed-production.up.railway.app/api/instances/Luis2/status \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24"

5. Enviar Mensaje de Texto

curl -X POST https://mcp-evolution-api-fixed-production.up.railway.app/api/send/text \
  -H "Content-Type: application/json" \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24" \
  -d '{
    "instanceName": "Luis2",
    "number": "554198908495",
    "text": "Hola! Este es un mensaje de prueba"
  }'

6. Verificar Números de WhatsApp

curl -X POST https://mcp-evolution-api-fixed-production.up.railway.app/api/check-numbers \
  -H "Content-Type: application/json" \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24" \
  -d '{
    "instanceName": "Luis2",
    "numbers": ["554198908495", "5541999999999"]
  }'

7. Listar Contactos

curl https://mcp-evolution-api-fixed-production.up.railway.app/api/instances/Luis2/contacts \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24"

8. Listar Grupos

curl https://mcp-evolution-api-fixed-production.up.railway.app/api/instances/Luis2/groups \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24"

9. Listar Chats

curl https://mcp-evolution-api-fixed-production.up.railway.app/api/instances/Luis2/chats \
  -H "X-API-Key: BC10D87095B7-44E2-B1A4-F03BE2BECE24"

Solución de Problemas

El mensaje no llega a WhatsApp

  1. Verificar que la instancia esté conectada:

    • La instancia debe tener estado "open" o "connected"

    • Si no está conectada, necesitas escanear el código QR nuevamente

  2. Formato del número:

    • Brasil: 55 + código de área + número (ejemplo: 554198908495)

    • Sin espacios, guiones o símbolos

    • Sin el símbolo + al inicio

  3. Verificar si el número tiene WhatsApp:

    • Usa el endpoint /api/check-numbers para verificar

Error "Access denied"

  • Verifica que estés enviando el header X-API-Key con el valor correcto

  • El API Key debe ser: BC10D87095B7-44E2-B1A4-F03BE2BECE24

Error de conexión

  1. Verifica que Evolution API esté funcionando:

    curl https://evolution-api-evolution-api.dqyvuv.easypanel.host/instance/fetchInstances \
      -H "apikey: BC10D87095B7-44E2-B1A4-F03BE2BECE24"
  2. Si Evolution API no responde, el problema está en Easypanel

Scripts de Prueba

Hay dos scripts de prueba disponibles:

  1. test-mcp.sh - Prueba el servidor MCP

  2. test-evolution-direct.sh - Prueba directamente Evolution API

Para ejecutarlos en Windows, usa Git Bash:

bash test-mcp.sh
bash test-evolution-direct.sh

Actualización del Código

Cuando hagas cambios en el código:

  1. Commit y push a GitHub:

    git add .
    git commit -m "Descripción del cambio"
    git push origin master
  2. Railway detectará automáticamente los cambios y redesplegará

  3. Verifica el estado del deployment en Railway:

Estructura del Proyecto

evolution-api-mcp-server/
├── src/
│   ├── index.ts           # Archivo principal
│   ├── routes/
│   │   └── api.ts         # Rutas HTTP de la API
│   ├── services/
│   │   ├── evolution-api.ts  # Cliente de Evolution API
│   │   └── template-service.ts # Servicio de templates
│   └── types/
│       └── evolution.ts    # Tipos TypeScript
├── package.json
├── tsconfig.json
├── Dockerfile
└── .env                   # Variables de entorno (local)

Variables de Entorno en Railway

Las siguientes variables están configuradas en Railway:

Notas Importantes

  1. Seguridad: Nunca expongas el API Key en código público

  2. Rate Limiting: Evolution API puede tener límites de tasa

  3. Sesión de WhatsApp: La sesión puede expirar y requerir nuevo escaneo de QR

  4. Números bloqueados: WhatsApp puede bloquear números que envían muchos mensajes

Contacto y Soporte

Para problemas con:


Última actualización: 14 de Septiembre de 2025

Available Tools

25 tools
add_participantsC

Add participants to a group

Inputs: groupJid (required), instanceName (required), participants (required).

check_numberC

Check if phone numbers have WhatsApp

Inputs: instanceName (required), numbers (required).

connect_instanceC

Connect a WhatsApp instance

Inputs: instanceName (required).

create_groupB

Create a new WhatsApp group

Inputs: instanceName (required), participants (required), subject (required), description.

create_instanceB

Create a new WhatsApp instance

Inputs: instanceName (required), qrcode, webhookUrl.

create_templateC

Create a new message template

Inputs: name (required), text (required), category, description, +2 more.

delete_instanceB

Delete a WhatsApp instance

Inputs: instanceName (required).

delete_templateC

Delete a custom template

Inputs: templateId (required).

get_chatsC

Get all chats

Inputs: instanceName (required).

get_messagesC

Get messages from a chat

Inputs: instanceName (required), remoteJid (required), limit.

get_templateB

Get a specific template by ID

Inputs: templateId (required).

instance_statusA

Get connection status of an instance

Inputs: instanceName (required).

list_contactsC

List all contacts

Inputs: instanceName (required).

list_groupsC

List all groups

Inputs: instanceName (required), getParticipants.

list_instancesC

List all WhatsApp instances

Inputs: no named parameters.

list_templatesC

List all message templates

Inputs: category, tags.

read_messageC

Mark message as read

Inputs: instanceName (required), remoteJid (required), fromMe, id.

remove_participantsB

Remove participants from a group

Inputs: groupJid (required), instanceName (required), participants (required).

search_templatesC

Search templates by text

Inputs: query (required).

send_buttonsD

Send message with buttons

Inputs: buttons (required), instanceName (required), number (required), description, +2 more.

send_listC

Send interactive list message

Inputs: instanceName (required), number (required), sections (required), buttonText, +2 more.

send_mediaC

Send media (image, video, audio, document)

Inputs: instanceName (required), media (required), mediatype (required), number (required), +2 more.

send_templateC

Send a message using a template

Inputs: instanceName (required), number (required), templateId (required), variables (required).

send_textC

Send a text message

Inputs: instanceName (required), number (required), text (required), delay.

update_templateB

Update an existing template

Inputs: templateId (required), description, name, text, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes targeting specific WhatsApp operations like instance management, messaging, group handling, and template management. However, there is some potential overlap between 'send_text', 'send_template', 'send_buttons', 'send_list', and 'send_media' as they all involve sending messages, though their descriptions differentiate them by message type.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, such as 'create_group', 'list_contacts', 'send_media', and 'update_template'. All tools use snake_case with clear, descriptive verbs aligned with their actions, making the set predictable and easy to understand.

    Tool Count3/5

    With 25 tools, the count is on the higher end for an MCP server, bordering on heavy. While it covers a broad range of WhatsApp functionalities comprehensively, it may feel overwhelming or redundant in some areas, such as multiple message-sending tools, which could have been consolidated.

    Completeness5/5

    The tool set provides extensive coverage for WhatsApp operations, including instance lifecycle (create, connect, delete, status), messaging (text, media, templates, interactive), group management (create, add/remove participants, list), and template CRUD (create, get, update, delete, list, search). No obvious gaps are present for the domain.

    Related MCP Connectors

    Related MCP Servers