Skip to main content
Glama
martymarkenson

PostgreSQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POSTGRES_DBYesThe name of the specific database to connect to
POSTGRES_HOSTYesThe hostname or IP address of your PostgreSQL server
POSTGRES_PORTNoThe port number for your PostgreSQL server5432
POSTGRES_USERYesYour PostgreSQL username
POSTGRES_PASSWORDYesYour PostgreSQL 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
test-postgres-connectionA

Test the Postgres connection and return connection status

get-all-tablesA

Execute SQL queries to get all tables in the database

execute-sql-queryA

Execute a SQL query on the database. Only SELECT statements are allowed for security.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 3 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: executing SELECT queries, listing all tables, and testing connection. There is no overlap.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case: execute-sql-query, get-all-tables, test-postgres-connection.

Tool Count2/5

Only 3 tools for a PostgreSQL server is extremely limited. Typical servers require many more operations (CRUD, schema management, etc.), making this count too low for the domain.

Completeness1/5

The server only supports SELECT queries, listing tables, and connection testing. Missing essential operations like INSERT, UPDATE, DELETE, schema inspection, and index management, severely limiting usefulness.

Maintenance

ActivityInactive
ResponsivenessNo issues