Skip to main content
Glama
allensandiego

postgres-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PGSSLNoSSL configuration mode (alias for PGSSLMODE)
PGHOSTNoDatabase host namelocalhost
PGPORTNoDatabase port number5432
PGUSERNoDatabase user namepostgres
POOL_MAXNoMaximum active database connections in pool (alias for MAX_CONNECTIONS)10
PGSSLMODENoSSL configuration mode (require, verify-full, etc.)
ROW_LIMITNoMaximum rows returned per query (alias for MAX_ROW_LIMIT)1000
PGDATABASENoDatabase namepostgres
PGPASSWORDNoDatabase password
ALLOW_WRITENoEnables write queries (1, true, yes)false
POSTGRES_DBNoDatabase name (alias for PGDATABASE)postgres
DATABASE_URLNoFull PostgreSQL connection URI (postgres://user:pass@host:port/db)
MAX_ROW_LIMITNoMaximum rows returned per query1000
POSTGRES_HOSTNoDatabase host name (alias for PGHOST)localhost
POSTGRES_USERNoDatabase user name (alias for PGUSER)postgres
MAX_CONNECTIONSNoMaximum active database connections in pool10
QUERY_TIMEOUT_MSNoPer-query timeout in milliseconds30000
POSTGRES_PASSWORDNoDatabase password (alias for PGPASSWORD)

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

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

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