Start free
Guide Teach your agent your knowledge

How to teach LibreChat your knowledge

Updated 3 min read

The short answer

Use LibreChat Memory for a few durable facts, agent instructions for guidance, and File Search for passages from documents. LibreChat also supports MCP servers in chats and agents, while KnowMan documents a hosted MCP server for its own tools. LibreChat Memory documentation LibreChat agent documentation LibreChat MCP documentation KnowMan MCP documentation

On this page8 sections
  1. Choose the right place for your knowledge
  2. Save a few durable facts with Memory
  3. Give an agent instructions and files
  4. Add a remote MCP server in LibreChat
  5. Enable MCP tools in a chat or agent
  6. KnowMan's documented MCP server
  7. Use KnowMan's MCP tools
  8. Questions people ask

Choose the right place for your knowledge

LibreChat Memory stores facts about you as key/value pairs and adds the whole store to each new message. It is not a search over chat history, so it suits a handful of durable facts rather than notes or documents. LibreChat Memory documentation

Use an agent's instructions for guidance and File Search for passages from attached documents. LibreChat also supports MCP servers in chats and agents. LibreChat agent documentation LibreChat MCP documentation

Save a few durable facts with Memory

Memory must be enabled by an admin in librechat.yaml. In a chat where your role can create and update memories, open the composer's + palette, choose Memory under Tools, then ask the model to remember, update, or forget a fact. LibreChat Memory documentation

The Memory option does not appear when chatting with an agent. You can review and filter entries in the Memories side panel, and turn off Use memory while keeping your entries. LibreChat Memory documentation

Give an agent instructions and files

An agent is a saved setup of a model, system prompt, tools, and files. Build it in Agent Builder, add inline instructions or link a saved prompt, then select the agent when starting a chat. LibreChat agent documentation

Use File Search to make attached files searchable and retrieve relevant passages. File Context instead puts extracted text into every message, so reserve it for a few key documents. Upload files after creating the agent. LibreChat agent documentation

Add a remote MCP server in LibreChat

In LibreChat MCP Settings, choose Add MCP and enter a name, description, icon, server URL, and Streamable HTTPS transport. LibreChat documents adding a remote server through the UI without editing librechat.yaml or restarting. LibreChat MCP documentation

LibreChat documents authentication options that include OAuth and API Key with Bearer. A server that uses OAuth sends you through sign-in before selection. LibreChat MCP documentation

Enable MCP tools in a chat or agent

In a regular chat, open the composer's + palette and select a server under MCP Servers. In Agent Builder, add an MCP server and choose the tools the agent needs. Select a model that supports tool calls, or it will not call the server's tools. LibreChat MCP documentation LibreChat agent documentation

LibreChat says connections are per user, credentials are not used for anyone else, and idle connections close after 15 minutes by default. LibreChat MCP documentation

KnowMan's documented MCP server

KnowMan documents a hosted MCP server at https://api.knowman.io/mcp using Streamable HTTP. Its documented authentication options are OAuth sign-in or an API key sent as an Authorization Bearer header. KnowMan MCP documentation

The server exposes kb_search, kb_ask, kb_get_item, kb_save, kb_recent, and the read-only kb_memories tool. KnowMan MCP documentation

Use KnowMan's MCP tools

After connecting to KnowMan, you can ask an assistant to search your KnowMan or save a URL. KnowMan MCP documentation

Try KnowMan Pro for 14 days with no credit card.

To connect KnowMan, follow the LibreChat setup guide. For memory settings see how to give LibreChat better memory, and for the overview read LibreChat and your knowledge base.

Questions people ask

Does LibreChat Memory search my old chats?

No. Memory stores key/value facts and adds the whole store to new messages. It does not search chat history. LibreChat Memory documentation

Should I use File Search or File Context for documents?

File Search retrieves relevant passages from attached files. File Context puts extracted text into every message, so LibreChat describes it as suitable for a few key documents. LibreChat agent documentation

Where is KnowMan's hosted MCP server?

KnowMan documents its hosted server at https://api.knowman.io/mcp using Streamable HTTP. Its documented authentication options are OAuth or an API key as a Bearer header. KnowMan MCP documentation

What tools does KnowMan's MCP server expose?

The tools are kb_search, kb_ask, kb_get_item, kb_save, kb_recent, and kb_memories. The kb_memories tool is read-only. KnowMan MCP documentation

Bring your saved reading into the conversation

Try KnowMan Pro for 14 days with no credit card. Create your account

Start free

Every new account starts with 14 days of Pro. No credit card.