Skip to main content
Glama
pg-mcp-server

pg-mcp-server

by MugilarasuCS

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PG_HOSTNoPostgreSQL hostlocalhost
PG_PORTNoPostgreSQL port5432
PG_USERNoPostgreSQL rolemcp_reader
MAX_ROWSNoMax rows returned per query500
PG_DATABASENoTarget databasemcp_sample_db
PG_PASSWORDYesRole password (required)
OLLAMA_MODELNoModel name (llama3, mistral, gemma3, etc.)llama3
MCP_TRANSPORTNoTransport mode: stdio or ssestdio
ALLOWED_TABLESNoComma-separated table allow-list (empty = all)
OLLAMA_TIMEOUTNoHTTP timeout in seconds120
ALLOWED_SCHEMASNoComma-separated schema allow-listpublic
OLLAMA_BASE_URLNoOllama server URLhttp://localhost:11434
MAX_QUERY_TIMEOUTNoStatement timeout in seconds30

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

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