KosmoKrator

analytics

Plausible Analytics MCP Gateway for AI Agents

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

8 functions 4 read 4 write API key auth

Plausible Analytics MCP Gateway

Expose Plausible Analytics to MCP clients with `kosmokrator mcp:serve --integration=plausible`.

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=plausible --write=deny --json
{
  "mcpServers": {
    "kosmokrator-plausible": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=plausible",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__plausible__plausible_query_stats plausible.plausible_query_stats Read read
integration__plausible__plausible_realtime_visitors plausible.plausible_realtime_visitors Read read
integration__plausible__plausible_list_sites plausible.plausible_list_sites Read read
integration__plausible__plausible_create_site plausible.plausible_create_site Write write
integration__plausible__plausible_delete_site plausible.plausible_delete_site Write write
integration__plausible__plausible_list_goals plausible.plausible_list_goals Read read
integration__plausible__plausible_create_goal plausible.plausible_create_goal Write write
integration__plausible__plausible_delete_goal plausible.plausible_delete_goal Write write

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.