Skip to main content

Getting Started

Make sure to first set up your PlanetScale developer environment. Once you’ve installed the pscale CLI, you can interact with PlanetScale and manage your databases straight from the command line.

The mcp command

Manage PlanetScale model context protocol (MCP) configuration. PlanetScale recommends the hosted MCP server:
See PlanetScale MCP server for full setup instructions across editors and agents. Usage:

Available sub-commands

The install sub-command

Usage:
Cursor — writes hosted MCP config to ~/.cursor/mcp.json when possible. Claude Code and Zed — return action_required JSON with the command or docs URL to run (OAuth on first MCP use).

Available flags

Global flags

Examples

Install hosted MCP for Cursor

Command:
Output (JSON):

Claude Code setup instructions

Command:
Returns action_required JSON with the claude mcp add command in next_steps.

Need help?

Get help from the PlanetScale Support team, or join our Discord community to see how others are using PlanetScale.