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
- OAuth app
- Scalekit's or your own
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. 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>Create the Prisma MCP connection
In AgentKit > Connections, create a Prisma MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Scalekit credentials are available for Prisma MCP server, so you don't need to register an OAuth app.
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.actionsconst connector = 'prismamcp'const identifier = 'user_123'// Generate an authorization link for the userconst { 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 callconst result = await actions.executeTool({connector,identifier,toolName: 'prismamcp_fetch_workspace_details',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "prismamcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Prisma MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="prismamcp_fetch_workspace_details",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolprismamcp_fetch_workspace_detailsRetrieve details of the current Prisma Postgres workspace, including plan limits and usage.Read-onlyFetch 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-onlyIntrospect 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-onlyList 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-onlyList 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-onlyList 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-onlyList 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-onlySearch 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.WriteCreate 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.
prismamcp_create_object_store_bucket_keyCreate an S3-compatible access key for an object-store bucket.WriteCreate Object Store Bucket Key
Create an S3-compatible access key for an object-store bucket. The secret access key is returned exactly once and never stored, so it must be saved immediately.
Inputs
bucketIdstringrequired- The bucket ID to create the key for (e.g. bkt_xxx). Use the List Buckets tool to find it.
rolestringrequired- Access level: 'read' for read-only, 'read_write' for full access.one of
readread_write namestring- A display name for the key. Generated if omitted.
prismamcp_create_prisma_postgres_backupCreate an automated backup for a Prisma Postgres database.WriteCreate Prisma Postgres Backup
Create an automated backup for a Prisma Postgres database. Note: on-demand backup creation is not currently supported; backups are created automatically by the system.
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_create_prisma_postgres_connection_stringCreate a new connection string for a Prisma Postgres database.WriteCreate Prisma Postgres Connection String
Create a new connection string for a Prisma Postgres database. Returns both Prisma and direct connection strings when available.
Inputs
databaseIdstringrequired- The unique identifier of the Prisma Postgres database. Get it from List Databases.
namestringrequired- A unique display name for the resource.
prismamcp_create_prisma_postgres_databaseCreate a new managed Prisma Postgres database in the specified region.WriteCreate Prisma Postgres Database
Create a new managed Prisma Postgres database in the specified region.
Inputs
namestringrequired- A unique display name for the resource.
regionstringrequired- The AWS region to deploy the database in. Accepted values: us-east-1, us-west-1, eu-west-3, eu-central-1, ap-northeast-1, ap-southeast-1.one of
us-east-1us-west-1eu-west-3eu-central-1ap-northeast-1ap-southeast-1
prismamcp_create_prisma_postgres_recoveryRestore a Prisma Postgres database from a backup into a new database.WriteCreate Prisma Postgres Recovery
Restore a Prisma Postgres database from a backup into a new database.
Inputs
backupIdstringrequired- The unique identifier of the backup to restore. Get it from List Backups.
databaseIdstringrequired- The unique identifier of the Prisma Postgres database. Get it from List Databases.
targetDatabaseNamestringrequired- A unique name for the recovered database.
prismamcp_delete_object_store_bucketPermanently delete an object-store bucket, all objects stored in it, and all its access keys.DestructiveDelete Object Store Bucket
Permanently delete an object-store bucket, all objects stored in it, and all its access keys. This action cannot be undone.
Inputs
bucketIdstringrequired- The bucket ID to delete (e.g. bkt_xxx). Use the List Buckets tool to find it.
prismamcp_delete_object_store_bucket_keyDelete an object-store bucket access key.DestructiveDelete Object Store Bucket Key
Delete an object-store bucket access key. The key immediately stops working. This action cannot be undone.
Inputs
bucketKeyIdstringrequired- The key ID to delete (e.g. bkey_xxx), as returned when the key was created.
prismamcp_delete_prisma_postgres_connection_stringPermanently delete a connection string by its ID.DestructiveDelete Prisma Postgres Connection String
Permanently delete a connection string by its ID. This action cannot be undone.
Inputs
idstringrequired- The unique identifier of the connection string. Get it from List Connection Strings.
prismamcp_delete_prisma_postgres_databasePermanently delete a Prisma Postgres database by its ID.DestructiveDelete Prisma Postgres Database
Permanently delete a Prisma Postgres database by its ID. This action cannot be undone.
Inputs
databaseIdstringrequired- The unique identifier of the Prisma Postgres database. Get it from List Databases.
prismamcp_execute_prisma_postgres_schema_updateExecute a DDL schema update on a Prisma Postgres database.DestructiveExecute Prisma Postgres Schema Update
Execute a DDL schema update on a Prisma Postgres database. Use for schema changes only; use Execute SQL Query for data reads and writes.
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.
querystringrequired- The SQL query to execute against the database.
prismamcp_execute_sql_queryExecute a SQL query on a Prisma Postgres database and return the results as JSON.DestructiveExecute Sql Query
Execute a SQL query on a Prisma Postgres database and return the results as JSON. Does not have permission to run schema updates.
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.
querystringrequired- The SQL query to execute against the database.
No tools match.