
DBeast PostgreSQL MCP
io.github.snss10Published by GitHub account snss10v2.0.2Updated Oct 24, 2026
PostgreSQL MCP server for schema, query, health, security, and performance analysis.
Overview
Gives an AI assistant 21 focused PostgreSQL DBA tools for schema discovery, read-only queries, impact previews, performance, security, and maintenance analysis.
- What you can do
- DBeast connects an assistant to a PostgreSQL database over MCP stdio and exposes 21 tools across ten categories. It covers connection and health checks, schema discovery with optional Mermaid ERDs, dependency mapping, read-only SELECT execution with automatic row limits, query analysis and index recommendations, impact previews for writes, performance and maintenance reporting, security and sensitive-data audits, data quality checks, configuration review, replication status, and audit log retrieval.
- When to use it
- Useful when an assistant needs to inspect or audit a PostgreSQL database: exploring schemas, answering lookup questions, diagnosing slow queries, reviewing vacuum and index health, checking roles and privileges, or estimating the impact of a planned delete or archive before running it.
- Requirements
- Runs locally as a stdio subprocess; the manifest lists an OCI image ghcr.io/snss10/dbeast:2.0.2, and the README installs from source with pip. Needs a PostgreSQL connection, supplied by DATABASE_URL or by DB_HOST, DB_PORT, DB_USER, DB_PASSWORD and DB_NAME, or via AWS Secrets Manager using AWS_SECRET_NAME and AWS_REGION. Desktop clients only; no HTTP service required.
Installation
In SourceWeft
- Open DBeast PostgreSQL MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
A PostgreSQL MCP server that gives AI assistants expert DBA capabilities.
[Python 3.11+] [PostgreSQL 12+] [MCP Compatible] [License: MIT]
Quick Start · Demo · Tools · Safety · Configuration · Docs
DBeast connects AI assistants such as Claude, Cursor, Windsurf, and VS Code Copilot to PostgreSQL through the Model Context Protocol. Instead of exposing one broad execute_sql escape hatch, DBeast provides 21 focused tools for schema discovery, safe query execution, impact analysis, performance review, security checks, maintenance reporting, replication monitoring, and data quality inspection.
Demo
Watch Claude use DBeast MCP tools to audit a PostgreSQL database, identify security and maintenance risks, and preview cleanup impact without executing destructive SQL.
How It Works
DBeast runs as a local stdio MCP server. Your IDE or desktop assistant starts it as a subprocess and passes database credentials through environment variables. The assistant calls DBeast tools, DBeast queries PostgreSQL, and structured results come back to the assistant. No HTTP service or extra infrastructure is required.
Quick Start
1. Install
For development:
Optional: copy .env.example to .env and set your database credentials.
2. Verify
Or run the source entry point directly:
3. Configure Your MCP Client
Minimal Cursor or Windsurf config:
Common config locations:
See SETUP.md for full client examples, Docker, RDS, Supabase, Neon, SSH tunnels, AWS Secrets Manager, and troubleshooting.
4. Ask Simple or Complex Questions
Once connected, your assistant can answer quick lookup questions and also run multi-step database investigations.
Simple examples:
More complex examples:
Tools
DBeast exposes 21 MCP tools across 10 categories.
Connection
Schema Discovery
Data Access
Query Analysis
Database Health
Security
Maintenance
Data Quality
Server Config
Audit
Recommended Workflow
Start by discovering schemas:
Run safe read queries:
Preview risky writes:
Check health and maintenance:
Most analysis tools accept a schema parameter:
Supported Databases
Configuration
Choose one connection method.
You can also connect at runtime:
Key settings:
See SETUP.md for the complete configuration reference.
Safety Model
Formatted and JSON responses use a consistent wrapper:
Audit Logging
DBeast logs MCP tool calls for accountability and debugging.
Audit files are stored as daily markdown files and include timestamps, tool names, durations, masked parameters, truncated responses, and errors.
Development
Start the optional local PostgreSQL test database:
Legacy Compose:
Documentation
- SETUP.md - Full client setup, connection scenarios, configuration, and troubleshooting
- CONTRIBUTING.md - Development setup, tests, style, commits, and PR process
- CODE_OF_CONDUCT.md - Community guidelines
License
MIT
Source: README.md at commit 18f6dcf
Tools
0Version history
1- v2.0.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts