Skip to main content
Glama
db.ts381 B
import { Pool } from 'pg'; import { drizzle } from 'drizzle-orm/node-postgres'; import * as schema from '../drizzle/schema.js'; if (!process.env.DATABASE_URL) { throw new Error( 'DATABASE_URL must be set. Did you forget to provision a database?', ); } const pool = new Pool({ connectionString: process.env.DATABASE_URL, }); export const db = drizzle(pool, { schema });

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

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