Home Tutorials Categories Skills About
ZH EN JA KO
🪐

PlanetScale

MySQL Cloud Database Database & Storage

Install Command

npx clawhub@latest install planetscale

Installation Guide

1
Check Environment

Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.

2
Run Installation

Run the install command above in your terminal. ClawHub will automatically download and install PlanetScale to the ~/.openclaw/skills/ directory.

3
Verify Installation

Run openclaw skills list to check your installed skills and confirm PlanetScale appears in the list.

4
Configure (Optional)

Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.

Manual Installation: Copy the Skill folder to ~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
Database branching and deploy requests Safe schema change workflows SQL querying and performance analysis

Detailed Description

PlanetScale MCP server provides management capabilities for PlanetScale MySQL-compatible databases. Its unique branch and deploy request workflow makes database schema changes as safe and controlled as code pull requests.

Core Features

  • SQL Query (execute_query): Execute SQL queries on a specified database branch, supporting both read and write operations
  • Branch Management: Create and manage database branches — each branch is an independent database replica supporting isolated testing of schema changes
  • Deploy Request: A Pull Request-like workflow for schema changes — create deploy requests for review before merging to the production branch
  • Schema Viewing: Get database table structures, indexes, and relationship information
  • Organization & Database Management: List and manage database instances within an organization

Configuration

{
  "mcpServers": {
    "planetscale": {
      "command": "npx",
      "args": ["-y", "@planetscale/mcp-server"],
      "env": {
        "PLANETSCALE_SERVICE_TOKEN": "your-token",
        "PLANETSCALE_SERVICE_TOKEN_ID": "your-token-id",
        "PLANETSCALE_ORG": "your-org-name"
      }
    }
  }
}

Use Cases

  • Safe changes: Achieve zero-downtime schema migrations through branches and deploy requests
  • Development testing: Create branches for development and testing without affecting production data
  • Data querying: Query and analyze MySQL data directly in conversations
  • Database management: Manage multiple database instances and region configurations