Skip to main content
Glama
PlbKin190

postgres-mcp-lab

by PlbKin190

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PGSSLNoSSL mode for database connection. Default: disabledisable
PGHOSTNoDatabase server host. Default: dbdb
PGPORTNoDatabase server port. Default: 54325432
PGUSERNoDatabase user. Default: readerreader
MAX_ROWSNoMaximum number of rows returned by tools. Default: 100100
PGSSL_CANoPEM CA certificate content for verified TLS. Optional.
POOL_MAXNoMaximum connection pool size. Default: 44
PGDATABASENoDatabase name. Default: librarylibrary
PGPASSWORDNoDatabase password. Default: empty
OPENAI_API_KEYNoOpenAI API key, used when EMBEDDING_PROVIDER=openai. Default empty.
CONNECT_TIMEOUT_MSNoDatabase connection timeout in milliseconds. Default: 50005000
EMBEDDING_PROVIDERNoEmbedding provider: 'hash' (default) or 'openai'.hash
MAX_RESPONSE_BYTESNoMaximum serialized tool response size in bytes. Default: 6553665536
EMBEDDING_DIMENSIONSNoNumber of embedding dimensions. Default: 6464
EMBEDDING_TIMEOUT_MSNoEmbedding request timeout in milliseconds. Default: 1000010000
OPENAI_EMBEDDING_URLNoOpenAI embeddings endpoint URL. Default is the public embeddings endpoint.
STATEMENT_TIMEOUT_MSNoStatement timeout in milliseconds. Default: 50005000
OPENAI_EMBEDDING_MODELNoOpenAI embedding model name. Default: text-embedding-3-smalltext-embedding-3-small

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
queryA

Run a parameterized read-only SELECT with server-enforced row and time limits.

schemaC

Inspect schemas, tables, columns, indexes or foreign keys. Repeat for each kind.

explainA

Return a JSON execution plan without ANALYZE; the query is not executed.

semanticA

Rank rows using pgvector cosine distance. Default hash encoding measures token overlap, not meaning.

cypherA

Run read-only Apache AGE Cypher. Supply graph and explicit output column names.

healthA

Check PostgreSQL connectivity, read-only settings and installed vector/age versions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a clearly distinct operation: generic SQL, schema inspection, query planning, vector similarity, Cypher graph queries, and health checks. There is little risk of selecting the wrong tool for a given task.

Naming Consistency4/5

All tool names are single lowercase words, giving a clean and consistent style. However, they mix verbs and nouns (query/explain vs schema/health) rather than following a strict verb_noun pattern.

Tool Count5/5

Six tools is well-scoped for a PostgreSQL lab server covering SQL, schema, plans, vector search, graph queries, and health. Each tool earns its place without redundancy.

Completeness5/5

The read-only domain is fully covered: arbitrary SQL, schema inspection, execution plans, vector ranking, graph querying, and environment health. No obvious dead ends or missing core operations for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo issues