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.

7 functions 6 read 1 write Bearer token auth

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.

Machine-Readable Metadata
integration_slug
planetscale
route_slug
planetscale
package
planetscale
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

PlanetScale MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for PlanetScale.

PlanetScale CLI Matrix

Use these pages for direct PlanetScale CLI workflows in scripts, CI, cron, and agent wrappers.

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.