MySQL-compatible serverless database with branching — deploy schema changes without downtime via AI
PlanetScale MCP brings the power of PlanetScale's serverless MySQL platform to your AI agent — including the unique database branching and non-blocking schema changes that make it the choice of enterprise-scale applications. Features: - Execute SQL queries across your PlanetScale databases - Create and manage database branches for safe schema changes - Open and manage deploy requests (safe schema migrations) - Monitor query insights and slow query analysis - Manage connection strings and passwords - View and rollback recent deployments - Inspect boost cache performance - Handle imports and data migrations PlanetScale's branching model means your AI can propose schema changes, test them in an isolated branch, and deploy without downtime — a workflow impossible with traditional databases. Used in production by Shopify (more database connections than anyone), PlanetScale handles trillion-row scale effortlessly.
from agents import Agent
from agents.mcp import MCPServerStdio
mcp_server = MCPServerStdio(
command="npx",
args=["-y", "@planetscale/mcp"],
env={
"PLANETSCALE_SERVICE_TOKEN": "pscale_tkn_...",
"PLANETSCALE_ORG": "your-org",
},
)
agent = Agent(
name="My Agent",
model="gpt-4o",
mcp_servers=[mcp_server],
)If you maintain PlanetScale MCP, add this badge to your README to show it's verified on CuratedMCP:
[](https://curatedmcp.com/marketplace/planetscale-mcp)