A side-by-side look at the MCP Mongo Server 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 Mongo Server 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.
MCP_MONGODB_URI, MCP_MONGODB_READONLY, MCP_MONGODB_ALLOW_CROSS_DB, MCP_MONGODB_ALLOW_SERVER_JS, MCP_PORT, MCP_HTTP_ALLOWED_ORIGINS, MCP_HTTP_JSON_LIMIT, MCP_HTTP_AUTH_TOKEN.MDB_MCP_CONNECTION_STRING.aggregate, aggregate-db, collection-indexes.Rows where the two servers differ are marked.
| Spec | ||
|---|---|---|
| Category | Databases | Databases |
| Quality signal | 48/100 · Fair | 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 | MCP_MONGODB_URIMCP_MONGODB_READONLYMCP_MONGODB_ALLOW_CROSS_DBMCP_MONGODB_ALLOW_SERVER_JSMCP_PORTMCP_HTTP_ALLOWED_ORIGINSMCP_HTTP_JSON_LIMITMCP_HTTP_AUTH_TOKEN | MDB_MCP_CONNECTION_STRING |
| Verified owner | Community listing | Community listing |
| GitHub stars | 282 | 1,146 |
| Directory activity | 4 views 0 installs 0 upvotes | 1 views 0 installs 0 upvotes |
| Tools | Not listed | 53 |
| Full listing | View MCP Mongo Server | View Mongodb MCP Server |
No tool names declared yet. Check the project README from the listing page.
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.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": {
"kiliczsh-mcp-mongo-server": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server"
],
"env": {
"MCP_MONGODB_URI": "YOUR_MCP_MONGODB_URI_HERE",
"MCP_MONGODB_READONLY": "YOUR_MCP_MONGODB_READONLY_HERE",
"MCP_MONGODB_ALLOW_CROSS_DB": "YOUR_MCP_MONGODB_ALLOW_CROSS_DB_HERE",
"MCP_MONGODB_ALLOW_SERVER_JS": "YOUR_MCP_MONGODB_ALLOW_SERVER_JS_HERE",
"MCP_PORT": "YOUR_MCP_PORT_HERE",
"MCP_HTTP_ALLOWED_ORIGINS": "YOUR_MCP_HTTP_ALLOWED_ORIGINS_HERE",
"MCP_HTTP_JSON_LIMIT": "YOUR_MCP_HTTP_JSON_LIMIT_HERE",
"MCP_HTTP_AUTH_TOKEN": "YOUR_MCP_HTTP_AUTH_TOKEN_HERE"
}
}
}
}
{
"mcpServers": {
"mongodb-mcp-server": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server@latest"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "YOUR_MDB_MCP_CONNECTION_STRING_HERE"
}
}
}
}