MCP Servers with Internal addresses cannot be initialized without setting them in allowedDomains
#11280
-
What happened?I just updated from 0.8.1 to 0.8.2-rc2 and my mcp servers cannot be initialized anymore. I'm getting the error message that the mcp server domain is not on the list of allowed domains. PR #11013 mentions that if nothing is configured, all domains are allowed for backward compatibility. That seems not to be the case. In my case I'm running librechat in a docker container. This is my librechat.yaml: Also with the new MCP management UI it is not possible to add a new mcp server --> same error. Version InformationSteps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputThis is the log output on startup:
2026-01-09 10:17:04 info: RAG API is running and reachable at [http://rag_api:8000.](http://rag_api:8000./)
2026-01-09 10:17:04 info: Server listening on all interfaces at port 3080. Use [http://localhost:3080](http://localhost:3080/) to access it
2026-01-09 10:17:04 info: [MCPServersRegistry] Creating new instance
2026-01-09 10:17:04 error: [MCPServersRegistry] Failed to inspect server "fluro_mcp": Domain "http://172.24.1.165:8000" is not allowed
2026-01-09 10:17:04 error: [MCPServersRegistry] Failed to inspect server "test_mcp": Domain "http://172.24.1.165:8001" is not allowed
2026-01-09 10:17:04 error: [MCP][fluro_mcp] Failed to initialize: Domain "http://172.24.1.165:8000" is not allowed
2026-01-09 10:17:04 error: [MCP][test_mcp] Failed to initialize: Domain "http://172.24.1.165:8001" is not allowed
2026-01-09 10:17:04 info: [MCP] Initialized with 2 configured servers and 0 tools.ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi, In my setup, LibreChat and the MCP servers are running within the same cluster. Even though the deployment method differs, this is a common point with the original report. Without trying to solve the issue on behalf of the devs, I’m wondering if this could be related to MCP servers being hosted in the same network/cluster as LibreChat. Hope this helps, and happy to share more details if needed. |
Beta Was this translation helpful? Give feedback.
-
|
You need to explicitly set these internal IPs in allowedDomains. The docs need to be updated as we changed the default behavior to protect misuse of addresses local to the server hosting LibreChat. |
Beta Was this translation helpful? Give feedback.
@2000DS No, a separate key in librechat.yaml, see below what works for us: