PlanetScale's hosted MCP server connects AI tools to PlanetScale Vitess and Postgres databases via OAuth. Queries use short-lived credentials, reads route to replicas, and unsafe writes are blocked. It also exposes query insights, schema recommendations, billing and docs search; an insights-only endpoint omits query execution.
Also available as
Connect
- 1Connect it in ChatGPT
Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.pscale.dev/mcp/planetscale as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.
- 2Or add it to Codex or the API
codex mcp add planetscale --url https://mcp.pscale.dev/mcp/planetscale codex mcp login planetscaleThe login command opens a browser to finish OAuth.
Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.
Tools 7
planetscale_list_databasesplanetscale_get_branch_schemaplanetscale_execute_read_queryplanetscale_execute_write_queryplanetscale_get_insightsplanetscale_list_query_error_patternsplanetscale_list_invoicesThings to ask
- “List my PlanetScale databases”
- “What are the slowest queries on the main branch this week?”
- “Show the schema for the production branch”
- “Run a read query to count orders from yesterday”