Expert-level PostgreSQL database analysis MCP server for AI assistants.
Expert-level PostgreSQL database analysis MCP server for AI assistants.
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.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| connect | Connect to PostgreSQL, check current status, or discover local databases |
| disconnect | Close the current database connection |
| health_check | Verify connectivity, pool health, PostgreSQL version, and extensions |
| get_schema | List schemas, tables, columns, indexes, relationships, and optional Mermaid ERDs |
| dependency_analysis | Map object dependencies before renaming, dropping, or changing database objects |
| execute_query | Run read-only SELECT queries with automatic row-limit injection |
| analyze_query | Parse and inspect query structure, warnings, and optimization hints |
| query_optimizer | Recommend indexes and rewrites for a given query |
| analyze_impact | Preview write-query impact, risk level, affected rows, and rollback context without executing |
| database_health | Review cache hit rates, connections, transaction age, table health, and overall health signals |
| query_performance | Report slow or expensive queries from PostgreSQL statistics |
| security_audit | Inspect roles, privileges, superuser accounts, and public schema exposure |
| sensitive_data_scan | Detect likely PII or secrets by column names and schema patterns |
| maintenance_analysis | Review vacuum status, dead tuples, analyze timestamps, and index health |
| partition_analysis | Inspect partition health, row distribution, and missing partition risks |
| data_quality_report | Analyze null rates, cardinality, value distributions, and outliers |
| duplicate_detection | Find duplicate rows across selected key columns |
| configuration_review | Review PostgreSQL configuration and tuning opportunities |
| replication_status | Inspect replication lag, WAL sender/receiver state, and replication slots |
| get_audit_logs | Retrieve logged MCP tool calls for a given date |
| list_audit_files | List available audit log files |
{
"mcpServers": {
"dbeast": {
"type": "stdio",
"command": "python",
"args": [
"/absolute/path/to/DBeast/src/server.py"
],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/mydb"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| DATABASE_URL | Declared in the maintainer’s client configuration. | Check documentation |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.