Skip to main content
Use Prisma through Corsair: one client, typed API calls, local DB sync. Prisma is the company behind Prisma ORM and the Prisma Data Platform: Prisma Postgres (managed PostgreSQL), Accelerate (global database cache), and the Console for managing workspaces, projects, databases, API keys, backups, and integrations. This plugin drives all of that through the Prisma Management API (https://api.prisma.io/v1) plus direct Postgres wire-protocol access for read-only queries, write commands, and schema inspection. Use Corsair permissions for destructive actions such as deleting projects, deleting databases, restoring backups, and revoking connections. What you get:
  • 23 typed API operations
  • 7 synced entities (backups, connections, databases, integrations, projects, regions, and 1 more) for fast .search() / .list()

Setup

1

Install

2

Add the plugin

corsair.ts
Multi-tenancy is the default — scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

backups.list
backups.restore
See the full list on the API page.

Query synced data

Synced entities support tenant.prisma.db.<entity>.search() and .list(): backups, connections, databases, integrations, projects, regions, workspaces. See Database for filters and operators.

What’s next

API reference

Every prisma.api.* operation with input and output types.

Database

Synced entities, search filters, and operators.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.