Skip to content

[Bug]: LibreChat Docker image does not have python(3) #7063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
dcolley opened this issue Apr 25, 2025 · 2 comments
Closed
1 task done

[Bug]: LibreChat Docker image does not have python(3) #7063

dcolley opened this issue Apr 25, 2025 · 2 comments
Labels
🐛 bug Something isn't working

Comments

@dcolley
Copy link

dcolley commented Apr 25, 2025

What happened?

MCP using uvx does not work as python cannot be found.

Version Information

docker images | grep librechat
ghcr.io/danny-avila/librechat-dev latest 994ad5d22cee 32 hours ago 1.61GB
ghcr.io/danny-avila/librechat-rag-api-dev-lite latest f96c21d7fc2f 7 weeks ago 1.79GB
ghcr.io/danny-avila/librechat-rag-api-dev latest 22de38bb1d54 11 months ago 3.48GB

Steps to Reproduce

Vanilla docker installation, with this added in librechat.yml

mcpServers:
  search internet:
    command: uvx
    args:
      - duckduckgo-mcp-server

What browsers are you seeing the problem on?

No response

Relevant log output

2025-04-25T07:53:02.684Z error: [MCP][search internet] Connection failed: MCP error -32000: Connection closed
2025-04-25T07:53:02.685Z error: [MCP][search internet] Failed to connect after 3 attempts MCP error -32000: Connection closed
2025-04-25T07:53:02.685Z error: [MCP][search internet] Initialization failed MCP error -32000: Connection closed
error: No interpreter found in managed installations or search path

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Proposed solution

To solve this error,

docker exec -it Librechat /bin/sh
apk add python3
@dcolley dcolley added the 🐛 bug Something isn't working label Apr 25, 2025
@dcolley dcolley changed the title [Bug]: Docker image does not have python(3) [Bug]: LibreChat Docker image does not have python(3) Apr 25, 2025
@danny-avila
Copy link
Owner

On the latest version, uv is installed in the docker images, allowing you to use this MCP server.

Image


Updating Instructions (docker):

# Linux command to Remove all existing images
docker images -a | grep "librechat" | awk '{print $3}' | xargs docker rmi

# Windows Powershell
docker images -a | findstr "librechat" | ForEach-Object { docker rmi $_.Split()[2] }

Then follow the directions here: https://www.librechat.ai/docs/local/docker#update-librechat

@benverhees
Copy link
Contributor

benverhees commented May 1, 2025

@danny-avila I am guessing @dcolley is on Apple silicon, as the base Alpine image for librechat doesn't support installing Python via uv in that configuration. So even though uv is installed, there is no Python interpreter available. astral-sh/uv#6890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants