Postgres MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| POOL_MAX | No | Maximum connections in pool | 10 |
| POOL_MIN | No | Minimum connections in pool | 2 |
| CACHE_TTL | No | Cache TTL in milliseconds | 300000 |
| LOG_LEVEL | No | Logging level (error|warn|info|debug) | info |
| SQL_LOGGING | No | Log SQL queries | false |
| DATABASE_URL | No | PostgreSQL connection string in format postgresql://username:password@localhost:5432/dbname | |
| POSTGRES_SSL | No | Enable SSL connection | false |
| CACHE_ENABLED | No | Enable query result caching | true |
| POSTGRES_HOST | No | PostgreSQL host | |
| POSTGRES_PORT | No | PostgreSQL port | |
| POSTGRES_USER | No | PostgreSQL username | |
| POOL_IDLE_TIMEOUT | No | Idle timeout in milliseconds | 30000 |
| POSTGRES_DATABASE | No | PostgreSQL database name | |
| POSTGRES_PASSWORD | No | PostgreSQL password | |
| POOL_ACQUIRE_TIMEOUT | No | Acquire timeout in milliseconds | 60000 |
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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
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.
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.
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.
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.