KosmoKrator

other

Clerk MCP Gateway for AI Agents

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

7 functions 4 read 3 write API key auth

Clerk MCP Gateway

Expose Clerk to MCP clients with `kosmokrator mcp:serve --integration=clerk`.

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

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__clerk__clerk_list_users clerk.clerk_list_users Read read
integration__clerk__clerk_get_user clerk.clerk_get_user Read read
integration__clerk__clerk_create_user clerk.clerk_create_user Write write
integration__clerk__clerk_update_user clerk.clerk_update_user Write write
integration__clerk__clerk_delete_user clerk.clerk_delete_user Write write
integration__clerk__clerk_list_organizations clerk.clerk_list_organizations Read read
integration__clerk__clerk_get_current_user clerk.clerk_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.