Chat With Local Files in LM Studio

Informations vérifiées le 23 novembre 2026

There are two ways to use your own documents in LM Studio. Attach files when you already know which ones you need. Add an MCP server such as Linkly AI when the model should find them in your folders.

Attach filesLinkly AI over MCP
Formats.docx, .pdf, .txt25 formats, including slides, spreadsheets, e-books, images, audio and video
ScopeThe files you attach to a chatAll folders you have indexed
Long documentsRAG picks parts of the textSearch, then read the outline and the lines needed
New chatAttach againAvailable in every chat
Extra setupNoneDesktop app and one MCP entry
Model requirementAnyA model that handles tool calls well

Set up Linkly AI in LM Studio

You need LM Studio 0.3.17 or later and the Linkly AI desktop app running. Open mcp.json in LM Studio and add:

{
  "mcpServers": {
    "linkly-ai": {
      "url": "http://127.0.0.1:60606/mcp"
    }
  }
}

The step-by-step version is in the LM Studio guide.

Tips for local models

  • Use a model that is good at tool calling. A small model may ignore the tools or call them with wrong parameters.
  • Set a larger context length. LM Studio warns that MCP servers can use a lot of tokens and overflow the context.
  • Ask narrow questions and name the topic, so the model searches instead of reading many files.

Both the model and the search run on your computer, so this works without a connection.

Linkly AI

Linkly AI permet à votre agent de chercher et de lire les fichiers de votre ordinateur. Toutes les fonctions locales sont gratuites.

Télécharger gratuitement

Pages liées