dbhub vs mongodb-mcp-server
并排对比,帮你在这两个 MCP server 之间做选择。
dbhub by bytebase | mongodb-mcp-server by mongodb-js | |
|---|---|---|
| Stars | ★ 2,769 | ★ 1,023 |
| 30天用量 | — | — |
| 综合分 | 57 | 55 |
| 官方 | — | — |
| 分类 | 数据库开发者工具运维基建 | 数据库开发者工具云存储 |
| 实现语言 | TypeScript | TypeScript |
| 最近提交 | 1 个月前 | 本月 |
dbhub · 概述
零依赖 MCP 服务器,高效连接多种数据库并提供 SQL 工具。
mongodb-mcp-server · 概述
MongoDB MCP Server 连接 MongoDB 数据库和 Atlas 集群,提供数据库操作和 Atlas 管理工具。
dbhub · 使用场景
- 开发者进行数据库探索和模式检查
- 在 CI/CD 管道中执行带安全控制的 SQL 查询
- 通过统一界面管理多个数据库和操作
mongodb-mcp-server · 使用场景
- AI 查询和分析 MongoDB 数据库而无需直接数据库访问
- 通过支持 MCP 的客户端自动化 MongoDB Atlas 集群管理
- 构建能够访问 MongoDB 数据作为上下文资源的 RAG 应用程序
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"]
}
}
}mongodb-mcp-server · 安装
安装
通过 NPM (适用于 Claude Desktop)
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
}
}
}
}通过 Docker
{
"mcpServers": {
"MongoDB": {
"command": "docker",
"args": [
"run",
"--rm",
"-e",
"MDB_MCP_READ_ONLY=true",
"-i",
"mongodb/mongodb-mcp-server:latest"
]
}
}
}