Getting Started
Make sure to first set up your PlanetScale developer environment. Once you’ve installed thepscale CLI, you can interact with PlanetScale and manage your databases straight from the command line.
The mcp command
This command installs and enables support for a PlanetScale MCP server.
Usage:
Available sub-commands
| Sub-command | Product | Description | 
|---|---|---|
| install | Postgres, Vitess | Install the MCP server | 
| server | Postgres, Vitess | Start the MCP server | 
Available flags
| Flag | Description | 
|---|---|
| --target | The target installation for the MCP server. claudeandcursorare the only supported values. | 
| -h,--help | View help for mcpcommand | 
Global flags
| Command | Description | 
|---|---|
| --api-token <TOKEN> | The API token to use for authenticating against the PlanetScale API. | 
| --api-url <URL> | The base URL for the PlanetScale API. Default is https://api.planetscale.com/. | 
| --config <CONFIG_FILE> | Config file. Default is $HOME/.config/planetscale/pscale.yml. | 
| --debug | Enable debug mode. | 
| -f,--format <FORMAT> | Show output in a specific format. Possible values: human(default),json,csv. | 
| --no-color | Disable color output. | 
| --service-token <TOKEN> | The service token for authenticating. | 
| --service-token-id <TOKEN_ID> | The service token ID for authenticating. | 

