TL;DR
MongoDB is a Databases MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent mongoDB Atlas database operations. Install in 1 minute with mcpizy install mongodb.
MongoDB
Install verified 7 toolsDatabases
MongoDB Atlas database operations
Official homepageRepo audit: 94/100 โ actively maintained, documented and licensed
Scored on licence, adoption, maintenance and documentation of mongodb-js/mongodb-mcp-server. We show the grade whether it flatters the server or not.
last commit today ยท 1,106 stars ยท Apache-2.0 licence ยท 33 open issues
Read the full audit on CheckMCPInstall MongoDB
mcpizy install mongodbnpx -y mongodb-mcp-serverTools exposed
7 tools availablefindRun a find query on a collection
findRun a find query on a collection
Inputs
databasestringrequiredcollectionstringrequiredfilterobjectoptional
aggregateRun an aggregation pipeline on a collection
aggregateRun an aggregation pipeline on a collection
Inputs
databasestringrequiredcollectionstringrequiredpipelineobject[]required
insert_manyInsert multiple documents into a collection
insert_manyInsert multiple documents into a collection
Inputs
databasestringrequiredcollectionstringrequireddocumentsobject[]required
update_manyUpdate documents that match a filter
update_manyUpdate documents that match a filter
Inputs
filterobjectrequiredupdateobjectrequired
delete_manyDelete documents that match a filter
delete_manyDelete documents that match a filter
Inputs
filterobjectrequired
list_databasesList all databases on the cluster
list_databasesList all databases on the cluster
list_collectionsList collections in a database
list_collectionsList collections in a database
Inputs
databasestringrequired
Configuration
Works identically across clients. Only the config file path differs.
Claude Code~/.claude.json
~/.claude.json{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"${MDB_MCP_CONNECTION_STRING}"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
}
}
}
}Cursor.cursor/mcp.json
.cursor/mcp.json{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"${MDB_MCP_CONNECTION_STRING}"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
}
}
}
}Windsurf~/.codeium/windsurf/mcp_config.json
~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"${MDB_MCP_CONNECTION_STRING}"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
}
}
}
}Authentication setup
- 1
Create a database user with readWrite access
Get itMDB_MCP_CONNECTION_STRING - 2
Add your IP (or 0.0.0.0/0 for dev) to the Network Access allowlist
What you can do with MongoDB MCP
Paste any of these prompts into Claude Code, Cursor or another MCP-compatible client.
โShow me the 10 most recent documents in the `users` collectionโ
Uses: find
โHow many orders were placed this month, grouped by status?โ
Uses: aggregate
โDelete all test documents where `env = 'staging'`โ
Uses: delete_many
โList every collection in the `production` databaseโ
Uses: list_collections
Works with
More Databases MCPs
Alternatives to MongoDB
If MongoDB doesn't fit your stack, these Databases MCP servers solve similar problems.
Frequently asked questions
What is the MongoDB MCP server?
MongoDB is listed as an Databases Model Context Protocol server whose documented purpose is to let an MCP-compatible agent mongoDB Atlas database operations. Client support, permissions and authentication remain specific to the upstream project.
How do I install MongoDB MCP with Claude Code?
The fastest way is the MCPizy CLI: run `mcpizy install mongodb` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y mongodb-mcp-server` and restarting Claude Code.
Does MCPizy charge to view or install MongoDB MCP?
No. Reading this profile and copying its install guidance is free. Upstream software, API, account or usage costs are separate, and licence coverage should be checked from the linked source when available.
Does MongoDB MCP work with Cursor and Windsurf?
The MCP standard is supported by those clients, but a specific server can still have client-specific setup or transport limits. Use the configuration shown on this page when present and verify the upstream instructions before installation.
What can I do with MongoDB MCP?
Its documented purpose is to let an MCP-compatible agent mongoDB Atlas database operations. The exact tools, permissions and write capabilities depend on the server version and configuration shown by the upstream project.
Compare before you commit
Put this server beside an alternative, or return to the full evidence directory.
Compare MCP serversBack to directory