PlanetScale MCP Server
Official serverless MySQL-compatible database integration with auto-config CLI installer and hosted OAuth remote server.
Client Compatibility
What It Does
Connects Claude to PlanetScale’s serverless MySQL-compatible database for read-only queries, schema inspection, and database management. The CLI includes an auto-config installer that writes MCP configuration for your client of choice. A hosted OAuth remote server is replacing the local CLI path as the primary integration.
What It Does Well
- Auto-config installer removes setup friction. Run
pscale mcp install --target claude(or--target cursoror--target zed) and the CLI writes the correct MCP config for you. No manually editing JSON files, no guessing at argument formats. This is the UX standard other MCP servers should aim for. - Read-only by default with destructive query protection. The server routes queries to replicas automatically and blocks destructive operations unless explicitly enabled. Ephemeral credentials mean no long-lived tokens sitting in config files.
- Claude Code plugin provides a dedicated integration path. The planetscale/claude-plugin is purpose-built for Claude Code workflows, separate from the general MCP server. If you’re primarily working in Claude Code, there’s a first-class option.
What It Doesn’t Do Well
- Requires a PlanetScale paid account. Unlike community database MCP servers that work with any MySQL instance, this only works with PlanetScale databases. If you don’t already have a PlanetScale subscription, this server provides zero value.
- Transitioning from CLI to hosted OAuth creates a moving target. The
pscale mcp serverCLI path is being deprecated in favor of the hosted remote server with OAuth. If you set up the CLI version today, you’ll need to migrate later. The remote version is the future but may not be stable in all clients yet.
Setup Notes
Install the PlanetScale CLI first, authenticate with pscale auth login, then run the install command targeting your MCP client. The CLI handles everything — config writing, credential management, server startup. If the auto-installer supports your client, setup takes under 2 minutes.
For the hosted OAuth path, configure your MCP client to connect to the remote URL and authenticate through the browser. This avoids local CLI dependency entirely.
Config
CLI (current):
{
"mcpServers": {
"planetscale": {
"command": "pscale",
"args": ["mcp", "server"]
}
}
}
Tested With
- Claude Desktop on Windows 11
{
"mcpServers": {
"planetscale-mcp": {
"command": "pscale",
"args": [
"mcp",
"server"
]
}
}
} Prerequisites
- PlanetScale CLI installed
- PlanetScale account (paid)
Reviewed by J-Dub · February 22, 2026