mcp

MCP.Pizza Chef: prisma

This MCP server lets your AI assistant create, manage, and query Prisma Postgres databases. You can create new databases, run SQL queries, back up data, restore from backups, and check migration status. It works with popular AI tools like Claude Desktop, Cursor, VS Code, and Windsurf. Setup involves adding a small configuration snippet to your AI tool, and you authenticate using your Prisma Console account. Both local and remote server options are available depending on your needs.

Coding
Data
Other

Use This MCP server To

Create a new Prisma Postgres database Backup my existing database before changes Restore a database from a backup Run SQL queries on my database Check migration status of my database Reset my database to a clean state Log into Prisma Console from my AI tool

README

Overview

The Model-Context-Protocol (MCP) gives LLMs a way to call APIs and thus access external systems in a well-defined manner.

Prisma's provides two MCP servers: a local and a remote one. See below for specific information on each.

If you're a developer working on a local machine and want your AI agent to help with your database workflows, use the local MCP server.

If you're building an "AI platform" and want to give the ability to manage database to your users, use the remote MCP server.

Remote MCP server

You can start the remote MCP server as follows:

npx -y mcp-remote https://mcp.prisma.io/mcp

Tools

Tools represent the capabilities of an MCP server. Here's the list of tools exposed by the remote MCP server:

  • 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.

Once you're connected to the remote MCP server, you can also always prompt your AI agent to "List the Prisma tools" to get a full overview of the latest supported tools.

Usage

The remote Prisma MCP server follows the standard JSON-based configuration for MCP servers. Here's what it looks like:

{
  "mcpServers": {
    "Prisma-Remote": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.prisma.io/mcp"]
    }
  }
}

mcp FAQ

Can I use this to create and manage Postgres databases?
Yes — you can create, backup, restore, and delete Prisma Postgres databases using this MCP server.
Can I use this to run SQL queries on my Prisma Postgres databases?
Yes — the server lets your AI execute SQL queries on your databases.
Which apps support this MCP server?
It works with Claude Desktop, Cursor, VS Code, and Windsurf.
Do I need an API key or account to use the remote MCP server?
Yes — you authenticate with your Prisma Console account to access your databases.
How hard is it to set up?
Setup requires copying a small configuration snippet into your AI tool's settings (copy-paste-config).
Can I use this MCP server locally without internet?
Yes — the local MCP server runs on your machine and manages local Prisma databases.
Can I see what tools are available once connected?
Yes — you can prompt your AI to list all Prisma tools exposed by the server.