> ## Documentation Index
> Fetch the complete documentation index at: https://planetscale.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI-enhanced development

> Improve your database development experience with AI-powered tooling specifically designed for PlanetScale

## Agent setup prompt

Official bootstrap instructions for AI agents — install skills, configure MCP, and authenticate the CLI. Fetch as Markdown for agent sessions:

<Card title="Agent setup prompt" icon="robot" href="/docs/agent-setup/prompt">
  Copy or fetch the [Markdown export](/docs/agent-setup/prompt.md) (`https://planetscale.com/docs/agent-setup/prompt.md` on production)
</Card>

If the PlanetScale CLI is installed (**`pscale` 0.292.0+**), agents can also run:

```bash theme={null}
pscale agent-guide --format json
pscale auth check --format json
```

Upgrade with `brew upgrade pscale` if `agent-guide` is unknown.

See [CLI agent-guide](/docs/cli/agent-guide) for the JSON response fields.

## PlanetScale MCP Server

Authenticated MCP servers allow your AI tools to access information specific to your PlanetScale account.
Access your PlanetScale organizations, databases, branches, schema, and Insights data from within your development tools.

The hosted MCP server can be installed in development tools as well as other MCP-accessible tools like Claude in the web browser and desktop app.

<Card title="PlanetScale MCP Server" icon={<svg fill="currentColor" fill-rule="evenodd" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"/><path d="M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"/></svg>} href="/connect/mcp">
  Install in Claude Code, Cursor, VS Code and more
</Card>

Use the CLI helper for Cursor:

```bash theme={null}
pscale mcp install --target cursor --format json
```

## Automated Database Optimization

Use the MCP server with AI coding agents to continuously optimize your database. Agents can review production Insights data and Schema Recommendations, then open pull requests with performance improvements — on a recurring schedule.

<Card title="Self-improving database" icon="rotate" href="/docs/connect/self-improving-database">
  Set up automated agents that optimize your database daily
</Card>

## PlanetScale Skills

Operational workflows for agents — read-only assessment, safety review, Insights analysis, schema recommendations, Traffic Control, and change gates — live in the public skills pack:

<Card title="planetscale/skills" icon="github" href="https://github.com/planetscale/skills">
  Install assessment and automation skills for Cursor, Claude Code, and more
</Card>

**Setup script (recommended):**

```bash theme={null}
git clone https://github.com/planetscale/skills.git
cd skills && script/setup
```

**Skills CLI:**

```bash theme={null}
npx skills add planetscale/skills -g -y
```

Load **`14-pscale-cli-automation`** for CLI conventions and **`00-safe-orchestrator`** for a full PlanetScale assessment. See the [skills README](https://github.com/planetscale/skills) for usage and the Class A–E safety model.

## Database Skills (MySQL / Vitess query patterns)

For MySQL- and Vitess-specific query and schema guidance (separate from the operational skills pack above):

```bash theme={null}
npx skills add planetscale/database-skills
```

Check out the [Database Skills](https://database-skills.com/) website for more information.

## Claude Code Plugin

The [PlanetScale Claude Code Plugin](https://github.com/planetscale/claude-plugin) is a convenient way to install the PlanetScale MCP server into Claude Code.

In Claude Code, add this GitHub repository as a marketplace, then install the plugin:

```bash theme={null}
/plugin marketplace add planetscale/claude-plugin
/plugin install planetscale@planetscale-plugins
```

You may need to restart your Claude Code session before the MCP server is available.

## Need help?

Get help from [the PlanetScale Support team](https://planetscale.com/contact?initial=support), or join our [Discord community](https://pscale.link/community) to see how others are using PlanetScale.
