A Model Context Protocol server for interacting with MongoDB databases and MongoDB Atlas, providing AI assistants with secure access to database operations and Atlas management tools.
Lists MongoDB Atlas organizations.
Lists MongoDB Atlas projects.
Creates a new MongoDB Atlas project.
Lists MongoDB Atlas clusters.
Inspect a specific MongoDB Atlas cluster.
Create a free MongoDB Atlas cluster.
Connects to MongoDB Atlas cluster.
Inspect IP/CIDR ranges with access to MongoDB Atlas clusters.
Configure IP/CIDR access list for MongoDB Atlas clusters.
List MongoDB Atlas database users.
Creates a MongoDB Atlas database user.
List MongoDB Atlas Alerts for a Project.
Connect to a MongoDB instance.
Run a find query against a MongoDB collection.
Run an aggregation against a MongoDB collection.
Get the number of documents in a MongoDB collection.
Insert a single document into a MongoDB collection.
Insert multiple documents into a MongoDB collection.
Create an index for a MongoDB collection.
Update a single document in a MongoDB collection.
Update multiple documents in a MongoDB collection.
Rename a MongoDB collection.
Delete a single document from a MongoDB collection.
Delete multiple documents from a MongoDB collection.
Remove a collection from a MongoDB database.
Remove a MongoDB database.
List all databases for a MongoDB connection.
List all collections for a given database.
Describe the indexes for a collection.
Describe the schema for a collection.
Get the size of a collection in MB.
Return statistics about a MongoDB database.
Export query or aggregation results to EJSON format.
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"mongodb://localhost:27017/myDatabase",
"--readOnly"
]
}
}
}