# PlanetScale (verified)

Manage databases, branches, and organizations while monitoring query performance insights. Execute read and write SQL queries securely to interact with your data in real-time. Search documentation an…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add planetscale

# Browse available tools
npx -y @smithery/cli@latest tool list planetscale

# Get full schema for a tool
npx -y @smithery/cli@latest tool get planetscale planetscale_list_regions_for_organization

# Call a tool
npx -y @smithery/cli@latest tool call planetscale planetscale_list_regions_for_organization '{}'
```

## Direct MCP Connection

Endpoint: `https://planetscale.run.tools`

## Tools (16)

- `planetscale_list_regions_for_organization` — List the regions available for an organization.
- `planetscale_get_invoice_line_items` — Get all line items for an invoice. See prorated costs broken down by database branch. Including storage, egress bandwid…
- `planetscale_list_invoices` — List all invoices for an organization.
- `planetscale_list_schema_recommendations` — List all schema recommendations for a database. Each schema recommendation is based on production data from the users d…
- `planetscale_get_branch_schema` — Get the schema (tables, columns) for a database branch
- `planetscale_list_branches` — List all branches within a databases
- `planetscale_get_organization` — Get details about a specific organization
- `planetscale_list_databases` — List all databases within an organization
- `planetscale_get_branch` — Get details about a database branch
- `planetscale_get_database` — Get details about a specific database
- `planetscale_list_organizations` — List all PlanetScale organizations you have access to
- `planetscale_search_documentation` — Search across the PlanetScale knowledge base to find relevant information, code examples, API references, and guides. U…
- `planetscale_list_cluster_sizes` — List available PlanetScale cluster sizes (SKUs) for an organization. PS-* sizes use autoscaling network-backed storage;…
- `planetscale_get_insights` — Get query performance insights for a PlanetScale database branch. By default, aggregates the top queries across 5 diffe…
- `planetscale_execute_write_query` — Execute a write SQL query (INSERT, UPDATE, DELETE, or DDL) against a PlanetScale database. This tool creates short-live…
- `planetscale_execute_read_query` — Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN) against a PlanetScale database. This tool creates short…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get planetscale <tool-name>
```
