Skip to main content
Glama
SaadRiaz99

PostgreSQL MCP Server

by SaadRiaz99

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATABASE_URLNoOptional SQLAlchemy database URL, e.g. postgresql+asyncpg://user:password@localhost:5432/your_db. Note: the asyncpg pool uses the separate DATABASE_* fields; changing DATABASE_URL alone does not configure that pool.
DATABASE_HOSTYesPostgreSQL host. Required for the asyncpg pool.
DATABASE_NAMEYesPostgreSQL database name. Required for the asyncpg pool.
DATABASE_PORTYesPostgreSQL port. Required for the asyncpg pool.
DATABASE_USERYesPostgreSQL user. Required for the asyncpg pool.
ENABLE_AI_SQLNoEnable AI SQL tools.
READ_ONLY_MODENoWhen true, only SELECT and EXPLAIN are allowed.
ENABLE_AUDIT_LOGNoEnable audit logging.
DATABASE_PASSWORDYesPostgreSQL password. Required for the asyncpg pool.

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