pg_licht
Inspect PostgreSQL schemas, execution plans, locks, replication, and PgBouncer metrics securely without exposing table rows or permitting write operations.
pg_licht is a read-only Model Context Protocol server built in C++ that allows AI assistants to safely inspect and diagnose PostgreSQL databases. By reading strictly from system catalogs, statistics views, and PgBouncer admin consoles, it delivers essential structural and performance metrics while ensuring table rows are never retrieved and write operations are strictly blocked. Every query runs in an isolated READ ONLY transaction protected by strict statement timeouts and parameterization. Designed for fleet-wide visibility, pg_licht allows operators and AI models to explore schemas, evaluate hypothetical indexes using HypoPG, triage disk or lock contention, and monitor connection pools with zero risk of data mutation or row-level leakage.