PlanetScale MCP Server

Official serverless MySQL-compatible database integration with auto-config CLI installer and hosted OAuth remote server.

⚠️ Conditional Clean setup with CLI installer and read-only safety defaults, but requires a PlanetScale paid account. Good for existing PlanetScale users, not worth onboarding just for MCP.
Language: TypeScript Transport: stdio, streamable-http License: Apache-2.0 Stars: 50 Updated: Feb 2026 Setup: Moderate

Client Compatibility

Claude Desktop
Cursor
Claude Code
VS Code
Windsurf
Cline

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 cursor or --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 server CLI 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
Config — paste into your client
{
  "mcpServers": {
    "planetscale-mcp": {
      "command": "pscale",
      "args": [
        "mcp",
        "server"
      ]
    }
  }
}

Prerequisites

  • PlanetScale CLI installed
  • PlanetScale account (paid)

View on GitHub

Reviewed by J-Dub · February 22, 2026

Related Servers