Skip to main content
Glama
itsalfredakku

Postgres MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POOL_MAXNoMaximum connections in pool10
POOL_MINNoMinimum connections in pool2
CACHE_TTLNoCache TTL in milliseconds300000
LOG_LEVELNoLogging level (error|warn|info|debug)info
SQL_LOGGINGNoLog SQL queriesfalse
DATABASE_URLNoPostgreSQL connection string in format postgresql://username:password@localhost:5432/dbname
POSTGRES_SSLNoEnable SSL connectionfalse
CACHE_ENABLEDNoEnable query result cachingtrue
POSTGRES_HOSTNoPostgreSQL host
POSTGRES_PORTNoPostgreSQL port
POSTGRES_USERNoPostgreSQL username
POOL_IDLE_TIMEOUTNoIdle timeout in milliseconds30000
POSTGRES_DATABASENoPostgreSQL database name
POSTGRES_PASSWORDNoPostgreSQL password
POOL_ACQUIRE_TIMEOUTNoAcquire timeout in milliseconds60000

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
queryC

Execute SQL queries with transaction support, query analysis, and performance monitoring

tablesC

Table management: list, create, alter, drop tables and get detailed table information

schemasC

Schema management: list, create, drop schemas and manage schema permissions

indexesC

Index management: list, create, drop indexes and analyze index usage

dataC

Data operations: insert, update, delete, bulk operations with validation

transactionsC

Transaction management: begin, commit, rollback, savepoints

adminC

Database administration: users, permissions, database info, maintenance operations

monitoringC

Database monitoring: performance metrics, statistics, health checks

connectionsC

Connection pool management: status, statistics, configuration

permissionsC

Database permissions management: users, roles, grants, privileges

securityC

Database security management: SSL, authentication, encryption, auditing

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 11 tools

Disambiguation4/5

Most tools have distinct purposes targeting specific database management areas like connections, data, indexes, and schemas. However, there is some overlap between 'admin' and 'permissions' (both mention user/role management) and 'admin' and 'security' (both cover authentication aspects), which could cause minor confusion for an agent.

Naming Consistency5/5

All tool names follow a consistent singular noun pattern (e.g., admin, connections, data, indexes) without mixing conventions. This predictability makes it easy for an agent to understand and navigate the tool set.

Tool Count5/5

With 11 tools, this server is well-scoped for comprehensive Postgres database management, covering administration, operations, monitoring, and security. Each tool earns its place by addressing a distinct aspect of the domain.

Completeness5/5

The tool set provides complete coverage for Postgres management, including CRUD operations (data), schema and table management, indexing, monitoring, security, and transaction support. There are no obvious gaps, enabling agents to handle full database workflows.