The pgEdge AI DBA Workbench is a unified environment for monitoring and management of any PostgreSQL v14+ instance, including Supabase and Amazon RDS, with an optional AI agent. It watches every instance, catches anomalies before they become outages and walks through a diagnosis and resolution step by step.
The Workbench combines a Model Context Protocol (MCP) Server with a web-based user interface and data collector. Users can query, analyze, and manage distributed clusters using natural language and intelligent automation. The Workbench exposes pgEdge tools and data sources such as Spock replication status, cluster configuration, and operational metrics to language models.
The architecture supports switching between cloud-connected LLMs like Claude and locally hosted models from Ollama. This design ensures similar levels of functionality in air-gapped or secure environments. The pgEdge AI Workbench bridges database administration and AI reasoning; it offers an extensible foundation for observability, troubleshooting, and intelligent workflow creation across the pgEdge ecosystem.
- Components
- Documentation
- Prerequisites
- Building
- Testing
- Getting Started
- Deployment
- Changelog
- Issues
- Contributing
- License
The pgEdge AI DBA Workbench consists of four main components:
- The Collector monitors PostgreSQL servers and stores metrics in a centralized datastore.
- The Server provides MCP tools and resources for interacting with PostgreSQL systems.
- The Alerter evaluates collected metrics against thresholds and AI-powered anomaly detection to generate alerts.
- The Client provides a web-based user interface for the AI Workbench.
Comprehensive documentation is available in the docs directory:
- The Documentation Index serves as the main entry point for all project documentation.
- The User Guide covers dashboards, alerts, and AI features.
- The Administrator's Guide describes authentication, connections, and server configuration.
- The Developer's Guide explains architecture, testing, and contributing.
Before building the project, install the following tools:
- Go 1.24 or later for building server-side components.
- Node.js 18 or later for building the web client.
- PostgreSQL 14 or later for the datastore.
- Make for build automation.
The project uses Makefiles for building and testing. All components can be built from the top-level directory:
# Build all components
make all
# Build individual components
cd collector && make buildThe project includes comprehensive unit tests for each component.
# Run all sub-project tests
make test
# Run all sub-project tests with coverage
make coverage
# Run all sub-project tests with linting
make lint
# Run everything (all sub-project test-all)
make test-allcd collector && make testTEST_AI_WORKBENCH_SERVERspecifies the PostgreSQL connection string for the test database; the default ispostgres://postgres@localhost:5432/postgres.TEST_AI_WORKBENCH_KEEP_DB=1preserves the test database after tests complete.
Each sub-project and the top-level Makefile support the following targets:
allbuilds the project and is the default target.testruns the test suite.coverageruns tests with a coverage report.lintruns the linter.test-allruns tests, coverage, and the linter.cleanremoves build artifacts.killallkills any running processes.helpshows the available targets.
For information on getting started with each component, refer to the following guides:
- Quick Start covers initial setup.
- Installation covers detailed installation steps.
- Configuration covers server configuration.
For detailed installation, configuration, and usage instructions, see the following documentation:
- Server Configuration covers all server options.
- Collector Configuration covers all collector options.
- Alerter Configuration covers all alerter options.
To report an issue with the software, visit: GitHub Issues
We welcome your project contributions; for more information, see docs/developer-guide/contributing.md.
For more information, visit docs.pgedge.com.
This project is licensed under the PostgreSQL License.