> ## Documentation Index
> Fetch the complete documentation index at: https://linkly.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Linkly AI in LM Studio

> Combine Linkly AI's local knowledge base with LM Studio to provide document retrieval capabilities to local large language models

## What You Can Do

<AccordionGroup>
  <Accordion title="Process sensitive documents completely offline">Local LLM + Linkly AI local knowledge base — data never leaves your machine. Linkly AI's `read` tool reads confidential contracts, medical records, and other sensitive content stored on your computer directly, with no data ever uploaded to the cloud — ideal for scenarios with strict privacy requirements.</Accordion>
  <Accordion title="Search the knowledge base even without internet access">The Linkly AI service runs locally, so even without network access, the local model can use the `search` tool to search your knowledge base and respond — no dependency on any cloud service.</Accordion>
  <Accordion title="Test different local models' ability to process documents">Using the same Linkly AI knowledge base as a benchmark, run retrieval and Q\&A with models like Llama, Mistral, and Qwen, comparing which model is better at understanding your document types.</Accordion>
</AccordionGroup>

## Prerequisites

* [LM Studio](https://lmstudio.ai) installed
* Linkly AI Desktop running with the MCP service active

## Configuration Steps

<Steps>
  <Step title="Open MCP settings">In LM Studio, find the MCP server configuration (the exact location may vary by version).</Step>
  <Step title="Add Linkly AI MCP">Add a new MCP server and fill in: - Name: `linkly-ai` - URL: `http://127.0.0.1:60606/mcp`</Step>
  <Step title="Verify the connection">Try searching your documents in a conversation to verify the connection is successful.</Step>
</Steps>

<Tip>MCP support in LM Studio may vary by version. If your version does not yet support MCP, please update to the latest version.</Tip>

## FAQ

<AccordionGroup>
  <Accordion title="Cannot find the MCP settings option">Make sure you are using a version of LM Studio that supports MCP. This feature is available in newer versions.</Accordion>
  <Accordion title="Cannot connect to MCP service">Check whether Linkly AI Desktop is running and whether the MCP service is active.</Accordion>
</AccordionGroup>
