McpMux
Back to Registry

MongoDB (Docker) MCP Server

Community

Contributed by MongoDB

Connect to MongoDB databases and Atlas clusters via Docker. Query collections, inspect schemas, manage indexes, and run aggregation pipelines in an isolated container.

About the MongoDB (Docker) MCP Server

The MongoDB (Docker) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Connect to MongoDB databases and Atlas clusters via Docker. Query collections, inspect schemas, manage indexes, and run aggregation pipelines in an isolated container. This is a community-contributed MCP server by MongoDB.

Install the MongoDB (Docker) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires authentication — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "docker",
  "args": [
    "run",
    "--rm",
    "-i",
    "-e",
    "MDB_MCP_CONNECTION_STRING",
    "-e",
    "MDB_MCP_API_CLIENT_ID",
    "-e",
    "MDB_MCP_API_CLIENT_SECRET",
    "mongodb/mongodb-mcp-server:latest"
  ],
  "env": {
    "MDB_MCP_CONNECTION_STRING": "${input:MDB_MCP_CONNECTION_STRING}",
    "MDB_MCP_API_CLIENT_ID": "${input:MDB_MCP_API_CLIENT_ID}",
    "MDB_MCP_API_CLIENT_SECRET": "${input:MDB_MCP_API_CLIENT_SECRET}"
  },
  "metadata": {
    "inputs": [
      {
        "id": "MDB_MCP_CONNECTION_STRING",
        "label": "MongoDB Connection String",
        "description": "MongoDB connection URI. Use host.docker.internal instead of localhost for local instances (e.g., mongodb://host.docker.internal:27017/mydb).",
        "type": "text",
        "required": false,
        "secret": true,
        "placeholder": "mongodb+srv://username:password@cluster.mongodb.net/mydb",
        "obtain": {
          "url": "https://www.mongodb.com/docs/manual/reference/connection-string/",
          "instructions": "1. For MongoDB Atlas: Go to your cluster > Connect > Drivers\n2. Copy the connection string\n3. For local MongoDB inside Docker: use mongodb://host.docker.internal:27017/mydb",
          "button_label": "Learn More"
        }
      },
      {
        "id": "MDB_MCP_API_CLIENT_ID",
        "label": "Atlas API Client ID",
        "description": "MongoDB Atlas Service Account client ID for Atlas management operations. Optional — only needed for Atlas administration.",
        "type": "text",
        "required": false,
        "secret": true,
        "placeholder": "mdb_sa_id_..."
      },
      {
        "id": "MDB_MCP_API_CLIENT_SECRET",
        "label": "Atlas API Client Secret",
        "description": "MongoDB Atlas Service Account client secret. Required when Atlas API Client ID is provided.",
        "type": "text",
        "required": false,
        "secret": true,
        "placeholder": "mdb_sa_sk_..."
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
Authoptional_api_key
Capabilities
Tools

Categories

Tags

mongodbdatabasenosqlatlasdockeraggregationcollections

Supported AI Clients

The MongoDB (Docker) MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install MongoDB (Docker) with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.