Skip to main content
Glama
Postgres MCP Server

Postgres MCP Server

by Zotriq

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LLM_MODELNoModel used to write SQL.gpt-4o-mini
LLM_API_KEYNoAPI key for the ask tool.
DATABASE_URLNoSingle database connection URL.
LLM_BASE_URLNoAny OpenAI-compatible endpoint.OpenAI
PG_MCP_MAX_ROWSNoMaximum rows returned per query.200
PG_MCP_DATABASESNoJSON map of database name to connection URL. Overrides DATABASE_URL.
PG_MCP_STATEMENT_TIMEOUT_MSNoPer-query timeout in milliseconds.5000

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