Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
index.ts640 B
import { Prisma, PrismaClient, Role } from '@prisma/client' export default { fetch() { // When using Prisma Client in an edge runtime it would error like this: // ... is unable to run in an edge runtime. As an alternative, try Accelerate: https://pris.ly/d/accelerate. // But that should only happen when executing a query // This tests that creating an instance of PrismaClient does not error // eslint-disable-next-line @typescript-eslint/no-unused-vars const db = new PrismaClient() const data = { Role, ModelName: Prisma.ModelName, } return new Response(JSON.stringify(data)) }, }

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