# How to teach LibreChat your knowledge

Use LibreChat Memory for a few durable facts, [agent instructions](https://www.knowman.io/guides/give-your-ai-context) for guidance, and File Search for passages from documents. LibreChat also supports [MCP servers](https://www.knowman.io/guides/mcp-server-knowledge-base) in chats and agents, while KnowMan documents a hosted MCP server for its own tools. [LibreChat Memory documentation](https://www.librechat.ai/docs/features/memory) [LibreChat agent documentation](https://www.librechat.ai/docs/features/agents) [LibreChat MCP documentation](https://www.librechat.ai/docs/features/mcp) [KnowMan MCP documentation](https://github.com/Essatt/knowman-mcp)

## 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](https://www.knowman.io/guides/how-to-save-articles). KnowMan MCP documentation

Try KnowMan Pro for 14 days with no credit card.

To connect KnowMan, follow the [LibreChat setup guide](https://www.knowman.io/integrations/librechat). For memory settings see [how to give LibreChat better memory](https://www.knowman.io/guides/librechat-memory), and for the overview read [LibreChat and your knowledge base](https://www.knowman.io/guides/librechat-knowledge-base).

## Questions

### 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

## Related guides

- [Connect your knowledge base through KnowMan's MCP server](https://www.knowman.io/guides/mcp-server-knowledge-base)

- [How Do You Connect AI to Your Notes?](https://www.knowman.io/guides/connect-any-ai-to-your-notes)

- [What Is a Knowledge Base for AI Agents?](https://www.knowman.io/guides/knowledge-base-for-ai-agents)

## More in this topic

- [How to teach LM Studio your knowledge](https://www.knowman.io/guides/teach-lm-studio-your-knowledge)
- [How to teach Open WebUI your knowledge](https://www.knowman.io/guides/teach-open-webui-your-knowledge)
- [Can a ChatGPT dot use an MCP server?](https://www.knowman.io/guides/teach-chatgpt-dots-your-knowledge)

## More for LibreChat

- [Add the KnowMan MCP server to LibreChat](https://www.knowman.io/integrations/librechat)
- [How to give LibreChat better memory](https://www.knowman.io/guides/librechat-memory)
- [Give LibreChat access to your knowledge base](https://www.knowman.io/guides/librechat-knowledge-base)

## Bring your saved reading into the conversation

Try KnowMan Pro for 14 days with no credit card. [Create your account](https://app.knowman.io/signup)

[Start free](https://app.knowman.io/signup)

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

Source: https://www.knowman.io/guides/teach-librechat-your-knowledge
