Skip to main content
Glama

PostgreSQL MCP Server

by abdou-ghonim

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_NAMENoServer namepostgresql-mcp-server
MCP_VERSIONNoServer version1.0.0
MCP_MAX_ROWSNoMaximum rows returned per query1000
MCP_LOG_LEVELNoLogging levelINFO
POSTGRES_HOSTNoPostgreSQL server hostlocalhost
POSTGRES_PORTNoPostgreSQL server port5432
MCP_LOG_QUERIESNoWhether to log executed queriestrue
POSTGRES_DATABASEYesDatabase name
POSTGRES_PASSWORDYesDatabase password
POSTGRES_SSL_MODENoSSL connection modeprefer
POSTGRES_USERNAMEYesDatabase username
MCP_MAX_QUERY_TIMENoMax query execution time (seconds)30
MCP_ALLOWED_SCHEMASNoComma-separated list of allowed schemas
POSTGRES_MAX_CONNECTIONSNoMaximum pool connections10
POSTGRES_MIN_CONNECTIONSNoMinimum pool connections1

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/abdou-ghonim/mcp-postgres'

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