PlanetScale MCP server
- MCP server
- 26 callable tools
- 6 capabilities
Overview
PlanetScale's hosted MCP server gives MCP clients access to PlanetScale organizations, databases, branches, schema, Insights data and the organization payment method. It works with Vitess and Postgres databases on PlanetScale.
Capabilities:
- Browse organizations, databases and branches
- Inspect branch schemas and schema recommendations
- Run read and write SQL queries against PlanetScale databases
- Review query performance, error patterns and query tags in Insights
- Check infrastructure metrics and Postgres server logs
- View invoices and the organization payment method
Works with
The products your agent can work with through this server.
Tools
The callable functions your agent uses to work with this server.
| Tool | What it does |
|---|---|
planetscale_ | None. Any valid token can list the organization it belongs to. |
planetscale_ | read_payment_method |
planetscale_ | Read-only set, plus the read-query connect and delete permissions above |
planetscale_ | Read-only set, plus the write-query connect and delete permissions above |
planetscale_ | None None |
planetscale_ | List all databases within an organization. |
planetscale_ | List all branches within a database. |
planetscale_ | Get details about a specific organization. |
planetscale_ | Get details about a specific database. |
planetscale_ | Get details about a database branch. |
planetscale_ | Get the schema for a database branch. |
planetscale_ | Get query performance insights for a PlanetScale database branch. |
planetscale_ | List all available regions for an organization. |
planetscale_ | List all available cluster size SKUs. |
planetscale_ | List all invoices for an organization. |
planetscale_ | Get all line items for an invoice, with prorated costs broken down by database branch. |
planetscale_ | Start Stripe Checkout to add or replace the organization's card. |
planetscale_ | Check a Checkout setup by setup_id. |
planetscale_ | List schema recommendations for a database, including indexes and primary key exhaustion. |
planetscale_ | List failing queries for a database branch, aggregated by error fingerprint. |
planetscale_ | List the individual failed executions behind an error fingerprint. |
planetscale_ | Fetch server logs for a Postgres database branch, newest first. |
planetscale_ | List the query tags seen on a database branch's queries, with their values and query counts. |
planetscale_ | Get a single query tag and its values, using a tag ID. |
planetscale_ | Group query statistics by the values of one or more query tags. |
planetscale_ | Infrastructure metrics for a branch, including CPU, memory, disk, replication lag and connections. |
Installation
Follow the installation guide for supported clients, authentication and required permissions.
Add PlanetScale MCP server to Claude Code
Run this in your terminal:
If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.
Add PlanetScale MCP server to Cursor
Add it with the Add to Cursor button below, or add it to .cursor/mcp.json in your project (~/.cursor/mcp.json for every project):
Add PlanetScale MCP server to VS Code
Add it to .vscode/mcp.json in your workspace. VS Code uses servers rather than mcpServers. Or run MCP: Add Server from the Command Palette and choose HTTP.
Add PlanetScale MCP server to Codex
Run this in your terminal:
Or add it to ~/.codex/config.toml:
If the server uses OAuth, sign in with codex mcp login planetscale.
Add PlanetScale MCP server to Claude
Add it as a custom connector with this URL:
- Open Customize, then Connectors.
- Click + Add, then Add custom connector.
- Name it, paste the URL and click Continue.
- Choose how to sign in, then click Add.
On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.
Add PlanetScale MCP server to other clients
For any other client that connects to remote MCP servers over HTTP, use this URL:
Related MCP servers
Other servers for the same products, or from the same vendor.
Sources
Documentation and source code reviewed on 10 November 2026.