Skip to content

[Bug] MCP Server not working in Azure #2

@gebauerm

Description

@gebauerm

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
mcp_bug

Expected Behavior

The search should be performed when asked for a paper, as seen below:
search
Search processing bars should appear.

Afterwards the Results should be displayed:
res

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.

mcp_bug2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions