dbhub vs dbt-mcp
并排对比,帮你在这两个 MCP server 之间做选择。
dbhub by bytebase | dbt-mcp by dbt-labs | |
|---|---|---|
| Stars | ★ 2,769 | ★ 562 |
| 30天用量 | — | — |
| 综合分 | 57 | 53 |
| 官方 | — | — |
| 分类 | 数据库开发者工具运维基建 | 数据库开发者工具AI / LLM 工具 |
| 实现语言 | TypeScript | Python |
| 最近提交 | 1 个月前 | 本月 |
dbhub · 概述
零依赖 MCP 服务器,高效连接多种数据库并提供 SQL 工具。
dbt-mcp · 概述
一个全面的 dbt Core、Fusion 和平台 MCP 服务器,提供 SQL、语义层和 dbt CLI 工具。
dbhub · 使用场景
- 开发者进行数据库探索和模式检查
- 在 CI/CD 管道中执行带安全控制的 SQL 查询
- 通过统一界面管理多个数据库和操作
dbt-mcp · 使用场景
- dbt 项目中 AI 驱动的数据分析和 SQL 生成
- 自动化 dbt 项目文档和模型血统分析
- 将 dbt 与 AI 代理集成以实现自动化数据建模和测试
dbhub · 安装
安装
**Docker:**
docker run --rm --init \ --name dbhub \ --publish 8080:8080 \ bytebase/dbhub \ --transport http \ --port 8080 \ --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"**NPM:**
npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"**演示模式:**
npx @bytebase/dbhub@latest --transport http --port 8080 --demoClaude Desktop 配置
将以下内容添加到您的 Claude Desktop 配置中:
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": ["@bytebase/dbhub@latest", "--transport", "stdio"]
}
}
}dbt-mcp · 安装
安装
Claude Desktop
添加到您的 Claude Desktop 配置中:
{
"mcpServers": {
"dbt": {
"command": "npx",
"args": ["@dbt-labs/dbt-mcp"],
"env": {
"DBT_PROJECT_DIR": "/path/to/your/dbt/project"
}
}
}
}其他 MCP 客户端
使用最新版本资源中提供的实验性 MCP 包 (dbt-mcp.mcpb)。遵循 [mcpb CLI](https://github.com/modelcontextprotocol/mcpb) 文档安装或检查包。
npm install -g @modelcontextprotocol/mcpb
mcpb install https://github.com/dbt-labs/dbt-mcp/releases/download/vX.X.X/dbt-mcp.mcpb