Skip to content

Development integration

PlanetScale MCP server for Claude, Codex and Cursor

Inspect PlanetScale databases, branches and insights. Connect the PlanetScale MCP server to Toolstile once, then choose which of its tools Claude Code, Codex, Cursor and Claude Desktop may use.

Free plan available. Server credentials stay in Toolstile, not in agent configs.

On this page

What your AI apps can do with PlanetScale

  • List databases and branches
  • Run read-only queries and review insights

PlanetScale MCP tools

26 tools, taken from the publisher's documentation on 29 October 2026. The server decides what it offers and can add or rename tools at any time; after you connect, Toolstile shows the current list.

ToolWhat it does
planetscale_list_organizationsList the organizations you can access
planetscale_list_databasesList the databases in an organization
planetscale_list_branchesList the branches of a database
planetscale_get_organizationGet details for an organization
planetscale_get_databaseGet details for a database
planetscale_get_branchGet details for a branch
planetscale_get_branch_schemaGet a branch's schema
planetscale_execute_read_queryRun a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN)
planetscale_execute_write_queryRun a write SQL query (INSERT, UPDATE, DELETE or DDL)
planetscale_get_insightsGet query performance insights for a branch
planetscale_list_regions_for_organizationList the regions available to an organization
planetscale_list_cluster_size_skusList the available cluster size SKUs
planetscale_list_invoicesList an organization's invoices
planetscale_get_invoice_line_itemsGet invoice line items with prorated costs per branch
planetscale_get_organization_billing_payment_methodShow the organization's current payment method
planetscale_update_payment_methodStart Stripe Checkout to update the payment method
planetscale_get_payment_method_setupCheck the status of a payment method setup
planetscale_search_documentationSearch the PlanetScale documentation
planetscale_list_schema_recommendationsList schema recommendations such as adding or removing indexes
planetscale_list_query_error_patternsList failing queries grouped by error fingerprint
planetscale_list_query_error_executionsList individual failed executions for an error fingerprint
planetscale_get_postgres_logsGet Postgres server logs, newest first, with filters
planetscale_list_query_tagsList query tags with their values and counts
planetscale_get_query_tagGet a single query tag by ID
planetscale_list_query_tag_summariesSummarize query statistics grouped by tag values
planetscale_get_branch_metricsGet CPU, memory, disk, replication lag and connection metrics

Suggested access for each AI app

The documentation this list comes from doesn't mark PlanetScale's tools as read-only or destructive. Read each tool's description and decide per app before allowing it.

Coding agent in Claude Code or Cursor. Allow the read tools so the agent can look things up without stopping, and require approval for tools that change shared data.

Chat or research app in Claude Desktop. Allow reading and searching. Allow writes only where you want the app to act for you.

Unattended agent, such as a scheduled Codex job. No one is watching the session, so keep it narrow: allow what the job needs, require approval for changes and block the rest.

Blocked tools are removed from the tool list an app sees, so it won't try them. Because rules apply per app, the same PlanetScale connection can be broad in one app and read-only in another, and the credential stays in Toolstile instead of each app's config file.

How it works with Toolstile

  1. Connect once. Add PlanetScale to a workspace (browser sign-in). Toolstile keeps the credential, so no agent config holds it.
  2. Choose access per app. Give Claude Code every PlanetScale tool, give Cursor only the read tools, or keep PlanetScale away from an app entirely.
  3. Share approved accounts. Teammates use the connection without copying tokens, and you can remove access in one place.
  4. Review activity. See which app called which tool and when, so you can tighten access with evidence.

Add the PlanetScale MCP server to an AI app

Through Toolstile, every AI app uses one gateway entry, whichever servers you connect. In Claude Code:

Shell
claude mcp add --transport http toolstile 'https://mcp.toolstile.com/mcp'

Then connect PlanetScale in your workspace and choose which of its tools that app may use. Client setup covers Codex, Cursor and Claude Desktop.

To connect directly instead, add the PlanetScale endpoint to each app separately. In Claude Code:

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

In Cursor's mcp.json:

JSON
{
  "mcpServers": {
    "planetscale": {
      "url": "https://mcp.pscale.dev/mcp/planetscale"
    }
  }
}

Some servers accept only clients they have approved, or need a token header. Check the PlanetScale MCP documentation for what your client needs.

Before you connect

A PlanetScale account. Sign-in uses your PlanetScale permissions.

Server details

DetailValue
PublisherPlanetScale
Endpointhttps://mcp.pscale.dev/mcp/planetscale
AuthenticationBrowser sign-in
CategoriesDevelopment, Data & infrastructure
Tool list26 tools, observed 29 October 2026 (docs)

PlanetScale MCP documentation