KosmoKrator

communication

WhatsApp Business MCP Gateway for AI Agents

Expose WhatsApp Business tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

6 functions 4 read 2 write Bearer token auth

WhatsApp Business MCP Gateway

Expose WhatsApp Business to MCP clients with `kosmokrator mcp:serve --integration=whatsapp`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=whatsapp --write=deny --json
{
  "mcpServers": {
    "kosmokrator-whatsapp": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=whatsapp",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=whatsapp --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__whatsapp__whatsapp_send_message whatsapp.whatsapp_send_message Write write
integration__whatsapp__whatsapp_get_message whatsapp.whatsapp_get_message Read read
integration__whatsapp__whatsapp_list_templates whatsapp.whatsapp_list_templates Read read
integration__whatsapp__whatsapp_list_contacts whatsapp.whatsapp_list_contacts Read read
integration__whatsapp__whatsapp_send_template whatsapp.whatsapp_send_template Write write
integration__whatsapp__whatsapp_get_current_user whatsapp.whatsapp_get_current_user Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.