Creativity · MCP — server
MCP MongoDB Server
The MCP MongoDB server lets Claude, Cursor, or any MCP-compliant client talk to a MongoDB deployment through tools like find, aggregate, insertOne, and listCollections. MongoDB Inc. ships an official server via its developer-tools org; community packages fill gaps for replica-set admin and Atlas-specific flows. Use it for data exploration, schema inference, and natural-language reporting.
MCP facts
- Kind
- server
- Ecosystem
- anthropic-mcp
- Language
- TypeScript / Node.js
- Transports
- stdio
Capabilities
- Tools: find, aggregate, count, insertOne, updateOne, listCollections
- Resources: database and collection metadata as MCP resources
- Auth: MongoDB connection URI, supports Atlas SRV strings
Install
npx -y mongodb-mcp-server Configuration
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["-y", "mongodb-mcp-server"],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]"
}
}
}
} Frequently asked questions
Is there an official MongoDB MCP server?
Yes — MongoDB publishes `mongodb-mcp-server` with query, aggregation, and Atlas-admin tools. Community forks add extras like change-stream subscription.
Can it connect to MongoDB Atlas?
Yes. Pass a mongodb+srv:// connection string from Atlas and scope the user to the databases/collections you want the LLM to see.
Does the server expose writes by default?
Most builds include write tools (insertOne, updateOne). You can disable them via flags or by limiting the DB user's privileges to readOnly roles.
Sources
- MongoDB MCP Server — accessed 2026-04-20
- MongoDB Node Driver — accessed 2026-04-20