Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to the Prisma MCP server

Vendor MCP
Open markdown

The Prisma MCP connector routes your AI agent's tool calls to Prisma's own MCP server through Scalekit. Each user signs in to Prisma once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 19 tools.

Tools
19
What they doRead · write · destructive
7 · 6 · 67 read6 write6 destructive
Users sign in with
OAuth app
Scalekit's or your own

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Prisma MCP connection

    In AgentKit > Connections, create a Prisma MCP connection. The name you give it is the connection_name your code passes. See Configure connections.

    Scalekit credentials are available for Prisma MCP server, so you don't need to register an OAuth app.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'prismamcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Prisma MCP:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'prismamcp_fetch_workspace_details',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user signs in once. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • prismamcp_fetch_workspace_detailsRetrieve details of the current Prisma Postgres workspace, including plan limits and usage.Read-only

    Fetch Workspace Details

    Retrieve details of the current Prisma Postgres workspace, including plan limits and usage.

    Inputs

    This tool takes no inputs.

  • prismamcp_introspect_database_schemaIntrospect and return the schema of a Prisma Postgres database as JSON.Read-only

    Introspect Database Schema

    Introspect and return the schema of a Prisma Postgres database as JSON.

    Inputs

    databaseIdstringrequired
    The unique identifier of the Prisma Postgres database. Get it from List Databases.
    projectIdstringrequired
    The unique identifier of the Prisma project. Get it from List Databases.
  • prismamcp_list_object_store_bucketsList object-store buckets in the workspace, 100 per page, optionally filtered by project ID.Read-only

    List Object Store Buckets

    List object-store buckets in the workspace, 100 per page, optionally filtered by project ID. Use the returned id as bucketId in other bucket tools.

    Inputs

    cursorstring
    Pagination cursor from a previous response's nextCursor.
    projectIdstring
    Filter buckets by project ID (e.g. proj_xxx). Omit to list all buckets.
  • prismamcp_list_prisma_postgres_backupsList all available automated backups for a Prisma Postgres database.Read-only

    List Prisma Postgres Backups

    List all available automated backups for a Prisma Postgres database.

    Inputs

    databaseIdstringrequired
    The unique identifier of the Prisma Postgres database. Get it from List Databases.
  • prismamcp_list_prisma_postgres_connection_stringsList all connection strings for a Prisma Postgres database.Read-only

    List Prisma Postgres Connection Strings

    List all connection strings for a Prisma Postgres database.

    Inputs

    databaseIdstringrequired
    The unique identifier of the Prisma Postgres database. Get it from List Databases.
  • prismamcp_list_prisma_postgres_databasesList all Prisma Postgres databases in the workspace.Read-only

    List Prisma Postgres Databases

    List all Prisma Postgres databases in the workspace. Use the returned id as databaseId in other tools.

    Inputs

    This tool takes no inputs.

  • prismamcp_search_prisma_documentationSearch Prisma's official documentation and knowledge sources to answer questions about Prisma Postgres, Prisma ORM, Accelerate, Optimize, schema design, and migrations.Read-only

    Search Prisma Documentation

    Search Prisma's official documentation and knowledge sources to answer questions about Prisma Postgres, Prisma ORM, Accelerate, Optimize, schema design, and migrations. Returns an answer grounded in the docs, with citations.

    Inputs

    querystringrequired
    Natural-language question about Prisma — Prisma Postgres, Prisma ORM, Accelerate, Optimize, schema design, migrations, etc.
  • prismamcp_create_object_store_bucketCreate a new object-store bucket in the given project.Write

    Create Object Store Bucket

    Create a new object-store bucket in the given project. On success, use the returned bucket id to generate access credentials.

    Inputs

    projectIdstringrequired
    The project ID to create the bucket in (e.g. proj_xxx).
    branchIdstring
    Branch ID (e.g. br_xxx) to scope the bucket to. Defaults to the project default branch.
    namestring
    A display name for the bucket. Generated if omitted.