whatsmcp
whatsmcp
Un servidor MCP sin estado en Cloudflare Workers que expone la Z-API WhatsApp REST API como herramientas, servido a través de Streamable HTTP en https://whatsmcp.unfld.dev/mcp.
Las herramientas se generan en tiempo de compilación a partir de postman.json, por lo que la superficie de herramientas sigue la colección en lugar de mantenerse manualmente. Tres meta-herramientas (zapi_list_endpoints, zapi_describe_endpoint, zapi_request) están siempre registradas, por lo que ningún endpoint queda inalcanzable incluso cuando el filtro del conjunto de herramientas reduce lo que se expone.
Configuración inicial
bun installCrea .dev.vars en la raíz del repositorio (ignorado por git) con tus credenciales de Z-API:
MCP_AUTH_TOKEN=...
ZAPI_INSTANCE_ID=...
ZAPI_INSTANCE_TOKEN=...
ZAPI_CLIENT_TOKEN=...ZAPI_INSTANCE_ID y ZAPI_INSTANCE_TOKEN construyen la URL base de la instancia; ZAPI_CLIENT_TOKEN se envía como encabezado Client-Token. MCP_AUTH_TOKEN es el token de portador estático que los clientes deben presentar.
Related MCP server: WA MCP
Ejecución local
bun run devWrangler sirve el Worker en http://localhost:8787. El endpoint de MCP es http://127.0.0.1:8787/mcp. Los clientes deben enviar uno de:
Authorization: Bearer <MCP_AUTH_TOKEN>
Authorization: <MCP_AUTH_TOKEN>GET /health es público y devuelve { "ok": true, "name": "whatsmcp" }.
Scripts
Script | Qué hace |
| Regenera |
| Ejecuta el Worker localmente con |
| Despliega en Cloudflare |
|
|
| Ejecuta la suite de pruebas |
| Regenera |
Vuelve a ejecutar bun run cf-typegen después de cambiar los bindings o las variables en wrangler.jsonc.
Configuración
ZAPI_TOOLSETS (una variable simple en wrangler.jsonc, valor predeterminado *) selecciona qué categorías de Z-API se registran como herramientas, por ejemplo instance,messages,groups. Las meta-herramientas ignoran este filtro.
Despliegue
Los secretos no se almacenan en wrangler.jsonc. Configúralos una vez por entorno:
wrangler secret put MCP_AUTH_TOKEN
wrangler secret put ZAPI_INSTANCE_ID
wrangler secret put ZAPI_INSTANCE_TOKEN
wrangler secret put ZAPI_CLIENT_TOKEN
wrangler deployEl dominio personalizado whatsmcp.unfld.dev está declarado en wrangler.jsonc y Cloudflare lo aprovisiona en el primer despliegue.
Conexión de un cliente
{
"mcpServers": {
"whatsmcp": {
"url": "https://whatsmcp.unfld.dev/mcp",
"headers": { "Authorization": "Bearer <MCP_AUTH_TOKEN>" }
}
}
}Se aceptan tanto Authorization: Bearer <MCP_AUTH_TOKEN> como la forma sin prefijo Authorization: <MCP_AUTH_TOKEN>. GET /health es público y no requiere autenticación para comprobaciones de disponibilidad.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceWhatsApp MCP server that exposes messaging, groups, contacts, and profile management as tools and resources for AI agents, supporting Baileys and Meta Cloud API.19
- Alicense-qualityCmaintenanceMCP server that connects AI agents to WhatsApp using the multi-device API, enabling messaging, group management, and more as a regular user.15MIT
- Alicense-qualityBmaintenanceMCP server exposing WhatsApp Cloud API operations as tools for AI agents like Claude Code, Cursor, and Codex.MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pedrogmbh/whatsmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server