# prisma/mcp

**Category:** 🗄️ Databases  
**Repository:** https://github.com/prisma/mcp  
**GitHub Stars:** 49  
**npm Downloads (last month):** 1642697  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/prisma-mcp

## Description
Gives LLMs the ability to manage Prisma Postgres databases (e.g. spin up new databases and run migrations or queries).

## Tools
Capabilities this server exposes over MCP:

- **CreateBackupTool** — Create a new managed Prisma Postgres Backup.
- **CreateConnectionStringTool** — Create a new Connection String for a Prisma Postgres database with the given id.
- **CreateRecoveryTool** — Restore a Prisma Postgres Database to a new database with the given Backup id.
- **DeleteConnectionStringTool** — Delete a Connection String with the given connection string id.
- **DeleteDatabaseTool** — Delete a Prisma Postgres database with the given id.
- **ListBackupsTool** — Fetch a list of available Prisma Postgres Backups for the given database id and environment id.
- **ListConnectionStringsTool** — Fetch a list of available Prisma Postgres Database Connection Strings for the given database id and environment id.
- **ListDatabasesTool** — Fetch a list of available Prisma Postgres Databases for user's workspace.
- **ExecuteSqlQueryTool** — Execute a SQL query on a Prisma Postgres database with the given id.
- **IntrospectSchemaTool** — Introspect the schema of a Prisma Postgres database with the given id.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "mcp": {
    "url": "https://mcp.prisma.io/mcp"
  }
}
```

## Documentation

## What prisma/mcp does

prisma/mcp provides MCP tools for managing Prisma Postgres databases. It can list databases in a user's workspace, create and remove databases, manage database connection strings, create backups, restore a database from a backup, inspect a database schema, and execute SQL queries.

The hosted service is available at `https://mcp.prisma.io/mcp` using Streamable HTTP. It is intended for use from AI clients that support MCP and lets an agent work with Prisma Postgres resources through structured tool calls.

## How it works

An MCP client connects to the hosted endpoint and authenticates with a Prisma account. The client then exposes the available database operations to an AI agent. Operations that target a particular resource use identifiers such as database IDs, environment IDs, backup IDs, or connection-string IDs.

SQL execution and schema introspection operate against a selected Prisma Postgres database. Backup listing uses a database and environment identifier, while recovery creates a new database from a selected backup.

## Setup and configuration

Use the hosted Streamable HTTP endpoint:

`https://mcp.prisma.io/mcp`

Add that endpoint to an MCP-compatible AI client, then sign in with a Prisma account when prompted. The hosted deployment avoids running a local process and does not require environment variables in the documented connection flow.

A local command, `npx prisma mcp`, was previously included in the Prisma ORM CLI for Prisma versions 6.6 through 7.x. That command is not included in Prisma 8. The repository for the server is archived and no longer maintained, so the hosted endpoint is the relevant deployment path.

## Tools and capabilities

- List Prisma Postgres databases available in a workspace.
- Create and delete managed Prisma Postgres databases.
- Create, list, and delete database connection strings.
- Create backups and list backups for a database and environment.
- Restore a database into a new database from a backup.
- Run SQL queries against a selected database.
- Introspect a database schema.

## Limitations and notes

The server does not build or upload code. Its documented database tools operate on Prisma Postgres resources and related connection strings, backups, recovery operations, schemas, and SQL queries.

The local Prisma ORM CLI integration is historical rather than a supported Prisma 8 command. Authentication is handled through a Prisma account when connecting to the hosted service.

_Full upstream README: https://allmcps.com/mcp/prisma-mcp/readme_

