Prisma MCP connector
OAuth 2.1/DCR DatabasesDeveloper ToolsConnect to Prisma MCP. Manage Prisma Postgres databases, run SQL queries, handle backups, and manage connection strings from your AI workflows.
Prisma MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set 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> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_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)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'prismamcp_fetch_workspace_details',toolInput: {},})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_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)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- List prisma postgres databases, prisma postgres connection strings, prisma postgres backups — List all Prisma Postgres databases in the workspace
- Schema introspect database — Introspect and return the schema of a Prisma Postgres database as JSON
- Fetch workspace details — Retrieve details of the current Prisma Postgres workspace, including plan limits and usage
- Execute sql query, prisma postgres schema update — Execute a SQL query on a Prisma Postgres database and return the results as JSON
- Delete prisma postgres database, prisma postgres connection string — Permanently delete a Prisma Postgres database by its ID
- Create prisma postgres recovery, prisma postgres database, prisma postgres connection string — Restore a Prisma Postgres database from a backup into a new database
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
prismamcp_create_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. 2 params
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.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. projectId string required The unique identifier of the Prisma project. Get it from List Databases. prismamcp_create_prisma_postgres_connection_string
#
Create a new connection string for a Prisma Postgres database. Returns both Prisma and direct connection strings when available. 2 params
Create a new connection string for a Prisma Postgres database. Returns both Prisma and direct connection strings when available.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. name string required A unique display name for the resource. prismamcp_create_prisma_postgres_database
#
Create a new managed Prisma Postgres database in the specified region. 2 params
Create a new managed Prisma Postgres database in the specified region.
name string required A unique display name for the resource. region string required 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. prismamcp_create_prisma_postgres_recovery
#
Restore a Prisma Postgres database from a backup into a new database. 3 params
Restore a Prisma Postgres database from a backup into a new database.
backupId string required The unique identifier of the backup to restore. Get it from List Backups. databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. targetDatabaseName string required A unique name for the recovered database. prismamcp_delete_prisma_postgres_connection_string
#
Permanently delete a connection string by its ID. This action cannot be undone. 1 param
Permanently delete a connection string by its ID. This action cannot be undone.
id string required The unique identifier of the connection string. Get it from List Connection Strings. prismamcp_delete_prisma_postgres_database
#
Permanently delete a Prisma Postgres database by its ID. This action cannot be undone. 1 param
Permanently delete a Prisma Postgres database by its ID. This action cannot be undone.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. prismamcp_execute_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. 3 params
Execute a DDL schema update on a Prisma Postgres database. Use for schema changes only; use Execute SQL Query for data reads and writes.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. projectId string required The unique identifier of the Prisma project. Get it from List Databases. query string required The SQL query to execute against the database. prismamcp_execute_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. 3 params
Execute a SQL query on a Prisma Postgres database and return the results as JSON. Does not have permission to run schema updates.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. projectId string required The unique identifier of the Prisma project. Get it from List Databases. query string required The SQL query to execute against the database. prismamcp_fetch_workspace_details
#
Retrieve details of the current Prisma Postgres workspace, including plan limits and usage. 0 params
Retrieve details of the current Prisma Postgres workspace, including plan limits and usage.
prismamcp_introspect_database_schema
#
Introspect and return the schema of a Prisma Postgres database as JSON. 2 params
Introspect and return the schema of a Prisma Postgres database as JSON.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. projectId string required The unique identifier of the Prisma project. Get it from List Databases. prismamcp_list_prisma_postgres_backups
#
List all available automated backups for a Prisma Postgres database. 1 param
List all available automated backups for a Prisma Postgres database.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. prismamcp_list_prisma_postgres_connection_strings
#
List all connection strings for a Prisma Postgres database. 1 param
List all connection strings for a Prisma Postgres database.
databaseId string required The unique identifier of the Prisma Postgres database. Get it from List Databases. prismamcp_list_prisma_postgres_databases
#
List all Prisma Postgres databases in the workspace. Use the returned id as databaseId in other tools. 0 params
List all Prisma Postgres databases in the workspace. Use the returned id as databaseId in other tools.