CuratedMCP
OpenAI Agents SDK
Free

How to Install PlanetScale MCP in OpenAI Agents SDK

MySQL-compatible serverless database with branching — deploy schema changes without downtime via AI

What PlanetScale MCP does

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.

planetscale
mysql
database
branching
serverless

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
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],
)
Full server details Open Config Editor

Install in other clients

For maintainers

If you maintain PlanetScale MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/planetscale-mcp)](https://curatedmcp.com/marketplace/planetscale-mcp)

Related servers