# Connect PlanetScale to Your AI Agent (Universal MCP)

> Use your AI to manage databases, monitor performance, and query data in PlanetScale — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http planetscale https://api.universalmcp.app/mcp/planetscale`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/planetscale` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "planetscale", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: PlanetScale | Category: E-Commerce & Retail (PlanetScale) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Query insights, Schemas and tables, Migration drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/planetscale | Guide: https://universalmcp.app/mcp/planetscale
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (14 actions: 7 Read, 7 Write)
Perform over 10 actions across database hosting, sandbox & access, migration, pricing & updates, and docs & resources. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Database Hosting (5):** Provision Vitess Cluster (write), Provision Postgres Database (write), Set Up Neki Sharded Postgres (write), Scale Vitess Deployment (write), Connect Application to Hosted Database (write)
- **Sandbox & Access (3):** View Database Sandbox (read), Sign In to Console (read), Contact Sales Team (write)
- **Migration (2):** Start Database Migration (write), Review Migration Guide (read)
- **Pricing & Updates (2):** Review Usage-Based Pricing (read), Read Neki Availability Update (read)
- **Docs & Resources (2):** Browse Platform Documentation (read), Read Engineering Blog (read)

## Example Prompts for PlanetScale
- **Slow queries:** "In PlanetScale, list the top slow queries by rows scanned for the orders keyspace this week."
- **Schema review:** "In PlanetScale, show Postgres tables with no index on their most frequent filter columns."
- **Replica health:** "In PlanetScale, summarize replica lag and latency across all Vitess keyspaces today."
- **Guarded change:** "Draft an index migration for the orders table in PlanetScale and hold it until I approve."
