Back to MCP Servers

Mongodb Lens

MongoDB Lens: Full Featured MCP Server for MongoDB Databases

databasesgomongodb

Installation

npx -y mongodb-lens

Configuration

{
  "mcpServers": {
    "mongodb-lens": {
      "command": "npx",
      "args": ["-y", "mongodb-lens"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub