KosmoKrator

data

PlanetScale MCP, CLI, and Lua Integration for AI Agents

PlanetScale integration docs for AI agents: MCP gateway setup, PlanetScale CLI commands, Lua API reference, credentials, and function schemas.

PlanetScale for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
planetscale.planetscale_list_databases Read read 3 List databases in a PlanetScale organization. Returns a paginated list of databases with their names, regions, and states.
planetscale.planetscale_get_database Read read 2 Get details of a specific PlanetScale database, including its state, region, and branch count.
planetscale.planetscale_create_database Write write 4 Create a new database in a PlanetScale organization. Specify the database name and optionally a region and notes.
planetscale.planetscale_list_branches Read read 4 List branches of a PlanetScale database. Returns a paginated list of branches with their names, roles, and states.
planetscale.planetscale_get_branch Read read 3 Get details of a specific branch of a PlanetScale database, including its role, region, and readiness.
planetscale.planetscale_list_organizations Read read 0 List organizations the authenticated user belongs to. Useful for discovering organization names needed by other PlanetScale tools.
planetscale.planetscale_get_current_user Read read 0 Get the profile of the currently authenticated PlanetScale user. Useful for verifying API credentials and retrieving account information.