ultramsg-mcp
Allows sending and receiving WhatsApp messages (text, images, documents, audio, voice notes, video, stickers, locations, contacts, reactions) and managing chats, contacts, and groups via the UltraMsg API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ultramsg-mcpSend a WhatsApp text to 34600000000: 'Meeting at 3pm'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
UltraMsg MCP
Servidor MCP (Model Context Protocol) para la API de WhatsApp de UltraMsg. Permite a Claude (Desktop / Cowork / cualquier cliente MCP) enviar y leer mensajes de WhatsApp: texto, imágenes, documentos, audio, notas de voz, vídeo, stickers, ubicaciones, contactos y reacciones, además de consultar el estado de la instancia, chats, contactos y grupos.
Genérico y portable: no incluye ninguna credencial. Configura tu instancia y token por variables de entorno.
Endpoints / URL base
UltraMsg expone una API REST por instancia:
https://api.ultramsg.com/{INSTANCE_ID}/...Tu INSTANCE_ID y TOKEN están en el panel de UltraMsg (sección Instance).
Related MCP server: mcp-evolution
Instalación
git clone https://github.com/<usuario>/ultramsg-mcp.git
cd ultramsg-mcp
pip install -r requirements.txtConfiguración
Por variables de entorno (recomendado):
Variable | Obligatoria | Descripción |
| ✅ | ID de instancia, p.ej. |
| ✅ | Token de la instancia |
| ❌ | Por defecto |
| ❌ |
|
| ❌ | Lista de números permitidos como destinatario (coma-separada). Vacío = cualquiera |
| recomendado |
|
Alternativa: copia config.json.example a config.json (excluido por .gitignore) y rellena tus datos.
Registro en Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"ultramsg": {
"command": "python",
"args": ["C:/ruta/a/ultramsg-mcp/server.py"],
"env": {
"ULTRAMSG_INSTANCE_ID": "instanceXXXXXX",
"ULTRAMSG_TOKEN": "tu_token",
"PYTHONUTF8": "1"
}
}
}
}Reinicia Claude Desktop tras editar el config.
Herramientas (27)
Lectura (READ)
ultramsg_instance_status— estado de la instancia (conectada, batería…)ultramsg_instance_me— cuenta de WhatsApp vinculadaultramsg_instance_settings— configuración (webhooks, delays…)ultramsg_list_messages— lista mensajes (filtro por estado, paginado)ultramsg_message_statistics— estadísticas de envíoultramsg_list_chats— chatsultramsg_chat_messages— mensajes de un chatultramsg_list_contacts— contactosultramsg_check_number— comprueba si un número está en WhatsAppultramsg_list_groups— gruposultramsg_get_group— detalle de un grupo
Envíos (WRITE)
ultramsg_send_text— textoultramsg_send_image— imagen (URL o base64) + captionultramsg_send_document— documento (PDF, docx…)ultramsg_send_audio— audio (mp3)ultramsg_send_voice— nota de voz (ogg/opus)ultramsg_send_video— vídeoultramsg_send_sticker— sticker (webp)ultramsg_send_location— ubicación (lat/lng)ultramsg_send_contact— compartir contactoultramsg_send_reaction— reaccionar a un mensaje
Críticas (CRITICAL — requieren ULTRAMSG_ALLOW_CRITICAL=1)
ultramsg_delete_message— borrar mensaje enviadoultramsg_clear_messages— vaciar cola/historialultramsg_instance_restart— reiniciar instanciaultramsg_instance_logout— cerrar sesión (desvincula el teléfono)ultramsg_block_contact/ultramsg_unblock_contact
Las acciones críticas están bloqueadas por defecto porque pueden desconectar o alterar la instancia de WhatsApp. Se habilitan explícitamente con
ULTRAMSG_ALLOW_CRITICAL=1.
Formato de destinatario
Número con prefijo de país:
34600000000O
chatId:34600000000@c.us(contacto) /...@g.us(grupo)
El servidor normaliza +, espacios y guiones automáticamente.
Pruebas
# requiere credenciales + un número de prueba propio
export TEST_TO=34600000000
python test_mcp.py # cobertura de los 27 endpoints (READ/WRITE/CRITICAL)
python test_handshake.py # handshake MCP por stdio (initialize + tools/list)Stack
Python 3 + FastMCP + requests.
Licencia
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
WhatsApp (Web + Business API), SMS, contacts, and call records via 2Chat's MCP server.
Unified messaging MCP server: WhatsApp, Instagram, Telegram, SMS, Messenger & email support inbox
WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history — all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.
Your own WhatsApp as an MCP server: read, search and send from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP (Multi-Agent Conversation Protocol) Server that enables interaction with the WhatsApp Business API, allowing agents to send messages, manage media, and perform other WhatsApp business operations through natural language.1-
- AlicenseBqualityCmaintenanceMCP server that integrates Evolution API to enable WhatsApp messaging, chat management, group operations, and instance control through natural language tools.541MIT

lingtai-whatsappofficial
AlicenseNot gradedqualityFmaintenanceMCP server for interacting with the official Meta WhatsApp Business Platform/Cloud API, enabling sending messages, managing contacts, templates, and handling webhook callbacks.Apache 2.0- AlicenseBqualityBmaintenanceMCP server that enables AI agents to operate WhatsApp via Visto Azul API: send text, media, PIX charges, manage campaigns and contacts, and configure webhooks using natural language.118 npmMIT