PlanetScale MCP by usefulapi
Read databases, branches and schemas; create branches and deploy requests in PlanetScale.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (4)
- LOWin planetscale_list_public_regions
- LOWin planetscale_list_branch_backups
- LOWin planetscale_list_deploy_requests
- LOWin planetscale_create_deploy_request
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"planetscale": {
"url": "https://planetscale.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://planetscale.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (13)
🟢planetscale_list_organizations(page, per_page)
List the organizations the service token can see. Start here to find the organization name. GET /v1/organizations.
Eingabe-Schema
{
"type": "object",
"properties": {
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Results per page (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_get_organization(organization)
Get one organization: name, plan and settings. GET /v1/organizations/{organization}.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
}
},
"required": [
"organization"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_list_public_regions(page, per_page)
List the PlanetScale regions and their cloud providers. Public endpoint: GET /v1/regions.
Eingabe-Schema
{
"type": "object",
"properties": {
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Results per page (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_list_databases(organization, q, kind, page, per_page)
List the databases in an organization, with their state and kind (Postgres or MySQL). GET /v1/organizations/{organization}/databases.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"q": {
"description": "Filter by database name.",
"type": "string"
},
"kind": {
"description": "Filter by database kind, for example postgresql or vitess.",
"type": "string"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Results per page (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"organization"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_get_database(organization, database)
Get one database: state, default branch, regions and settings. GET /v1/organizations/{organization}/databases/{database}.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
}
},
"required": [
"organization",
"database"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_list_branches(organization, database, q, production, safe_migrations, ...)
List the branches of a database, with ready state and whether each is a production branch. GET .../databases/{database}/branches.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"q": {
"description": "Filter by branch name.",
"type": "string"
},
"production": {
"description": "Only production (true) or only development (false) branches.",
"type": "boolean"
},
"safe_migrations": {
"description": "Filter by safe migrations setting.",
"type": "boolean"
},
"order": {
"description": "Sort order, for example created_at.",
"type": "string"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Results per page (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"organization",
"database"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_get_branch(organization, database, branch)
Get one branch: ready state, parent branch, region and access host. GET .../branches/{branch}.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"branch": {
"type": "string",
"minLength": 1,
"description": "Branch name, for example main."
}
},
"required": [
"organization",
"database",
"branch"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_get_branch_schema(organization, database, branch, keyspace, namespace)
Get the CREATE statements (schema only, no table data) of a branch. GET .../branches/{branch}/schema.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"branch": {
"type": "string",
"minLength": 1,
"description": "Branch name, for example main."
},
"keyspace": {
"description": "Keyspace name (Vitess databases only).",
"type": "string"
},
"namespace": {
"description": "Namespace name (Postgres databases only).",
"type": "string"
}
},
"required": [
"organization",
"database",
"branch"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_list_branch_backups(organization, database, branch, state, from, ...)
List the backups of a branch, with state and time. GET .../branches/{branch}/backups.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"branch": {
"type": "string",
"minLength": 1,
"description": "Branch name, for example main."
},
"state": {
"description": "Filter by backup state, for example success.",
"type": "string"
},
"from": {
"description": "Only backups created after this ISO 8601 time.",
"type": "string"
},
"to": {
"description": "Only backups created before this ISO 8601 time.",
"type": "string"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Results per page (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"organization",
"database",
"branch"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_list_deploy_requests(organization, database, state, branch, into_branch, ...)
List schema change deploy requests of a database, with state and branches. GET .../deploy-requests.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"state": {
"description": "Filter by state, for example open, closed or merged.",
"type": "string"
},
"branch": {
"description": "Filter by source branch.",
"type": "string"
},
"into_branch": {
"description": "Filter by target branch.",
"type": "string"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Results per page (default 25).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"organization",
"database"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢planetscale_get_deploy_request(organization, database, number)
Get one deploy request by its number: state, diff summary and deployment status. GET .../deploy-requests/{number}.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"number": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Deploy request number (from planetscale_list_deploy_requests)."
}
},
"required": [
"organization",
"database",
"number"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴planetscale_create_branch(organization, database, name, parent_branch)
Create a development branch from a parent branch (default main). Creates billable resources; it does not change production. POST .../branches.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Name of the new branch."
},
"parent_branch": {
"description": "Parent branch to copy the schema from (default main).",
"type": "string"
}
},
"required": [
"organization",
"database",
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴planetscale_create_deploy_request(organization, database, branch, into_branch, notes)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization name (the slug in the PlanetScale URL)."
},
"database": {
"type": "string",
"minLength": 1,
"description": "Database name."
},
"branch": {
"type": "string",
"minLength": 1,
"description": "Source branch with the schema changes."
},
"into_branch": {
"type": "string",
"minLength": 1,
"description": "Target branch, usually main."
},
"notes": {
"description": "Notes shown on the deploy request.",
"type": "string"
}
},
"required": [
"organization",
"database",
"branch",
"into_branch"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis