DATABASES Signal 515
Pgbot exposes Postgres diagnostics to AI agents via MCP in a 5.9 MB read-only tool
Illustration only Photo by Tyler on Unsplash
Pgbot is a 5.9 MB open-source Go binary that provides read-only Postgres diagnostics, health, queries, indexes, vacuum, to humans via CLI and to AI agents via the Model Context Protocol.
Pgbot gives engineers a lightweight, read-only way to surface Postgres performance issues without dashboards, and its MCP integration means AI agents like Claude or Cursor can query database health directly. The read-only-by-construction design ensures agents can inspect but never mutate production databases.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Pgbot exposes deterministic tools (inspect and unused_indexes) over MCP, letting AI agents reason over database findings without requiring a separate AI API key.
The tool connects directly to public databases or runs as an agent alongside private databases in Docker, Kubernetes, or VPC environments.
Pgbot provides real-time visibility into connections, locks, transactions, cache hit ratio, replication, WAL, slow queries, index usage, vacuum activity, and storage patterns.
THE CLUSTER