Skip to main content
Glama
postgres-mcp-server

postgres-mcp-server

by RenzoReccio

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTYesDatabase host
DB_NAMEYesDatabase name
DB_PORTYesDatabase port (e.g., 5433)
DB_USERYesDatabase user
DB_PASSWORDYesDatabase password

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_tablesB

List all tables and views available in the current database schema

describe_tableB

Retrieve the column structure, keys, and indexes of a specific table

run_queryA

Execute a read-only SQL SELECT query against the database (results capped to 100 rows)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 3 tools

Disambiguation5/5

Each tool maps to a distinct step of database exploration: enumerate tables, inspect one table's structure, and execute a query. There is no meaningful overlap, and an agent can pick correctly from names alone.

Naming Consistency5/5

All three follow a consistent verb_noun snake_case pattern (list_tables, describe_table, run_query), with no style mixing.

Tool Count4/5

Three tools is on the lean side but cohesive for a read-only discovery-and-query server; each earns its place. A fourth helper (e.g. listing schemas or explaining a plan) would round it out without bloat.

Completeness4/5

The core read-only lifecycle of discover → inspect → query is fully covered, with no dead ends for the stated purpose. Minor gaps exist around multi-schema enumeration and query-plan/stat inspection, but agents can work around them.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues