Planet Scale MCP

Live

OAUTH 2.0

DATABASES

Developer Tools

Connect to PlanetScale MCP. Run SQL queries, inspect database branches and schemas, get query performance insights, and manage organizations and invoices.

  • Acts as the user: Every tool call runs as the authorizing user. Access and audit trail stay intact.
  • Credentials stay vaulted: AES-256 encrypted, resolved at request time, never stored in LLM context.
  • Scoped before every call: Per-user permissions enforced automatically. 90-day audit trail included.
Planet Scale MCP
agent · Acme Q3
Run
Planetscale Execute Read Query in Planet Scale MCP
S
planetscalemcp_planetscale_execute_read_query
85ms
Planet Scale MCP agent
Execute a read-only sql query (select, show, describe, explain) against a planetscale database branch..
Sources: Planet Scale MCP
planetscalemcpmcp
1 tool call
18:29
Message Claude...

Planet Scale MCP tools for AI agents

CALL ANY TOOL
12 tools covering planetscale.
planetscalemcp_planetscale_get_branch
Planetscale get branch
Get details about a specific database branch.
Parameters
Name
Type
Required
Description
pathParameters
object
Required
No description.
planetscalemcp_planetscale_get_database
Planetscale get database
planetscalemcp_planetscale_get_insights
Planetscale get insights
planetscalemcp_planetscale_list_branches
Planetscale list branches
planetscalemcp_planetscale_list_invoices
Planetscale list invoices
planetscalemcp_planetscale_list_databases
Planetscale list databases
planetscalemcp_planetscale_get_organization
Planetscale get organization
planetscalemcp_planetscale_list_organizations
Planetscale list organizations
planetscalemcp_planetscale_search_documentation
Planetscale search documentation
planetscalemcp_planetscale_get_branch_schema
Planetscale get branch schema
planetscalemcp_planetscale_execute_read_query
Planetscale execute read query
planetscalemcp_planetscale_list_cluster_sizes
Planetscale list cluster sizes
planetscalemcp_planetscale_execute_write_query
Planetscale execute write query
planetscalemcp_planetscale_list_schema_recommendations
Planetscale list schema recommendations
planetscalemcp_planetscale_get_invoice_line_items
Planetscale get invoice line items
planetscalemcp_planetscale_list_regions_for_organization
Planetscale list regions for organization
Build your Agent
Same auth pattern across every framework.
Python · LlamaIndex
from langchain_mcp_adapters.client import MultiServerMCPClient
from scalekit import ScalekitClient

client = ScalekitClient(env_url=ENV_URL, client_id=CLIENT_ID, client_secret=SECRET)
token = client.agent.get_token(user_id="user_id", connector="planetscalemcp")

mcp = MultiServerMCPClient({
"planetscalemcp": {
"url": "https://mcp.scalekit.com/planetscalemcp",
"headers": {"Authorization": "Bearer " + token}
}
})
tools = await mcp.get_tools()
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const client = new ScalekitClient({ envUrl, clientId, clientSecret });
const token = await client.agent.getToken({ userId: "user_id", connector: "planetscalemcp" });

const openai = new OpenAI();
// Connect to MCP at https://mcp.scalekit.com/planetscalemcp
// Pass: Authorization: Bearer + token
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const client = new ScalekitClient({ envUrl, clientId, clientSecret });
const token = await client.agent.getToken({ userId: "user_id", connector: "planetscalemcp" });

const anthropic = new Anthropic();
// Connect to MCP at https://mcp.scalekit.com/planetscalemcp
// Pass: Authorization: Bearer + token
from google.adk.agents import LlmAgent
from scalekit import ScalekitClient

client = ScalekitClient(env_url=ENV_URL, client_id=CLIENT_ID, client_secret=SECRET)
token = client.agent.get_token(user_id="user_id", connector="planetscalemcp")
# Connect to MCP at https://mcp.scalekit.com/planetscalemcp
# Pass: Authorization: Bearer + token
Try these prompts
Paste any prompt into your agent to get started.
Get started
Copy the prompt
Copied
Search the PlanetScale knowledge base for documentation, API references, code examples, and guides?
Copy the prompt
Copied
List all schema recommendations for a PlanetScale database based on production query patterns?
Advanced
Copy the prompt
Copied
Get details about a specific PlanetScale organization?
Copy the prompt
Copied
Execute a write SQL query (INSERT, UPDATE, DELETE, or DDL) against a PlanetScale database branch?
SEE HOW AUTH WORKS
User authorises once. Every agent call after uses their token with scope enforcement.
1
Authorize
Your user connects
Planet Scale MCP
once. We tie it to their identity and the meetings they approved — no shared bot account, no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Planet Scale MCP
token lives in a vault scoped to them. User A's meetings are never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tokens:
auto-refreshed
3
Resolve
When your agent calls a
Planet Scale MCP
tool, we fetch the right token server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Planet Scale MCP
tool call is logged — who triggered it, which meeting was fetched, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Engineering Teams
Auto release notes agent
Reads merged GitHub PRs, groups them into structured release notes, publishes the page to Notion, and announces the release in Slack. Every call runs on the engineer's own delegated OAuth.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Test other agents
See the same per-user auth pattern across other connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Auto-release notes agent
Group merged GitHub PRs into structured release notes, publish the page to Notion, and announce the release in Slack.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared token looks fine in a demo. In production every call looks like a service account. Scalekit resolves the real user credential.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
One connector today. Ten tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions

Does the agent access Planet Scale as the user or as a shared key?
As the user. Each workspace member authorizes once and Scalekit resolves their credential at request time. Audit logs attribute every action to that user, not a shared service account.

Where is the Planet Scale OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Tokens never appear in prompts, logs, or LLM context.

Can I limit what the agent is allowed to do in Planet Scale?
Yes. Pass a tool name filter to listScopedTools so the DevOps agent only sees the subset you authorize. Pre-API-call scope checks block out-of-policy actions before the request reaches Planet Scale.

What happens when a user revokes Planet Scale access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.

Can the agent run write queries against production branches?
Only if the authorizing user's PlanetScale role allows it. Read and write query tools are separate, so you can filter the agent to reads while keeping branch schema and insights available.

Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""planetscalemcp"": {
""url"": ""https://mcp.scalekit.com/planetscalemcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.planetscalemcp]
url = ""https://mcp.scalekit.com/planetscalemcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""planetscalemcp"": {
""url"": ""https://mcp.scalekit.com/planetscalemcp"",
""type"": ""http""
}
}
}