whereismyai
pgbot
pgbot is a PostgreSQL intelligence tool that provides AI-powered explanations for database performance, queries, and health.
pgbot is a Postgres intelligence tool that connects to any PostgreSQL database to provide visibility into performance, queries, health, schema, and changes. It works by connecting directly over the wire or by running the agent next to a database inside your private network using Docker, Kubernetes, or internal servers. Users can ask questions in plain English to receive summaries, explanations, and recommendations based on real database signals. It supports the Model Context Protocol on stdio, allowing AI agents to call it as a read-only tool to inspect findings and identify unused indexes. The software is read-only by construction, ensuring it never writes to your database and nothing leaves your infrastructure.
pgbot at a glance
- Best for: Software engineer, Finance
- Runs on: CLI, self-hosted, open source
- Pricing: Free
- Released: August 2026
- Category: AI coding tool
- Website: pgbot.dev
Key features
- PostgreSQL health monitoring
- Query performance analysis
- Slow query and regression detection
- Table and index analytics
- AI root-cause analysis
- Model Context Protocol tool support
- Read-only agent execution
Use it for
- Monitor database connections, locks, transactions, and cache hit ratios
- Track slow queries, throughput, and expensive SQL
- Analyze table growth, index usage, and vacuum activity
- Ask questions in plain English to diagnose database issues
Alternatives to pgbot
- AI2sql — Connects directly to live database schemas to generate accurate, dialect-specific SQL.
- DB-GPT — Builds autonomous agents for complex data tasks with private LLM technology.
- Postgres MCP Pro — It provides AI agents with deep database analysis and safe query execution tools.
- TEXT2SQL.AI — Generates accurate SQL queries from natural language instantly.
- pstack — Improves AI coding agent outcomes with rigorous workflows.
- SQLAI.ai — Generates clean SQL queries and optimizes performance with clear reasoning.
- Frizky Kramer — Integrates with existing Claude Code, Codex, or Cursor installations.
- Rdst — Catches slow queries and generates exact SQL fixes with zero database writes.
- pgEdge — It combines AI tooling with standard Postgres and flexible deployment options.
- PR Explainer Bot — Saves time on code reviews with automated pull request explanations.
- Postquel — Uses your existing local Claude Code, Codex, or Cursor AI account.
- Tabularis — Combines a full-featured human SQL editor with a built-in Model Context Protocol server.
All pgbot alternatives