PlanetScale MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 25). |
planetscale_get_organization Get an organization
Get one organization: name, plan and settings. GET /v1/organizations/{organization}.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
organization * | string | Organization name (the slug in the PlanetScale URL). |
kind | string | Filter by database kind, for example postgresql or vitess. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 25). |
q | string | Filter by database name. |
planetscale_get_database Get a database
Get one database: state, default branch, regions and settings. GET /v1/organizations/{organization}/databases/{database}.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name. |
organization * | string | Organization 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name. |
organization * | string | Organization name (the slug in the PlanetScale URL). |
order | string | Sort order, for example created_at. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 25). |
production | boolean | Only production (true) or only development (false) branches. |
q | string | Filter by branch name. |
safe_migrations | boolean | Filter by safe migrations setting. |
planetscale_get_branch Get a branch
Get one branch: ready state, parent branch, region and access host. GET .../branches/{branch}.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch name, for example main. |
database * | string | Database name. |
organization * | string | Organization 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.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch name, for example main. |
database * | string | Database name. |
organization * | string | Organization name (the slug in the PlanetScale URL). |
keyspace | string | Keyspace name (Vitess databases only). |
namespace | string | Namespace 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.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch name, for example main. |
database * | string | Database name. |
organization * | string | Organization name (the slug in the PlanetScale URL). |
from | string | Only backups created after this ISO 8601 time. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 25). |
state | string | Filter by backup state, for example success. |
to | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name. |
organization * | string | Organization name (the slug in the PlanetScale URL). |
branch | string | Filter by source branch. |
into_branch | string | Filter by target branch. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 25). |
state | string | Filter 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}.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name. |
number * | integer | Deploy request number (from planetscale_list_deploy_requests). |
organization * | string | Organization 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.
| Parameter | Type | Description |
|---|---|---|
database * | string | Database name. |
name * | string | Name of the new branch. |
organization * | string | Organization name (the slug in the PlanetScale URL). |
parent_branch | string | Parent 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.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Source branch with the schema changes. |
database * | string | Database name. |
into_branch * | string | Target branch, usually main. |
organization * | string | Organization name (the slug in the PlanetScale URL). |
notes | string | Notes shown on the deploy request. |