Skip to main content
Glama
prisma

Prisma MCP Server

Official
by prisma
adapter.ts479 B
import { PrismaPg } from '@prisma/adapter-pg' import { expectTypeOf } from 'expect-type' import { PrismaClient } from './generated/prisma/client' async function main() { const adapter = new PrismaPg({ connectionString: process.env.TEST_E2E_POSTGRES_URI! }) const prisma = new PrismaClient({ adapter, }) const user = await prisma.user.findFirst({ select: { id: true, }, }) expectTypeOf(user).toEqualTypeOf<{ id: number } | null>() } void main()

Latest Blog Posts

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