Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_MODELNoModel to use for SQL generationgpt-4o
OPENAI_API_KEYYesOpenAI API key
OPENAI_BASE_URLNoCustom endpoint (Azure, proxy, etc.)
PG_MCP_MAX_ROWSNoMax rows returned (1-1000)100
PG_MCP_DATABASESYesComma-separated PostgreSQL connection strings
PG_MCP_LOG_LEVELNoLog level: DEBUG, INFO, WARNING, or ERRORINFO
PG_MCP_DEFAULT_DBNoDefault database for queries (defaults to first DSN in PG_MCP_DATABASES)
PG_MCP_QUERY_TIMEOUTNoQuery timeout in seconds30
PG_MCP_SCHEMA_CACHE_PATHNoPath for persistent schema cache

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/awaketai/postgres-mcp'

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