About Pgbot
Pgbot is an MCP server published by pgrundev in the Data category: postgres intelligence for ai agents. Conduid read 9 tools from its source: compare_to_baseline, explain_finding, explain_plan, index_code_correlation, inspect, record_index_verdict and 3 more. No package is published for it, so it installs from a source checkout.
The repository has 1.5K stars and 74 forks, and its last commit was on 30 Nov 2026. The latest release is v0.11.1 (24 Nov 2026): Changelog 851393159ed2089dbf0dde13bc2df4326644b33f docs(changelog): 0.11.1 — re-release to publish npm packages. It follows v0.11.0 (23 Nov 2026), and the 5 most recent releases go back to v0.8.1 (6 Sep 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include autovacuum, cli, database, dba, diagnostics and index-advisor.
Install
git clone https://github.com/pgrundev/pgbotTools (9)
compare_to_baselinethe `diff`, with its interval-honesty and reset caveatsexplain_findingpgbot's catalogue page for a finding, so the agent explainsexplain_planthe planner's plan for a SELECT (plain EXPLAIN, never executed),index_code_correlationgrades each unused/redundant/invalid indexinspectfull findings as JSONrecord_index_verdictstore what the repo search found, so a later run over aschema_ofa table's columns/indexes/constraints + row estimate, no datasuggest_indexesplanner-validated index recommendations (hypopg)whythe causal chains from stored history (symptom ← mechanism ←Security checks
- ✓README presentThe repository's README runs to about 9.8K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by flake.lock and go.sum.
- ✓No dynamic code executionScanned 155 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 16 callsinternal/monitor/notifier_app_darwin.go:94, internal/monitor/notifier_app_darwin.go:108, internal/monitor/notifier_app_darwin.go:115
- Outbound network calls
- 5 callsinternal/ai/anthropic.go:112, internal/ai/gemini.go:114, internal/ai/openai.go:144
- Writes or deletes files
- 36 callscmd/pgbot/config_cmd.go:175, cmd/pgbot/monitor.go:528, cmd/pgbot/monitor.go:622
- Lockfile
- flake.lock and go.sum
Pattern matches on the source text of 155 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 9.8K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README