$50 Metal Postgres databases are here. Learn more
Navigation

Model Context Protocol support

We have shipped Model Context Protocol (MCP) support, enabling seamless integration between PlanetScale databases and AI tools. This integration allows tools like Claude or Cursor to directly access read-only database information to answer your questions more intelligently.

We have two new CLI Commands you can use to get up and running

pscale mcp install --target <claude|cursor|zed> # Installs the PlanetScale MCP server config for your tool
pscale mcp server                               # Enables your AI tool to perform read-only database interactions

Using this functionality allows you to interact with your PlanetScale organizations and databases right from your AI tooling. You can ask questions like "How many users do I have in North Carolina?" or "How many rows are in my messages table?" Claude, Cursor, Zed, or other tools will then be able to access read-only info from your PlanetScale account to give bespoke answers. You can get started using Claude, Cursor, or Zed using the instructions below.

For Claude Desktop:

For Cursor:

If you prefer to configure Cursor (or another MCP-compatible tool) manually, add the following to your .cursor/mcp.json in your project or home directory

{
  "mcpServers": {
    "planetscale": {
      "args": [
        "mcp",
        "server"
      ],
      "command": "pscale"
    }
  }
}

For Zed:

Other tools should accept a configuration similar to the Cursor example above.