MCP Catalogs
首页

data-api-builder vs dbhub

并排对比,帮你在这两个 MCP server 之间做选择。

data-api-builder
by Azure
dbhub
by bytebase
Stars★ 1,410★ 2,769
30天用量
综合分5357
官方
分类
数据库开发者工具云存储
数据库开发者工具运维基建
实现语言C#TypeScript
最近提交本月1 个月前

data-api-builder · 概述

Azure 数据 API 构建器为 Azure 数据库提供 REST 和 GraphQL 接口,即将支持 MCP 工具。

dbhub · 概述

零依赖 MCP 服务器,高效连接多种数据库并提供 SQL 工具。

data-api-builder · 使用场景

  • 为 Azure 数据库创建 REST 和 GraphQL API
  • 为应用程序构建安全的数据访问层
  • 在任何云中为本地数据库生成 API 端点

dbhub · 使用场景

  • 开发者进行数据库探索和模式检查
  • 在 CI/CD 管道中执行带安全控制的 SQL 查询
  • 通过统一界面管理多个数据库和操作

data-api-builder · 安装

  1. 安装 .NET 8 或更高版本运行时: https://get.dot.net
  2. 安装 DAB 命令行工具:

``sh dotnet tool install microsoft.dataapibuilder -g ``

  1. 初始化和配置 DAB:

``sh dab init --database-type mssql --connection-string "@env('my-connection-string')" --host-mode development ``

  1. 添加您的数据库实体并启动服务器:

``sh dab add Todo --source "dbo.Todo" --permissions "anonymous:*" dab start ``

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 --demo

Claude Desktop 配置

将以下内容添加到您的 Claude Desktop 配置中:

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": ["@bytebase/dbhub@latest", "--transport", "stdio"]
    }
  }
}
对比内容由 README + GitHub 公开数据自动生成,定期更新。