A side-by-side look at the MCP Database Doctor and Mongodb MCP Server MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose MCP Database Doctor for databases work as a local process; choose Mongodb MCP Server for databases as a local process. You can also run both side by side in one mcpServers block.
CONTROL_PLANE_URL.analyze_query, check_migration, suggest_indexes.MDB_MCP_CONNECTION_STRING.aggregate, aggregate-db, collection-indexes.Rows where the two servers differ are marked.
| Spec | ||
|---|---|---|
| Category | Databases | Databases |
| Quality signal | 56/100 · Good | 65/100 · Great |
| Install command | Confirmed | Confirmed |
| Transport | Local subprocess (stdio) | Local subprocess (stdio) |
| Auth | No auth required | Not declared |
| Pricing | Free | Not declared |
| Required env vars | CONTROL_PLANE_URL | MDB_MCP_CONNECTION_STRING |
| Verified owner | Community listing | Community listing |
| GitHub stars | 0 | 1,146 |
| Directory activity | 0 views 0 installs 0 upvotes | 1 views 0 installs 0 upvotes |
| Tools | 5 | 53 |
| Full listing | View MCP Database Doctor | View Mongodb MCP Server |
analyze_querySQL anti-patterns with severity and recommendationscheck_migrationDestructive DDL, index locking, constraints, rewrite and transaction riskssuggest_indexesConservative DDL candidates; not appliedexplain_planLarge sequential scans, row estimate errors, sort spills, high loopshealth_reportAggregate review of supplied artifacts onlyaggregateRun 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.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.
{
"mcpServers": {
"mcp-database-doctor": {
"command": "npx",
"args": [
"-y",
"mcp-database-doctor"
],
"env": {
"CONTROL_PLANE_URL": "YOUR_CONTROL_PLANE_URL_HERE"
}
}
}
}
{
"mcpServers": {
"mongodb-mcp-server": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server@latest"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "YOUR_MDB_MCP_CONNECTION_STRING_HERE"
}
}
}
}