Skip to main content
Glama
hovecapital

PostgreSQL MCP Server

by hovecapital

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_SSLNoEnable SSL connectionfalse
DB_HOSTNoPostgreSQL server hostnamelocalhost
DB_PORTNoPostgreSQL server port5432
DB_DATABASENoDatabase namepostgres
DB_PASSWORDNoPostgreSQL password
DB_USERNAMENoPostgreSQL usernamepostgres

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
connectA

Connect to a PostgreSQL database using a connection string. The connection persists for subsequent queries until changed or disconnected. Only hosts listed in DB_ALLOWED_HOSTS (plus the default DB_HOST:DB_PORT) are permitted.

disconnectA

Disconnect from the current runtime database and revert to the default environment-configured connection

queryA

Run a read-only SQL query against the currently connected database

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation5/5

The three tools have completely distinct roles: connect establishes a connection, disconnect tears it down, and query executes SQL. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tool names are single lowercase verbs in the imperative style: connect, disconnect, query. The naming pattern is perfectly consistent and predictable.

Tool Count5/5

Three tools is an appropriate scope for a focused read-only query server: connection management plus query execution. Each tool has a clear, necessary purpose.

Completeness4/5

The connection lifecycle is complete, and query covers the core read-only use case. Missing conveniences like schema listing or write operations are either outside the stated read-only scope or can be worked around via SQL queries.

Maintenance

ActivityMaintained
ResponsivenessNo issues