Skip to main content
Prisma Documentation Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

Prisma with AI coding tools

Use Prisma with AI coding tools like Cursor, Codex, and ChatGPT

Prisma ORM and Prisma Postgres work with AI coding agents through installable skills, an MCP server, and editor integrations. This page collects the setup guides, prompts, and tutorials for using them together.

Run the following command to bootstrap your database with a prompt:

bun
bunx --bun prisma@prev init --prompt "Create a habit tracker application"
pnpm
pnpm dlx prisma@prev init --prompt "Create a habit tracker application"
yarn
yarn dlx prisma@prev init --prompt "Create a habit tracker application"
npm
npx prisma@prev init --prompt "Create a habit tracker application"

Each guide covers setup and prompts for using Prisma in a specific AI editor or agent.

  • Cursor - Define project-specific rules and use your schema as context to generate accurate queries and code.
  • Codex - Install the Prisma Codex plugin with Prisma ORM skills and the remote Prisma MCP server.
  • Windsurf - Automate your database workflows by generating schemas, queries, and seed data in this AI-powered editor.
  • Github Copilot - Get Prisma-aware code suggestions, run CLI commands from chat, and query the Prisma docs.
  • ChatGPT - Learn how to connect the Prisma MCP server to ChatGPT to manage your databases with natural language.

AI agents often generate outdated Prisma v6 code. Install Prisma Skills to give your agent accurate, up-to-date v7 knowledge: CLI commands, Client API, upgrade guides, database setup, and Prisma Postgres workflows.

bun
bunx skills add prisma/skills
pnpm
pnpm dlx skills add prisma/skills
yarn
yarn dlx skills add prisma/skills
npm
npx skills add prisma/skills

With Prisma's MCP server, your AI tool can create Prisma Postgres databases, run SQL queries, restore automated backups, and manage Object Storage. It can also manage Prisma Compute deployments, read app logs, set environment variables, and inspect how your Composer services connect.

Integrate in AI tool
{
  "mcpServers": {
    "Prisma": {
      "url": "https://mcp.prisma.io/mcp"
    }
  }
}

Tutorials that build a full application from scratch with an AI coding assistant.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu