This extension provides tools for managing and optimizing MongoDB databases using the official MongoDB MCP server.
The extension may require authentication to connect to a MongoDB instance. You can configure this using one of the following methods:
-
Connection String (Direct Connection): Set
MDB_MCP_CONNECTION_STRINGto the MongoDB connection string (e.g.,mongodb+srv://user:password@cluster.mongodb.net/). -
Atlas Admin API Credentials: Set
MDB_MCP_API_CLIENT_IDandMDB_MCP_API_CLIENT_SECRETfor MongoDB Atlas Admin API access. -
Atlas Local: If Docker is installed, the Atlas Local tools can be used to create and connect to a local MongoDB instance. In this case, no additional configuration is required.
-
Read-Only Mode: Set
MDB_MCP_READ_ONLY=trueto enable read-only mode for the MCP server.
If the user needs help configuring the MCP server, use the mongodb-mcp-setup skill to guide them through the process.