Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
main.ts545 B
import { PrismaClient } from './@prisma/client' const prisma = new PrismaClient({ log: ['query', 'info', 'warn', 'error'], }) async function main() { await prisma.post.create({ data: { title: 'TEST', content: 'hello', authorId: 1, }, }) const users = await Promise.all([ // This will be batched: prisma.user.findUnique({ where: { id: 1 } }), prisma.user.findUnique({ where: { id: 2 } }), ]) console.dir(users, { depth: null }) } main().finally(async () => { await prisma.$disconnect() })

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/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server