Skip to main content
Glama
lishireason

w5-pg-mcp

by lishireason

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_MODELNoModel to usegpt-5.2-mini
CACHE_ENABLEDNoEnable schema cachingtrue
DATABASE_HOSTNoPostgreSQL hostlocalhost
DATABASE_NAMEYesDatabase name (required)
DATABASE_PORTNoPostgreSQL port5432
DATABASE_USERYesDatabase user (required)
CACHE_MAX_SIZENoMaximum number of schemas to cache100
OPENAI_API_KEYYesOpenAI API key (required)
OPENAI_TIMEOUTNoOpenAI API timeout in seconds30
CACHE_SCHEMA_TTLNoSchema cache TTL in seconds3600
DATABASE_PASSWORDYesDatabase password (required)
OPENAI_MAX_TOKENSNoMaximum tokens per request32000
SECURITY_MAX_ROWSNoMaximum rows per query10000
OPENAI_TEMPERATURENoModel temperature0.0
DATABASE_MAX_POOL_SIZENoMaximum connection pool size20
DATABASE_MIN_POOL_SIZENoMinimum connection pool size5
RESILIENCE_MAX_RETRIESNoMaximum retry attempts3
RESILIENCE_RETRY_DELAYNoInitial retry delay in seconds1.0
OBSERVABILITY_LOG_LEVELNoLog levelINFO
DATABASE_COMMAND_TIMEOUTNoQuery timeout in seconds30
OBSERVABILITY_LOG_FORMATNoLog format (json/text)json
RESILIENCE_BACKOFF_FACTORNoExponential backoff multiplier2.0
OBSERVABILITY_METRICS_PORTNoMetrics HTTP port9090
SECURITY_BLOCKED_FUNCTIONSNoComma-separated list of blocked PostgreSQL functions
SECURITY_MAX_EXECUTION_TIMENoQuery execution timeout in seconds30
OBSERVABILITY_METRICS_ENABLEDNoEnable Prometheus metricstrue
SECURITY_ALLOW_WRITE_OPERATIONSNoAllow INSERT/UPDATE/DELETE operationsfalse
RESILIENCE_CIRCUIT_BREAKER_TIMEOUTNoCircuit breaker timeout in seconds60
RESILIENCE_CIRCUIT_BREAKER_THRESHOLDNoNumber of failures before circuit breaker opens5

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{
  "tasks": {
    "list": {},
    "cancel": {},
    "requests": {
      "tools": {
        "call": {}
      },
      "prompts": {
        "get": {}
      },
      "resources": {
        "read": {}
      }
    }
  }
}

Tools

Functions exposed to the LLM to take actions

NameDescription
addA

Add two numbers

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources