PlanetScale MCP by usefulapi

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

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
98%
Integridad del esquema
98%
Calidad de los nombres
74%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (4)

  • LOWTool 'planetscale_list_public_regions' name length outside 3-30 rangeen planetscale_list_public_regions
  • LOWTool 'planetscale_list_branch_backups' name length outside 3-30 rangeen planetscale_list_branch_backups
  • LOWTool 'planetscale_list_deploy_requests' name length outside 3-30 rangeen planetscale_list_deploy_requests
  • LOWTool 'planetscale_create_deploy_request' name length outside 3-30 rangeen planetscale_create_deploy_request

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~2,383Tokens (definiciones de herramientas)
~1.6 KBTamaño de respuesta típico
Impacto moderado en la atención (1.86% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "planetscale": {
      "url": "https://planetscale.usefulapi.io/mcp"
    }
  }
}

Puntos de conexión remotos

https://planetscale.usefulapi.io/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (13)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢planetscale_list_organizations(page, per_page)

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

Esquema de entrada

{
  "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}.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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}.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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}.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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}.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada13 herramientas