Prisma ORM v6.6.0: MCP Server for Prisma Postgres
Prisma ORM v6.6.0: MCP Server for Prisma Postgres
Prisma Postgres is the first serverless database without cold starts. Designed for optimal efficiency and high performance, it's the perfect database to be used alongside AI tools like Cursor, Windsurf, Lovable or co.dev.
In the v6.6.0 ORM release, we added a command to start a Prisma MCP server that you can integrate in your AI development environment. Thanks to that MCP server, you can now:
- tell your AI agent to create new DB instances
- design your data model
- chat through a database migration
… and much more.
To get started, add this snippet to the MCP configuration of your favorite AI tool and get started:
{
"mcpServers": {
"Prisma": {
"command": "npx",
"args": ["-y", "prisma", "mcp"]
}
}
}Read more about the MCP server on our blog: Announcing Prisma's MCP Server: Vibe Code with Prisma Postgres
🚀 Prisma ORM 6.6.0
Prisma ORM v6.6.0 comes packed with amazing features:
A modern and flexible prisma-client generator with ESM support (Early Access)
In v6.6.0, we introduced a new prisma-client generator that's more flexible, comes with ESM support and removes any magic behaviours that may cause friction with the current prisma-client-js generator.
Note: The prisma-client generator is currently in Early Access and will likely have some breaking changes in the next releases.
Here are the main differences:
- Requires an
outputpath; no “magic” generation intonode_modulesany more - Supports ESM and CommonJS via the
moduleFormatfield - Outputs plain TypeScript that's bundled just like the rest of your application code
Here's how you can use the new prisma-client generator in your Prisma schema:
// prisma/schema.prisma
generator client {
provider = "prisma-client" // no `-js` at the end
output = "../src/generated/prisma" // `output` is required
moduleFormat = "esm" // or `"cjs"` for CommonJS
}📚 Learn more in the docs.
Cloudflare D1 & Turso/LibSQL migrations (Early Access)
Cloudflare D1 and Turso are popular database providers that are both based on SQLite. While you can query them using the respective driver adapter for D1 or Turso, previous versions of Prisma ORM weren't able to make schema changes against these databases.
With the v6.6.0 release, we're sharing the first Early Access version of native D1 migration support for the following commands:
prisma db push: Updates the schema of the remote database based on your Prisma schemaprisma db pull: Introspects the schema of the remote database and updates your local Prisma schemaprisma migrate diff: Outputs the difference between the schema of the remote database and your local Prisma schema
📚 Learn more in the docs:
😎 npx prisma init --prompt "An encyclopedia for cats"
You can now pass a --prompt option to the prisma init command to have it scaffold a Prisma schema for you and deploy it to a fresh Prisma Postgres instance:
npx prisma init --prompt "An encyclopedia for cats"For everyone, following social media trends, we also created an alias called --vibe for you 😉
npx prisma init --vibe "Cat meme generator"🧑🚀 More from the Prismasphere
- Join us for an in-person event on May 1st (Thursday) in London: 🌎 Region: Earth: London with Cloudflare & Prisma.
- Check out our new guide to get started with SolidJS & Prisma.
- Watch this “Ask Me Anything” session on YouTube where our ORM engineering team answers all your questions and talks about upcoming improvements to Prisma ORM.
- Our friends at MongoDB have published a great tutorial on getting started with Next.js 15, MongoDB & Prisma ORM: 10X Your Development Speed: Prisma + MongoDB + Next.js Ultimate Stack
- We not only cook software, we also cook music every once in a while 😉 Check out our new band “DBeastie boys” with their new song “No cold starts, just hot queries” 🎶🔥