Prisma MCP Server
Official正在寻找 Prisma ORM 7? 它位于本仓库的
v7分支 上,并且prisma和@prisma/*这两个 npm 包继续从那里发布。
Prisma Next 目前处于 早期访问 阶段,我们正与社区一起公开构建它。API 仍会根据你的反馈不断演变,因此我们尚不建议将其用于生产环境负载。欢迎参与进来:给仓库点星标,在 X 上关注 @prisma,或在 Prisma 博客 上阅读相关进展。
Prisma Next 是 Prisma ORM 的 TypeScript 重写版本,旨在默认具备可扩展性、可组合性和对 AI 智能体友好的特点。阅读完整公告:Prisma ORM 的下一演进。
先决条件
Node.js 24 或更高版本
一个包管理器(
npm、pnpm或yarn)
Related MCP server: PostgreSQL MCP
入门
1. 搭建一个新项目
交互式脚手架会选择一个 JavaScript 框架(Next.js、Vite、Hono 等),并将 Prisma Next 与你选择的数据库(PostgreSQL 或 MongoDB)集成:
npm create prisma@next完成后,你会得到一个可运行的应用程序、一份起始契约和已注册的智能体技能。
2. 或者,将 Prisma Next 添加到现有项目
在你的仓库根目录运行以下命令:
npx @prisma/cli@next orm initprisma orm init 会写入 prisma.config.ts,在 src/prisma/ 下搭建一份起始契约和 db.ts,安装运行时,生成契约,并注册智能体技能。它不会改动你的框架或构建配置。
3. 让 AI 智能体处理所有 Prisma Next 相关事务
两种安装方式都会在你的项目根目录留下一个顶层 prisma-next.md 入门文档,供任何智能体首先阅读。init 还会按工作流在两个位置各生成一份 SKILL.md,以便不同的智能体运行时能在它们预期的路径下找到这些文件:
.claude/skills/<skill-name>/SKILL.md— 由 Claude Code 识别.agents/skills/<skill-name>/SKILL.md— 供 Cursor、Copilot Agent 和其他运行时使用的通用位置
项目根目录中的 skills-lock.json 会跟踪已安装的技能版本。当你的提示词匹配时,编辑器的 AI 助手会自动加载相应的技能。
只需描述你想要的内容,例如:
“添加一个与
users关联的posts模型,然后编写一个查询,加载每位用户最近的三篇文章。”
智能体会加载 prisma-8 技能,打开其契约和查询参考,然后端到端地完成这一更改。
如需完整目录以及每项技能涵盖的内容,请参阅 skills/README.md。
发现 Bug、缺少功能,或有想向团队提出的问题?
向你的智能体提问即可。prisma-8 技能的反馈流程会起草一份结构化的 GitHub issue,或者为你提供一个 Prisma Discord 链接,用于实时 Q&A。在任何内容提交之前,你都可以审查并确认。
面向扩展作者
Prisma Next 拥有一个极简核心。它周围的一切,包括 Postgres 支持本身,都构建在向所有作者开放的同一公共 SPI 之上。如果你一直想将自己的工具、数据库或库与 Prisma 集成,这就是入口。
已经有几个扩展正在推出:
@internal/extension-pgvector:用于语义搜索的向量列和相似度运算符。@internal/extension-paradedb:支持多种分词器的类型化 BM25 索引,用于全文搜索。@internal/extension-postgis:地理空间类型和查询。@cipherstash/prisma-next:可搜索加密和数据级访问控制。
想发布你自己的扩展?编写 Prisma Next 扩展 这篇博客会介绍 SPI、你的扩展可以接入的层次,以及团队如何在 Prisma Next 目录中突出新扩展。
支持的数据库
Prisma 8 将 PostgreSQL 推进到全面可用(GA)——现阶段仅此而已:
PostgreSQL — 主要目标;在 Prisma 8 中提供全面可用(GA)
MongoDB — 早期访问;证明该框架可超越 SQL 工作
SQLite — 目前仅作概念验证
MySQL 稍后跟进。有关 8.0.0-rc.1 发布之前必须完成的事项,请参阅路线图。
参与贡献
有关环境搭建、命令、DCO 签署和 PR 预期,请参阅 CONTRIBUTING.md。对于实质性更改,请先开启一个 issue,以便在你投入实现时间之前,我们能够提供方向契合的反馈。
安全问题:请遵循 SECURITY.md 中的私有漏洞报告(Private Vulnerability Reporting)流程。请不要将它们作为公开 issue 提交。
社区
用 Prisma Next 做出了什么?请在 X 上标记 @prisma。最优秀的社区作品会在这里获得推荐和链接。
许可证
Apache 2.0。参见 LICENSE。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables secure, AI-driven PostgreSQL database administration, observability, and querying with support for extensions like PostGIS and pgvector, connection pooling, and advanced tool filtering.14512MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI-driven PostgreSQL database management with secure OAuth 2.1 authentication, enabling users to administer, monitor, and query databases with support for extensions like pgvector, PostGIS, and pg_cron.121

Berthofficial
AlicenseAqualityDmaintenanceDatabase management — connect, query, describe schemas, run migrations, and monitor active queries across PostgreSQL, MySQL, and SQLite.15MIT
lobsterdbofficial
AlicenseNot gradedqualityCmaintenanceEnables provisioning and managing PostgreSQL databases, running SQL queries, and evolving schemas with tracked migrations, with automatic account creation and no configuration needed.14MIT
Related MCP Connectors
MCP server for managing Prisma Postgres.
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/orm'
If you have feedback or need assistance with the MCP directory API, please join our Discord server