Mongodb MCP Server vs Dbhub
A side-by-side look at the Mongodb MCP Server and Dbhub MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose Mongodb MCP Server for databases work as a local process; choose Dbhub for databases as a local process. You can also run both side by side in one mcpServers block.
Which MCP server should you choose?
Choose Mongodb MCP Server when
- You need dedicated capabilities in the Databases domain.
- You prefer a local stdio subprocess transport.
- Its auth model fits you: other.
- You have the keys it needs:
MDB_MCP_CONNECTION_STRING. - You want tools like
aggregate, aggregate-db, collection-indexes.
Choose Dbhub when
- You need dedicated capabilities in the Databases domain.
- You prefer a local stdio subprocess transport.
- You want tools like
dbhub.toml.
Feature & specification comparison
Rows where the two servers differ are marked.
| Spec | ||
|---|---|---|
| Category | Databases | Databases |
| Quality signal | 67/100 · Great | 57/100 · Good |
| Install command | Confirmed | Confirmed |
| Transport | Local subprocess (stdio) | Local subprocess (stdio) |
| Auth | other | Not declared |
| Pricing | Free | Not declared |
| Required env vars | MDB_MCP_CONNECTION_STRING | None listed |
| Verified owner | Community listing | Community listing |
| GitHub stars | 1,150 | 3,716 |
| Directory activity | 1 views 0 installs 0 upvotes | 1 views 0 installs 0 upvotes |
| Tools | 53 | 1 |
| Full listing | View Mongodb MCP Server | View Dbhub |
Tools & capabilities
Mongodb MCP Server tools 53
aggregateRun an aggregation against a MongoDB collectionaggregate-dbRun an aggregation against a MongoDB databasecollection-indexesDescribe the indexes for a collectioncollection-schemaDescribe the schema for a collectioncollection-storage-sizeGets the size of the collectionconnectConnect to a MongoDB instancecountGets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parametercreate-collectionCreates a new collection in a database. If the database doesn't exist, it will be created automatically.create-indexCreate an index for a collectiondb-statsReturns statistics that reflect the use state of a single databasedelete-manyRemoves all documents that match the filter from a MongoDB collectiondisconnectClose a MongoDB connection and revoke its connectionId.- +41 more on the listing page
Dbhub tools 1
dbhub.toml
Ready-to-paste client configs
Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.
Mongodb MCP Server
{
"mcpServers": {
"mongodb-mcp-server": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server@latest"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "YOUR_MDB_MCP_CONNECTION_STRING_HERE"
}
}
}
}
Dbhub
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub@latest"
]
}
}
}
Frequently asked questions
Mongodb MCP Server is categorized under Databases and uses a local stdio subprocess. Dbhub belongs to Databases and uses a local stdio subprocess. Pick Mongodb MCP Server for databases work and Dbhub for databases.
Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.
Mongodb MCP Server is listed as free. Auth: other. Dbhub has no declared pricing — check the project's own site. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.
Yes. MCP clients support multiple servers: add mongodb-mcp-server and dbhub as separate keys in the same mcpServers object, and your assistant will call tools from either one.
On AllMCPs, Mongodb MCP Server has a quality signal of 67/100 (Great) with 1 views, 0 installs and 1,150 GitHub stars. Dbhub has 57/100 (Good) with 1 views, 0 installs and 3,716 GitHub stars.