Skip to content

PlanetScale MCP Server

Explore PlanetScale Postgres and Vitess databases, schemas, branches and query insights.

Officialby PlanetScaleHosted, nothing to installChecked November 18, 2026

PlanetScale's hosted MCP server lets Claude list your organizations, databases and branches, read schemas, review query Insights, logs and metrics, and run SQL on PlanetScale Postgres, Vitess (MySQL) or Neki databases. You sign in with OAuth and choose no access, read-only or full access per database; with write access, an UPDATE or DELETE without a WHERE clause and any TRUNCATE are still blocked, and schema changes ask for confirmation first.

Who is PlanetScale MCP for?

  • Developers running apps on PlanetScale
  • Teams tracking down slow queries
  • Database administrators reviewing schema changes

What can you ask PlanetScale MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
Which queries on my production branch are the slowest this week, and why?
Prompt 2
Show me the schema recommendations for the orders database and explain each one.
Prompt 3
Count the users who signed up yesterday, using a read-only query.

How to connect PlanetScale to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, ChatGPT, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the PlanetScale MCP server to Claude Code for me: run this command: claude mcp add --transport http "planetscale" https://mcp.pscale.dev/mcp/planetscale
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

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

Type /mcp inside Claude Code, pick the server and choose Authenticate to sign in.

Hosted address: https://mcp.pscale.dev/mcp/planetscale

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

Run /mcp to sign in, or install the PlanetScale Claude Code plugin instead; for Insights and schema recommendations without query tools, use https://mcp.pscale.dev/mcp/planetscale-insights-only.

How did we check PlanetScale MCP?

Our first pass was on November 8, 2026 and the recheck on November 18: PlanetScale's MCP docs, which now list 32 tools (26 on November 8; the new ones run and schedule the Insights Agent), its pricing page and the open-source tools repo planetscale/mcp-server (Apache-2.0, last commit November 13); the Claude connectors directory listing (made by PlanetScale) was read on November 8. On both days the hosted endpoint answered our initialize request with HTTP 401 and an OAuth challenge, which means it is live and waiting for a PlanetScale sign-in; we did not sign in or run queries.

Source: planetscale.com/docs/connect/mcp

What do people ask about PlanetScale MCP?

Does the PlanetScale MCP server cost extra?

No, it comes with your PlanetScale account; you pay for the databases it works on, and an Insights Agent run is billed only after you approve it. On November 18, 2026 PlanetScale's pricing page listed single-node Postgres from $5 a month and Metal from $50 a month, with no free database plan.

What stops Claude from damaging a production database?

At sign-in you choose no access, read-only or full access per database, and admins can cap the whole organization at no query access or read-only queries. Even with write access, UPDATE or DELETE without a WHERE clause and TRUNCATE are blocked, and DDL such as DROP or ALTER asks for human confirmation.

Do Claude's queries slow down my primary database?

Read queries go to a replica by default when your branch has one, and every query carries a source=planetscale-mcp comment so you can find it in Insights. Set use_replica to false only when you need to read from the primary.

My Postgres database uses IP restrictions. What should I allow?

Add all four addresses the hosted server queries from, each as a /32: 104.28.1.231, 104.28.1.232, 104.28.1.233 and 104.28.1.234. Vitess databases need no change, because the server creates short-lived passwords that only work from those addresses.

Can I connect PlanetScale to the Claude app without a terminal?

Yes. PlanetScale is listed in Claude's connectors directory, so you add it under Customize, Connectors, sign in with PlanetScale and pick the access level, with no command to type. If connectors are new to you, our MCP guide explains what a sign-in screen like this one grants before you pick an access level. For the same server inside Claude Code, see the Skills and MCP lesson of our early-access Claude Code course.

We wrote these answers from the official pages of each product named, read on November 18, 2026.

Using servers like PlanetScale from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.