# Prisma Postgres — Pipedream Connect

> Instant serverless Postgres, zero setup.

- API slug: `prisma_management_api` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Databases
- Website: https://www.prisma.io/docs/guides/management-api-basic
- This page (HTML): https://pipedream.com/apps/prisma-management-api
- Tools: 12 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: prisma_management_api`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "prisma_management_api",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Database:
const result = await mcp.callTool({
  name: "prisma_management_api-create-database",
  arguments: {
    name: "Project Name",
    region: "Region",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "prisma_management_api-create-database",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    prisma_management_api: { authProvisionId: "apn_xxxxxxx" },
    name: "Project Name",
    region: "Region",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (12)

### `prisma_management_api-create-database` — Create Database (Write)

Creates a new Postgres database project via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/create-database.md

### `prisma_management_api-create-database-connection-string` — Create Database Connection String (Write)

Creates a new connection string for an existing database via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/create-database-connection-string.md

### `prisma_management_api-create-new-database-in-existing-project` — Create New Database in Existing Project (Write)

Create a new database in an existing Prisma project. Requires Project ID. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/create-new-database-in-existing-project.md

### `prisma_management_api-delete-database` — Delete Database (Write)

Deletes a Postgres database project via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/delete-database.md

### `prisma_management_api-delete-database-by-database-id` — Delete Database by Database ID (Write)

Delete a specific database by Database ID via Prisma Management API. This action is irreversible. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/delete-database-by-database-id.md

### `prisma_management_api-delete-database-connection-string` — Delete Database Connection String (Write)

Deletes a specific database connection string via Prisma Management API. This action is irreversible. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/delete-database-connection-string.md

### `prisma_management_api-get-database-details` — Get Database details (Read-only)

Get database details of a particular Prisma Postgres database via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/get-database-details.md

### `prisma_management_api-get-postgres-regions` — Get Prisma Postgres Regions (Read-only)

Retrieves a list of all available regions where Prisma Postgres databases can be deployed. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/get-postgres-regions.md

### `prisma_management_api-get-project-details` — Get Project details (Read-only)

Get project details of a particular project in Prisma Workspace via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/get-project-details.md

### `prisma_management_api-list-database-connection-strings` — List Database Connection Strings (Read-only)

Retrieves a list of all connection strings for a specific database via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/list-database-connection-strings.md

### `prisma_management_api-list-databases-from-project` — List Databases from Project (Read-only)

Retrieves a list of all databases within a specific Prisma project. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/list-databases-from-project.md

### `prisma_management_api-list-projects-in-prisma-workspace` — List Projects in Prisma Workspace (Read-only)

List Projects in a Prisma Workspace via Prisma Management API. See docs here

Full schema: https://pipedream.com/apps/prisma-management-api/actions/list-projects-in-prisma-workspace.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
