KosmoKrator

data

PlanetScale MCP Gateway for AI Agents

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

7 functions 6 read 1 write Bearer token auth

PlanetScale MCP Gateway

Expose PlanetScale to MCP clients with `kosmokrator mcp:serve --integration=planetscale`.

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

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__planetscale__planetscale_list_databases planetscale.planetscale_list_databases Read read
integration__planetscale__planetscale_get_database planetscale.planetscale_get_database Read read
integration__planetscale__planetscale_create_database planetscale.planetscale_create_database Write write
integration__planetscale__planetscale_list_branches planetscale.planetscale_list_branches Read read
integration__planetscale__planetscale_get_branch planetscale.planetscale_get_branch Read read
integration__planetscale__planetscale_list_organizations planetscale.planetscale_list_organizations Read read
integration__planetscale__planetscale_get_current_user planetscale.planetscale_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.