PlanetScale MCP Server — Hosted Api Connectors Integration
MCP Server language Hosted language PublicExecute queries, inspect schemas, and manage deploy requests on PlanetScale MySQL databases.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"planetscale": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-planetscale",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify planetscale credentials by calling a lightweight read endpoint. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-planetscale — PlanetScale MCP Server
Manage MySQL databases, branches, and deploy requests on PlanetScale from your AI agents.
PlanetScale is the serverless MySQL platform built for scale, with Git-style branching for schema changes. This MCP server exposes PlanetScale's management API — letting your AI agents list databases, inspect branches, create feature branches for schema work, and manage deploy requests to promote changes to production safely.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-planetscale
What You Can Do
- List all databases in your PlanetScale organization and inspect branch status without using the PlanetScale dashboard
- Create feature branches for schema changes as part of a database migration workflow
- List and create deploy requests to promote schema changes through the safe deploy pipeline
- Monitor branch state to confirm migrations have completed before triggering downstream steps
Available Tools
| Tool | Description |
|---|---|
list_databases |
List all databases in an organization |
get_database |
Get details of a specific database |
list_branches |
List branches of a database |
get_branch |
Get details of a specific branch |
create_branch |
Create a new branch from a parent branch |
list_deploy_requests |
List deploy requests for a database |
create_deploy_request |
Create a deploy request to merge schema changes |
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
PLANETSCALE_TOKEN |
Yes | PlanetScale service token in {id}:{token} format |
app.planetscale.com → Your Organization → Settings → Service tokens → New service token → grant database access permissions → copy both the token ID and token value, format as id:token |
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "PlanetScale" and click Add to Workspace
- Add your
PLANETSCALE_TOKENunder Project → Secrets
Once added, every AI agent in your workspace can call PlanetScale tools automatically — no per-user setup needed.
Example Prompts
"List all databases in my PlanetScale organization and show their branch counts"
"Create a new branch called add-user-preferences from the main branch of my app-db database"
"Show me all open deploy requests for the app-db database"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-planetscale \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-PLANETSCALE-TOKEN: your-token-id:your-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_databases","arguments":{"org":"my-org"}}}'
License
MIT
terminal Tools (8)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify PlanetScale credentials by calling a lightweight read endpoint. Used internally by Aerostack to validate credentials.
list_databases #2 List all databases in a PlanetScale organization
get_database #3 Get details of a specific PlanetScale database
list_branches #4 List branches of a PlanetScale database
get_branch #5 Get details of a specific database branch
create_branch #6 Create a new branch from a parent branch in a PlanetScale database
list_deploy_requests #7 List deploy requests for a PlanetScale database
create_deploy_request #8 Create a deploy request to merge schema changes from one branch into another
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-planetscale
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in API Connectors
Browse API Connectors MCPs →Aerostack Registry
by @aerostack
Discover and invoke any MCP, Function, or Skill published to the Aerostack marketplace — the universal AI capability hub.
Algolia
by @aerostack
Search indexes, manage records, browse data, and configure ranking in Algolia — AI-native instant search access.
Arangodb
by @aerostack
Query documents, run AQL, traverse graphs, and manage collections in your ArangoDB database — AI-native multi-model database access.
Ayrshare
by @aerostack
Post, schedule, and analyze social media across 13 platforms — Facebook, Instagram, X, LinkedIn, TikTok, Bluesky, Threads, Reddit, Pinterest, YouTube, Telegram, Snapchat, Google Business.
Basecamp
by @aerostack
Manage projects, to-dos, messages, schedules, and campfire chats in Basecamp — AI-native project management.
Bigquery
by @aerostack
Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.
Frequently asked questions
What is the PlanetScale MCP server and what can it do? +
The PlanetScale MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `list_databases`, `get_database`, `list_branches`, `get_branch`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the PlanetScale MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the PlanetScale MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same PlanetScale MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the PlanetScale MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-planetscale": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-planetscale"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the PlanetScale MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-planetscale", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-planetscale"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does PlanetScale MCP require authentication? +
Yes. PlanetScale requires authentication. Check the MCP's documentation for the required credentials.