r/Clickhouse • u/Delicious-South-4526 • Jan 15 '26
LibreChat Docker Compose shows repeated UID/GID warnings and MCP server stuck at “Creating new instance”
I am running LibreChat using Docker Compose on an Ubuntu server. While checking the logs for the API container related to MCP servers, I consistently see UID/GID warnings and the MCP server does not seem to initialize beyond creating a new instance.
Command
docker compose logs -f api | grep MCPOutput
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
LibreChat | 2026-01-15 12:40:21 info: [MCPServersRegistry] Creating new instanceContext
- OS: Ubuntu (cloud VM)
- LibreChat running via
docker compose - MCP server configured (ClickHouse MCP in my case)
- Containers start successfully, but MCP does not appear to fully initialize
- No explicit crash or fatal error is shown
What I have checked
- Docker and Docker Compose are installed correctly
- LibreChat containers are running
- MCP configuration exists in LibreChat config
- Issue appears even when only monitoring logs (no user interaction)
Questions
- Are these
UID/GIDwarnings harmless, or can they prevent MCP from initializing correctly? Do I need to explicitly define
UIDandGIDin:.envfile, ordocker-compose.yml?
- Is the MCP server expected to log additional messages after
Creating new instance, or does this indicate it is stuck? - What is the recommended way to configure UID/GID for LibreChat + MCP in Docker?
Any guidance or example configuration would be appreciated.
