CuratedMCP
β™Š
Gemini CLI
Free

How to Install MongoDB MCP in Gemini CLI

MongoDB's official MCP server for databases and Atlas.

What MongoDB MCP does

MongoDB's official MCP server. Runs locally with npx and a connection string (or Atlas API credentials), and lets an agent query and manage databases and collections and, with Atlas credentials, clusters and users. A read-only mode is available.

mongodb
database
atlas
nosql
documents

Installation steps

  1. 1Copy the config below
  2. 2Open ~/.gemini/settings.json
  3. 3Paste inside "mcpServers": {}
  4. 4Restart Gemini CLI

Configuration

File location: ~/.gemini/settings.json

settings.jsonjson
{
  "mongodbMcp": {
    "command": "npx",
    "args": [
      "-y",
      "mongodb-mcp-server"
    ],
    "env": {
      "MDB_MCP_CONNECTION_STRING": "mongodb+srv://<user>:<password>@<cluster>/"
    }
  }
}
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain MongoDB MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://www.curatedmcp.com/api/badge/mongodb-mcp)](https://www.curatedmcp.com/marketplace/mongodb-mcp)

Related servers