Skip to main content
Glama

PostgreSQL MCP Server

AGPL 3.0
498
94
  • Linux
  • Apple

pg_monitor_database

Monitor PostgreSQL database performance in real-time, track queries, locks, replication, and tables, and set custom alert thresholds for critical metrics to ensure optimal database health.

Instructions

Get real-time monitoring information for a PostgreSQL database

Input Schema

NameRequiredDescriptionDefault
alertThresholdsNoAlert thresholds
connectionStringNo
includeLocksNo
includeQueriesNo
includeReplicationNo
includeTablesNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "alertThresholds": { "additionalProperties": false, "description": "Alert thresholds", "properties": { "cacheHitRatio": { "description": "Cache hit ratio threshold", "maximum": 1, "minimum": 0, "type": "number" }, "connectionPercentage": { "description": "Connection usage percentage threshold", "maximum": 100, "minimum": 0, "type": "number" }, "deadTuplesPercentage": { "description": "Dead tuples percentage threshold", "maximum": 100, "minimum": 0, "type": "number" }, "longRunningQuerySeconds": { "description": "Long-running query threshold in seconds", "exclusiveMinimum": 0, "type": "number" }, "vacuumAge": { "description": "Vacuum age threshold in days", "exclusiveMinimum": 0, "type": "integer" } }, "type": "object" }, "connectionString": { "type": "string" }, "includeLocks": { "default": false, "type": "boolean" }, "includeQueries": { "default": false, "type": "boolean" }, "includeReplication": { "default": false, "type": "boolean" }, "includeTables": { "default": false, "type": "boolean" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HenkDz/postgresql-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server