Connecting an MCP server to LibreChat
Introduction
By bridging an MCP server with LibreChat, you transform standard chat models into highly capable, context-aware assistants that can read repositories, fetch live documentation, or interface with your custom databases.
This guide will walk you through the quick process of connecting an MCP server directly to your LibreChat environment and attaching those specialized tools to a custom AI Agent.
Prerequisites
Admin rights: Make sure you have access to LibreChat with admin or tool management permissions.
Open LibreChat: Open the application from your Dashboard.
MCP server: Have your own MCP server.
Steps
Step 1: Start MCP setup
In your LibreChat application, select the MCP Settings icon on your side sidebar.

Click on the + icon, the Add MCP Server screen will pop up.

You are now ready to set up your MCP server.
Step 2: Add an MCP server to your chat environment
Configure your MCP in the pop up screen. To give you an idea, there is an example MCP (DeepWiki) in the image below.

Now click on Create. In the top of your screen, the message
MCP server created successfullywill appear.Press the Connect icon. In the top of your screen, the message
MCP server 'deepwiki-mcp' initialized successfullywill appear.
You are now able to connect and disconnect your MCP in the chat environment.

Step 3: Add an MCP server to your Agent
If you want to connect your MCP server to a new or existing agent, press the Agent Builder on your sidebar and create or edit an agent.

Click on Add MCP Server Tools and then Add.

In the top of your screen, the message
Successfully created/saved DeepWiki Agentwill appear.
Note: In the chat environment of your agent you are not able to see that your MCP server is connected to the robot. Look at your agent settings or simply ask the agent if it is connected to your MCP server to be assured of a working connection.
Last updated
Was this helpful?