whatsmcp
whatsmcp
Ein zustandsloser MCP-Server auf Cloudflare Workers, der die
Z-API WhatsApp REST-API als Tools bereitstellt, ausgeliefert über Streamable HTTP unter
https://whatsmcp.unfld.dev/mcp.
Tools werden zur Build-Zeit aus postman.json generiert, sodass die Tool-Oberfläche der
Sammlung folgt, anstatt manuell gepflegt zu werden. Drei Meta-Tools (zapi_list_endpoints,
zapi_describe_endpoint, zapi_request) sind immer registriert, sodass kein Endpunkt jemals unerreichbar ist,
selbst wenn der Toolset-Filter die bereitgestellten Tools einschränkt.
Einrichtung
bun installErstellen Sie .dev.vars im Repository-Stammverzeichnis (gitignoriert) mit Ihren Z-API-Anmeldedaten:
MCP_AUTH_TOKEN=...
ZAPI_INSTANCE_ID=...
ZAPI_INSTANCE_TOKEN=...
ZAPI_CLIENT_TOKEN=...ZAPI_INSTANCE_ID und ZAPI_INSTANCE_TOKEN bilden die Instanz-Basis-URL; ZAPI_CLIENT_TOKEN wird
als Client-Token-Header gesendet. MCP_AUTH_TOKEN ist das statische Bearer-Token, das Clients vorweisen müssen.
Related MCP server: WA MCP
Lokale Ausführung
bun run devWrangler stellt den Worker unter http://localhost:8787 bereit. Der MCP-Endpunkt ist
http://127.0.0.1:8787/mcp. Clients müssen eines der folgenden senden:
Authorization: Bearer <MCP_AUTH_TOKEN>
Authorization: <MCP_AUTH_TOKEN>GET /health ist öffentlich und gibt { "ok": true, "name": "whatsmcp" } zurück.
Skripte
Skript | Was es tut |
| Generiert |
| Führt den Worker lokal mit |
| Stellt auf Cloudflare bereit |
|
|
| Führt die Testsuite aus |
| Generiert |
Führen Sie bun run cf-typegen erneut aus, nachdem Sie Bindungen oder Variablen in wrangler.jsonc geändert haben.
Konfiguration
ZAPI_TOOLSETS (eine einfache Variable in wrangler.jsonc, Standardwert *) wählt aus, welche Z-API-Kategorien
als Tools registriert werden – zum Beispiel instance,messages,groups. Die Meta-Tools ignorieren diesen Filter.
Bereitstellung
Geheimnisse werden nicht in wrangler.jsonc gespeichert. Setzen Sie sie einmal pro Umgebung:
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 deployDie benutzerdefinierte Domain whatsmcp.unfld.dev ist in wrangler.jsonc deklariert und wird von Cloudflare
bei der ersten Bereitstellung bereitgestellt.
Verbinden eines Clients
{
"mcpServers": {
"whatsmcp": {
"url": "https://whatsmcp.unfld.dev/mcp",
"headers": { "Authorization": "Bearer <MCP_AUTH_TOKEN>" }
}
}
}Sowohl Authorization: Bearer <MCP_AUTH_TOKEN> als auch die reine
Authorization: <MCP_AUTH_TOKEN>-Form werden akzeptiert. GET /health ist öffentlich
und für Uptime-Checks nicht authentifiziert.
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