IntegrateIntegrate
Integrations

PlanetScale Integration

Manage PlanetScale databases, branches, and schema changes

The PlanetScale integration provides access to manage PlanetScale databases, branches, and schema changes through the Integrate MCP server.

Installation

The PlanetScale integration is included with the SDK:

import { planetscaleIntegration } from "integrate-sdk/server";

Setup

1. Create a PlanetScale OAuth App

  1. Go to Auth Developer Portal
  2. Create a new OAuth application
  3. Configure your redirect URI
  4. Note your Client ID and Client Secret

2. Configure the Integration on Your Server

Add the PlanetScale integration to your server configuration. The integration automatically reads PLANETSCALE_CLIENT_ID and PLANETSCALE_CLIENT_SECRET from your environment variables:

import { createMCPServer, planetscaleIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    planetscaleIntegration({
    }),
  ],
});

You can override the environment variables by passing explicit values:

planetscaleIntegration({
  clientId: process.env.CUSTOM_PLANETSCALE_ID,
  clientSecret: process.env.CUSTOM_PLANETSCALE_SECRET,
});

3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

import { client } from "integrate-sdk";

await client.authorize("planetscale");
// Use client.planetscale methods after connecting

If you're using a custom client, add the integration to the integrations array:

import { createMCPClient, planetscaleIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [planetscaleIntegration()],
});

Configuration Options

Prop

Type

Tools

planetscale_get_current_user

Get current user

No parameters.

planetscale_list_organizations

List organizations

No parameters.

planetscale_get_organization

Get organization

No parameters.

planetscale_list_databases

List databases

No parameters.

planetscale_get_database

Get database

No parameters.

planetscale_list_branches

List branches

No parameters.

planetscale_get_branch

Get branch

No parameters.

planetscale_list_deploy_requests

List deploy requests

No parameters.

planetscale_get_deploy_request

Get deploy request

No parameters.

Notes

  • Category: Infrastructure
  • Authentication mode: OAuth

On this page