# PlanetScale MCP server

> Ask in plain English to check databases, branches, schemas, Insights and invoices in PlanetScale.

## Server URL

`https://mcp.pscale.dev/mcp/planetscale` (Streamable HTTP)

- Sign-in: Sign in with PlanetScale
- Connect in RevampKey: https://revampkey.com/marketplace/planetscale

## Agent skills (4)

- [PlanetScale MCP essentials: safe database access with AI](https://revampkey.com/marketplace/planetscale/skills/essentials.md): Pins down the organization, database and branch before reading, picks the narrowest PlanetScale tool, and asks for explicit approval before any write query runs.
- [PlanetScale Cost and Invoice Audit with AI](https://revampkey.com/marketplace/planetscale/skills/cost-and-invoice-audit.md): Breaks a PlanetScale invoice into its line items, groups the charges by database, branch and cluster size, and flags spend that looks unexpected or idle. It only reads billing data and never changes your payment method or plan.
- [PlanetScale Database Schema Review with AI](https://revampkey.com/marketplace/planetscale/skills/database-schema-review.md): Reviews a branch's schema for missing keys, indexes, risky column types and unsafe migration steps, using read-only queries to check the data. It asks before changing anything.
- [PlanetScale Query Performance Triage with AI](https://revampkey.com/marketplace/planetscale/skills/query-performance-insights.md): Ranks your slowest and most expensive queries from Insights, checks index recommendations against the real schema, and confirms causes with read-only queries. It proposes changes and waits for your approval before writing anything.

All skills: https://revampkey.com/marketplace/planetscale/skills.md

PlanetScale is a managed cloud database service. It runs MySQL through Vitess, a system first built at YouTube that lets one database scale across many nodes. It also runs Postgres, including Neki, a sharded Postgres product. Teams use it for databases that need to grow past a single server or run fast. The company says Slack, GitHub and Etsy run on Vitess.

Once you connect PlanetScale, you ask in plain English and the agent reads your organizations, databases and branches. It can list the regions and cluster sizes available to your organization, and it can read Insights data. For any branch, it can read the schema. It can look up invoices and the line items on each one. It runs read queries on a database and, if you approve, write queries too. It can also search PlanetScale's documentation.

## What you can do

### Check a slow database with Insights

You suspect your orders database slowed down this week. Ask the agent what Insights shows for that database. It reads the Insights data and summarizes the findings, so you know where to look next. It only reads, so nothing on the database changes.

### Read a branch schema before a change

You want to add a column on a feature branch of your users database. Ask the agent to read that branch's schema and list its tables. Then ask it to run a read query that counts rows in one table. Write queries wait for your approval, so you stay in control.

### Review what your organization was billed

Your finance lead asks why last month's PlanetScale bill went up. Ask the agent to list your organization's invoices. Pick one, and it pulls the line items so you can see what each charge covers. It reads the billing records and summarizes them for you.

## Things to ask

- Which PlanetScale organizations and databases can you see for my account?
- Show the schema on the main branch of my orders database.
- What has Insights flagged for our production database recently?
- List our latest PlanetScale invoices and the line items on the largest one.
- Run a read query that counts rows in the users table on the staging branch.

## What the agent can do

### Organizations and databases

Find the PlanetScale organizations on your account and the databases in each one. Ask for the details of one organization or database by name.

`planetscale_list_organizations`, `planetscale_get_organization`, `planetscale_list_databases`, `planetscale_get_database`

### Branches and schema

List the branches of a database and open one for its details. Ask for a branch's schema to see its tables and columns before you plan a change. Schema work in PlanetScale happens on branches.

`planetscale_list_branches`, `planetscale_get_branch`, `planetscale_get_branch_schema`

### Queries

Run read queries against a database and get the results back. Write queries run only after you approve them. Your organization's admins can limit which query types members can grant.

`planetscale_execute_read_query`, `planetscale_execute_write_query`

### Insights

Read Insights data for a database and ask for a summary of what it shows. The agent reads the data only and does not change your database.

`planetscale_get_insights`

### Regions and cluster sizes

See the regions available to your organization and the cluster sizes you can choose from. Use this when you plan a new database or compare options.

`planetscale_list_regions_for_organization`, `planetscale_list_cluster_size_skus`

### Billing and documentation

List your organization's invoices and open the line items on any one of them. Search PlanetScale's documentation for answers about a feature or setting.

`planetscale_list_invoices`, `planetscale_get_invoice_line_items`, `planetscale_search_documentation`

## FAQ

### What do I need to connect PlanetScale to RevampKey?

You need a PlanetScale account with access to at least one organization. Click Connect in RevampKey, then approve access on PlanetScale's own sign-in page. The connection uses OAuth. You choose how much access to grant, from none to read-only or full, for organizations, databases and the payment method.

### What can the agent do in PlanetScale, and what can it not do?

The agent can list and read your organizations, databases, branches, schemas, Insights data, regions, cluster sizes and invoices. It can run read queries and, when you approve, write queries. It cannot use PlanetScale tools that RevampKey does not list for this connector. Check the agent's answers before you act on them.

### How does the agent handle my data and approvals?

The agent asks before it changes anything. Each query uses short-lived credentials that are created on demand and deleted right after it runs. Your organization's admins can set MCP query access to no access, read-only, or read and write. Review queries before they run, especially against production databases.

### Can I check a schema change on a branch before it reaches production?

Yes. Ask the agent to list the branches of a database, then read the schema on the branch you want. PlanetScale uses branching for schema work, so you can review the structure of a branch before you decide what to do next.

### What is the PlanetScale MCP server URL?

The PlanetScale MCP server URL is https://mcp.pscale.dev/mcp/planetscale. It uses the Streamable HTTP transport, so any client that supports remote MCP servers can connect to it.

### How does the PlanetScale MCP server authenticate?

With PlanetScale's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

### What can an AI agent do with the PlanetScale MCP server?

It exposes 15 tools: 15 that read and 0 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for PlanetScale?

Yes. 4 SKILL.md playbooks teach an agent how to do real PlanetScale work step by step. RevampKey installs them when you connect PlanetScale; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (15)

- `planetscale_execute_read_query`
- `planetscale_execute_write_query`
- `planetscale_get_branch`
- `planetscale_get_branch_schema`
- `planetscale_get_database`
- `planetscale_get_insights`
- `planetscale_get_invoice_line_items`
- `planetscale_get_organization`
- `planetscale_list_branches`
- `planetscale_list_cluster_size_skus`
- `planetscale_list_databases`
- `planetscale_list_invoices`
- `planetscale_list_organizations`
- `planetscale_list_regions_for_organization`
- `planetscale_search_documentation`

## Details

- Maker: PlanetScale
- Setup: Sign in with your account
- Category: Developer tools
- Documentation: https://planetscale.com/docs/connect/mcp

Page: https://revampkey.com/marketplace/planetscale
