Skip to main content

MongoDB Database Service MCP Integration

Provides secure interaction with MongoDB database through the MCP protocol.

Go to CloudBase Platform to run MCP Server


Environment Variables

  • Set MONGO_CONNECT_STRING to the MongoDB connection string (e.g., mongodb://user:password@host:port/database?authSource=admin)

🗺️ Feature List

MongoDB Atlas Tools

Note: Atlas tools are only available when credentials are set in the configuration section

Command NameFunction Description
atlas-list-orgsList MongoDB Atlas organizations
atlas-list-projectsList MongoDB Atlas projects
atlas-create-projectCreate new MongoDB Atlas project
atlas-list-clustersList MongoDB Atlas clusters
atlas-inspect-clusterInspect a specific MongoDB Atlas cluster
atlas-create-free-clusterCreate free MongoDB Atlas cluster
atlas-connect-clusterConnect to MongoDB Atlas cluster
atlas-inspect-access-listInspect allowed IP/CIDR ranges for MongoDB Atlas cluster
atlas-create-access-listConfigure IP/CIDR access list for MongoDB Atlas cluster
atlas-list-db-usersList MongoDB Atlas database users
atlas-create-db-userCreate MongoDB Atlas database user
atlas-list-alertsList MongoDB Atlas alerts for a project

MongoDB Database Tools

Command NameFunction Description
connectConnect to MongoDB instance
findRun find query on MongoDB collection
aggregateRun aggregation query on MongoDB collection
countGet document count in MongoDB collection
insert-oneInsert a single document into MongoDB collection
insert-manyInsert multiple documents into MongoDB collection
create-indexCreate index for MongoDB collection
update-oneUpdate a single document in MongoDB collection
update-manyUpdate multiple documents in MongoDB collection
rename-collectionRename MongoDB collection
delete-oneDelete a single document from MongoDB collection
delete-manyDelete multiple documents from MongoDB collection
drop-collectionDrop a collection from the MongoDB database
drop-databaseDrop a MongoDB database
list-databasesList all databases in the MongoDB connection
list-collectionsList all collections in the given database
collection-indexesDescribe collection indexes
collection-schemaDescribe collection schema
collection-storage-sizeGet the collection storage size (MB)
db-statsReturn MongoDB database statistics

Repository URL

https://github.com/mongodb-js/mongodb-mcp-server


🔌 Usage


CloudBase MCP Console