PlanetScale MCP by usefulapi

v1.2.1
io.usefulapi/planetscale Checked 1 day ago Published 7 hours ago

Read databases, branches and schemas; create branches and deploy requests in PlanetScale.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

planetscale_list_organizations List organizations

List the organizations the service token can see. Start here to find the organization name. GET /v1/organizations.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults per page (default 25).

planetscale_get_organization Get an organization

Get one organization: name, plan and settings. GET /v1/organizations/{organization}.

ParameterTypeDescription
organization *stringOrganization name (the slug in the PlanetScale URL).

planetscale_list_public_regions List public regions

List the PlanetScale regions and their cloud providers. Public endpoint: GET /v1/regions.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults per page (default 25).

planetscale_list_databases List databases

List the databases in an organization, with their state and kind (Postgres or MySQL). GET /v1/organizations/{organization}/databases.

ParameterTypeDescription
organization *stringOrganization name (the slug in the PlanetScale URL).
kindstringFilter by database kind, for example postgresql or vitess.
pageintegerPage number (default 1).
per_pageintegerResults per page (default 25).
qstringFilter by database name.

planetscale_get_database Get a database

Get one database: state, default branch, regions and settings. GET /v1/organizations/{organization}/databases/{database}.

ParameterTypeDescription
database *stringDatabase name.
organization *stringOrganization name (the slug in the PlanetScale URL).

planetscale_list_branches List branches

List the branches of a database, with ready state and whether each is a production branch. GET .../databases/{database}/branches.

ParameterTypeDescription
database *stringDatabase name.
organization *stringOrganization name (the slug in the PlanetScale URL).
orderstringSort order, for example created_at.
pageintegerPage number (default 1).
per_pageintegerResults per page (default 25).
productionbooleanOnly production (true) or only development (false) branches.
qstringFilter by branch name.
safe_migrationsbooleanFilter by safe migrations setting.

planetscale_get_branch Get a branch

Get one branch: ready state, parent branch, region and access host. GET .../branches/{branch}.

ParameterTypeDescription
branch *stringBranch name, for example main.
database *stringDatabase name.
organization *stringOrganization name (the slug in the PlanetScale URL).

planetscale_get_branch_schema Get a branch schema

Get the CREATE statements (schema only, no table data) of a branch. GET .../branches/{branch}/schema.

ParameterTypeDescription
branch *stringBranch name, for example main.
database *stringDatabase name.
organization *stringOrganization name (the slug in the PlanetScale URL).
keyspacestringKeyspace name (Vitess databases only).
namespacestringNamespace name (Postgres databases only).

planetscale_list_branch_backups List branch backups

List the backups of a branch, with state and time. GET .../branches/{branch}/backups.

ParameterTypeDescription
branch *stringBranch name, for example main.
database *stringDatabase name.
organization *stringOrganization name (the slug in the PlanetScale URL).
fromstringOnly backups created after this ISO 8601 time.
pageintegerPage number (default 1).
per_pageintegerResults per page (default 25).
statestringFilter by backup state, for example success.
tostringOnly backups created before this ISO 8601 time.

planetscale_list_deploy_requests List deploy requests

List schema change deploy requests of a database, with state and branches. GET .../deploy-requests.

ParameterTypeDescription
database *stringDatabase name.
organization *stringOrganization name (the slug in the PlanetScale URL).
branchstringFilter by source branch.
into_branchstringFilter by target branch.
pageintegerPage number (default 1).
per_pageintegerResults per page (default 25).
statestringFilter by state, for example open, closed or merged.

planetscale_get_deploy_request Get a deploy request

Get one deploy request by its number: state, diff summary and deployment status. GET .../deploy-requests/{number}.

ParameterTypeDescription
database *stringDatabase name.
number *integerDeploy request number (from planetscale_list_deploy_requests).
organization *stringOrganization name (the slug in the PlanetScale URL).

planetscale_create_branch Create a branch

Create a development branch from a parent branch (default main). Creates billable resources; it does not change production. POST .../branches.

ParameterTypeDescription
database *stringDatabase name.
name *stringName of the new branch.
organization *stringOrganization name (the slug in the PlanetScale URL).
parent_branchstringParent branch to copy the schema from (default main).

planetscale_create_deploy_request Create a deploy request

Open a deploy request that merges schema changes from a branch into another branch. Opening it does not deploy; a person must review and deploy it. POST .../deploy-requests.

ParameterTypeDescription
branch *stringSource branch with the schema changes.
database *stringDatabase name.
into_branch *stringTarget branch, usually main.
organization *stringOrganization name (the slug in the PlanetScale URL).
notesstringNotes shown on the deploy request.