
DBeast PostgreSQL MCP
io.github.snss10由 GitHub 账号 snss10 发布v2.0.2更新于 Oct 24, 2026
PostgreSQL MCP server for schema, query, health, security, and performance analysis.
概览
为 AI 助手提供 21 个专注 PostgreSQL 的 DBA 工具,用于模式发现、只读查询、影响预览、性能、安全与维护分析。
- 可以做什么
- DBeast 通过 MCP stdio 将助手连接到 PostgreSQL 数据库,提供覆盖十个类别的 21 个工具。功能包括连接与健康检查、模式发现(可选生成 Mermaid ERD)、依赖关系梳理、带自动行数限制的只读 SELECT 查询、查询分析与索引建议、写操作影响预览、性能与维护报告、安全与敏感数据审计、数据质量检查、配置审查、复制状态以及审计日志查询。
- 适用场景
- 适合需要检查或审计 PostgreSQL 数据库的场景:探索模式、回答查询问题、诊断慢查询、查看 vacuum 与索引健康状况、检查角色与权限,或在执行删除、归档前评估影响范围。
- 运行要求
- 以 stdio 子进程方式在本地运行;清单中列出 OCI 镜像 ghcr.io/snss10/dbeast:2.0.2,README 则通过 pip 从源码安装。需要 PostgreSQL 连接,可通过 DATABASE_URL,或 DB_HOST、DB_PORT、DB_USER、DB_PASSWORD、DB_NAME 提供,也可用 AWS_SECRET_NAME 与 AWS_REGION 从 AWS Secrets Manager 获取。仅支持桌面客户端,无需 HTTP 服务。
安装
在 SourceWeft 中
- 打开 控制台中的 DBeast PostgreSQL MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
来源:README.md,提交 18f6dcf
工具
0版本历史
1- v2.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分