Skip to content

[Bug]: Docker Container of Mongo MCP Server is not Exiting or Auto Removing #279

Open
@miriyald

Description

@miriyald

Version

latest LABEL version=0.1.1

Image

App

  • Cursor
  • Windsurf
  • VSCode
  • VSCode Insiders
  • Claude Desktop
  • Other

Affected Models (if applicable)

  • Claude 3.5 Sonnet
  • Claude 3.7 Sonnet
  • GPT-4a
  • o4-mini
  • Other

Bug Description

Steps:

  • On Claude Desktop Configuration Add Mongo DB MCP Server with Auto Remove Option
my-moongodb-env": {
            "command": "docker",
            "args": [
                "run",
                "--rm",
                "-i",
                "-e",
                "MDB_MCP_CONNECTION_STRING=mongodb+srv://***r:****@***.net/***",
                "mongodb/mongodb-mcp-server:latest"
            ]
        }
  • Open Docker Desktop

  • Notice Mongo DB Container is running

  • Exit Cluade Desktop

  • Open Claude Desktop again

Image

  • Notice Two Instances are running

Note: I have few other MCP server Container which exits autoamtically. I use Postgres along with Mongo

            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "mcp/postgres",
                "postgresql://***:***@***:5432/***"
            ]
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions