Adding MCP in Librechat
-
I've been trying to get Librechat setup (thanks for getting the package on Cloudron), and have got Openrouter and websearch working (using a SearXNG hosted on Cloudron). One of the features that would dramatically increase the capabilities of the LLMs on Librechat would be to leverage the Model Context Protocol (MCP) and integrate them with various tools.
According to the Librechat documentation on MCP - [https://www.librechat.ai/docs/features/mcp] - the easy way to find and install MCP servers on Librechat is to use [smithery.ai]. But executing an npx command in the Librechat app terminal on Cloudron doesn't work. I guess this is because the file system is read-only? Or the folder structure is not what the smitthery.ai code expects? Or both?
I also tried to manually add an MCP server - for Exa Search - using this in the librechat.yaml file:
mcpServers: exa-search: command: "npx" args: ["-y", "@exa-labs/exa-mcp"] env: EXA_API_KEY: "${EXA_API_KEY}"It shows up on the Librechat interface, but is 'offline' and cannot be initialized.
Has anyone had some luck getting an MCP going on Librechat? Or any tips on what might get it working?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login