-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Bugreport
The bug refers to librechat not beeing able to connect to smithery.ai remote servers. Librechat serves as a chatinterface to use different LLMs. Additionally it also can use Model Context Protocol (MCP) to connect to other systems. Smithery.ai provides remote Sevrers, which can be accessed. Via the remote server we are able to use MCP Tools like Academa. In this case the bug refers to connecting a remote academia MCP Server with our MCP Host Librechat. The connection can not be established.
Environment
Everything is performed on an Azure Sandbox, with Windows.
Pods are setup with Podman and Podman Compose. For all prerequisites please refer to the guide under "prerequisites".
To Reproduce
To reproduce please do everything up to and including point the in the guide.
For credentials contact the repo owner, or create own accounts.
When you reached point 3 do the following:
Open LibreChat and add academia as your MCP Server by clicking on it
Expected Behavior
The search should be performed when asked for a paper, as seen below:

Search processing bars should appear.
Afterwards the Results should be displayed:

The complete log can be found here
Hint: The behavior was sometimes unpredictable. The Server would sometimes throw random errors. However the search itseld was still initiated, it just ended with a timeout. The seen behavior is not the same reported in the part below. A simple restart fixed the issue.
Actual Behavior
The Bug occurs, when the connection to the MCP Server can not be established. Hence, no search symbols appear. This becomes obvious when the respective MCP-Server shows an orange disconnected sign.
In the Librechat Logs the following error messages appear:
2025-11-18 14:34:05 �[31merror�[39m: �[31m[MCP][User: 68f8caa4c0b0b2c0720597d6][academia_mcp] Connection failed: MCP error -32001: Request timed out�[39m
2025-11-18 14:34:05 �[31merror�[39m: �[31m[MCP][academia_mcp][68f8caa4c0b0b2c0720597d6] Failed to connect after 3 attempts MCP error -32001: Request timed out�[39m
2025-11-18 14:34:06 �[31merror�[39m: �[31m[MCP][User: 68f8caa4c0b0b2c0720597d6][academia_mcp] Failed to establish connection MCP error -32001: Request timed out�[39m
Complete logs can be found here