Chat With Local Files in LM Studio
2026年11月23日 に情報を確認

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 files | Linkly AI over MCP | |
|---|---|---|
| Formats | .docx, .pdf, .txt | 25 formats, including slides, spreadsheets, e-books, images, audio and video |
| Scope | The files you attach to a chat | All folders you have indexed |
| Long documents | RAG picks parts of the text | Search, then read the outline and the lines needed |
| New chat | Attach again | Available in every chat |
| Extra setup | None | Desktop app and one MCP entry |
| Model requirement | Any | A 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 を使うと、エージェントがパソコン内のファイルを検索して読めます。ローカル機能はすべて無料です。