> ## 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.

# Agents

> Use agents with PlanetScale to answer database questions, investigate performance, and prepare fixes.

Connect an agent to PlanetScale to get help with your databases. The hosted MCP server provides access to database information and tools, while PlanetScale skills provide guidance for investigating queries and planning changes.

## Database Bot for Grok Bot

Get started with PlanetScale, ask questions about your database, and investigate slow or failing queries. Connect a codebase to trace database issues back to your code and help fix them via Cloud Agents, or set up webhooks to follow database events.

<CardGroup cols={2}>
  <Card title="Use the Database Bot template" icon="robot" href="https://x.ai/bot/0hgwu8KbM0FIY-idg0x6L">
    Preview Database Bot by PlanetScale and add a copy to Grok Bot.
  </Card>

  <Card title="Set up Grok Bot" icon="book-open" href="/docs/agents/grok-bot">
    Install Grok Bot, connect PlanetScale, and configure optional codebase and webhook access.
  </Card>
</CardGroup>

## Use your own agent

<CardGroup cols={2}>
  <Card title="Agent setup prompt" icon="terminal" href="/docs/agent-setup/prompt">
    Set up PlanetScale skills, MCP, and the CLI in your coding agent.
  </Card>

  <Card title="PlanetScale MCP server" icon="plug" href="/docs/mcp-server">
    Connect an MCP-compatible agent to your PlanetScale account.
  </Card>

  <Card title="AI-enhanced development" icon="code" href="/docs/ai-tooling">
    Explore PlanetScale plugins and skills for your development tools.
  </Card>

  <Card title="Self-improving database" icon="rotate" href="/docs/self-improving-database">
    Configure recurring database reviews with a coding agent.
  </Card>
</CardGroup>

## 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.
