Skip to content

PlanetScale MCP server

  • MCP server
  • 26 callable tools
  • 6 capabilities
Installation guide

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.

PlanetScale MCP server tools
ToolWhat it does
planetscale_list_organizationsNone. Any valid token can list the organization it belongs to.
planetscale_get_organization_billing_payment_methodread_payment_method
planetscale_execute_read_queryRead-only set, plus the read-query connect and delete permissions above
planetscale_execute_write_queryRead-only set, plus the write-query connect and delete permissions above
planetscale_search_documentationNone None
planetscale_list_databasesList all databases within an organization.
planetscale_list_branchesList all branches within a database.
planetscale_get_organizationGet details about a specific organization.
planetscale_get_databaseGet details about a specific database.
planetscale_get_branchGet details about a database branch.
planetscale_get_branch_schemaGet the schema for a database branch.
planetscale_get_insightsGet query performance insights for a PlanetScale database branch.
planetscale_list_regions_for_organizationList all available regions for an organization.
planetscale_list_cluster_size_skusList all available cluster size SKUs.
planetscale_list_invoicesList all invoices for an organization.
planetscale_get_invoice_line_itemsGet all line items for an invoice, with prorated costs broken down by database branch.
planetscale_update_payment_methodStart Stripe Checkout to add or replace the organization's card.
planetscale_get_payment_method_setupCheck a Checkout setup by setup_id.
planetscale_list_schema_recommendationsList schema recommendations for a database, including indexes and primary key exhaustion.
planetscale_list_query_error_patternsList failing queries for a database branch, aggregated by error fingerprint.
planetscale_list_query_error_executionsList the individual failed executions behind an error fingerprint.
planetscale_get_postgres_logsFetch server logs for a Postgres database branch, newest first.
planetscale_list_query_tagsList the query tags seen on a database branch's queries, with their values and query counts.
planetscale_get_query_tagGet a single query tag and its values, using a tag ID.
planetscale_list_query_tag_summariesGroup query statistics by the values of one or more query tags.
planetscale_get_branch_metricsInfrastructure metrics for a branch, including CPU, memory, disk, replication lag and connections.

Installation

Add PlanetScale MCP server to Claude Code

Run this in your terminal:

claude mcp add --transport http planetscale https://mcp.pscale.dev/mcp/planetscale

If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.

Other servers for the same products, or from the same vendor.

Sources

Documentation and source code reviewed on 10 November 2026.