Prisma ORM 8 is here.Read the docs

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.

Get started

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

bunx --bun prisma@7.10.0 init --prompt "Create a habit tracker application"

AI Coding Tools

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.

Agent Skills

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.

bunx skills add prisma/skills

MCP server

With Prisma's MCP server, your AI tool can take database actions on your behalf, such as provisioning a new Prisma Postgres instance, creating database backups, and executing SQL queries.

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

Vibe Coding Tutorials

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

Resources

Integrations

On this page