MCP Directory

DBHub vs MCP MongoDB Server

A side-by-side comparison of two Databases servers — tools, transport, auth, maintenance, and copy-paste config for each.

 DBHub

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite.

Unverified
stdio (local)
No auth
TypeScript
MCP MongoDB Server

Let LLMs query, aggregate, and write to MongoDB with schema inference and read-only protection.

Unverified
stdio (local)
No auth
TypeScript
CategoryDatabasesDatabases
LanguageTypeScriptTypeScript
Transportstdio (local)stdio (local)
AuthNoneNone
GitHub stars3.0k279
Last commit1 month ago5 months ago
Verified
Actively maintained
Installnpx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"npx -y mcp-mongo-server mongodb://localhost:27017/database
RepoOpen Open

Verdict

Pick DBHub if you prefer the more popular, battle-tested option.

Pick MCP MongoDB Server if you need the broadest set of tools.

Add DBHub

Install / run
npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}

Add MCP MongoDB Server

Install / run
npx -y mcp-mongo-server mongodb://localhost:27017/database

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-mongodb-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mongo-server",
        "mongodb://username:password@localhost:27017/database"
      ]
    }
  }
}

FAQ

DBHub or MCP MongoDB Server — which is better?

Pick DBHub if you prefer the more popular, battle-tested option. Pick MCP MongoDB Server if you need the broadest set of tools.

Can I use both DBHub and MCP MongoDB Server?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do DBHub and MCP MongoDB Server work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.