Large Language Models

MCP Setup LM Studio Ollama: Free Local Config, Models and Not Working Fixes

Connect a local model to files, browsers and databases without paying for an API. This article shows the exact mcp.json for LM Studio, the bridge Ollama needs, which models call tools reliably, and a symptom table for fixing red servers, ignored tools and broken JSON.

MCP Setup LM Studio Ollama: Free Local Config, Models and Not Working Fixes
Cristian Da Conceicao

You downloaded a local model, it chats nicely, and then you ask it to read a file on your own disk. It apologizes and says it has no access. That gap is exactly what MCP closes. The Model Context Protocol lets a model call tools: read folders, query a database, fetch a web page, run a script. Done locally, the whole setup costs nothing, sends nothing to a server and works offline.

The catch is that LM Studio and Ollama handle MCP very differently, and most "MCP not working" threads come from mixing the two up. This article gives you a working config for each, a short list of models that actually call tools, and a symptom table for the errors you are most likely to hit.

What MCP Actually Does

Developer typing in a config file on a laptop in warm morning light

The three moving parts

MCP has three roles, and keeping them straight prevents most confusion:

  • The MCP server is a small program that exposes tools. A filesystem server exposes "read file" and "list folder". A fetch server exposes "get this URL".
  • The MCP client (host) is the app that launches servers and shows their tools to the model. LM Studio is a client. Ollama, on its own, is not.
  • The model reads the tool list, decides when to call one, and writes a structured request. If the model cannot produce that structure, nothing happens.

So when a tool "does not work", ask three questions in order: did the server start, did the client see it, and did the model call it?

Why run it locally

A local MCP stack has real advantages over a hosted assistant:

  • Privacy: your documents never leave the machine.
  • Zero running cost: no tokens, no subscription, no rate limits.
  • Control: you choose the exact model, quantization and folders it may touch.
  • Offline use: a laptop on a train still works.

The tradeoff is capability. A 14B model on a gaming laptop will not out-reason the biggest hosted systems, and later in this article you will see when a hybrid approach makes more sense.

💡 Tip: Start with one harmless server, such as a read-only folder, before adding anything that can write, delete or send data.

LM Studio Setup Step by Step

LM Studio is the easier route because it is both the model runner and the MCP client. Recent versions include MCP host support built in, and the official documentation lists version 0.4.0 or newer as the safe baseline when you also want MCP through its API. Update first, because older builds simply do not show the feature.

Compact mini PC and router on a shelf glowing with a small status light

Open the mcp.json file

In LM Studio, open the Program tab in the right sidebar, find the Install section and choose Edit mcp.json. The file opens inside the app. LM Studio uses the same mcpServers notation that other popular clients use, so configs you find online usually paste in without changes.

Add your first server

Here is a filesystem server that can see one folder only. Replace the path with a real directory on your machine:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "C:\\Users\\you\\Documents\\notes"
      ]
    }
  }
}

Save the file and LM Studio reloads its servers automatically. A second example, a web fetch server that uses uvx:

{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    }
  }
}

Both examples rely on a runtime. npx needs Node.js and uvx needs uv. If either is missing from your system PATH, the server will fail to start, and that is the number one cause of a red status dot.

Approve tool calls

When the model calls a tool for the first time, LM Studio asks you to approve it. Read the arguments before you click. You can allow a tool once or always, and I recommend "once" until you trust both the server and the model.

💡 Tip: Load a model first, open a new chat, and check that a plug icon or tool list appears in the chat. If it does not, the server did not start.

Ollama Needs a Client

Top-down view of a desk with a laptop, a notebook with diagrams and a coffee cup

Why Ollama alone is not enough

Ollama runs models and exposes an API that supports tool calling, but it does not launch MCP servers or speak the protocol by itself. Many tutorials skip this point, so people paste an mcpServers block into an Ollama folder and wonder why nothing happens. There is no such file to edit.

The model layer and the MCP layer are separate. Ollama gives you the first. You add a client for the second.

Bridges that work

Several free clients connect an Ollama model to MCP servers:

ClientTypeBest for
MCPHostCommand lineQuick terminal chats with tools
GooseDesktop agentMulti-step tasks with local models
ClineVS Code extensionCoding with file and terminal tools
ContinueIDE extensionCode assistance inside the editor
Open WebUI with an MCP proxyBrowser interfaceA shared chat page for a household or team

Each one asks for the Ollama address (usually http://localhost:11434), a model name, and the same mcpServers block you saw above. Once the client sees your servers, tools flow through the Ollama API just as they do in LM Studio.

Pull a model that supports tools

Not every model on the Ollama library accepts tools. Check for the tools badge on the model page, then pull it:

ollama pull qwen3:14b
ollama run qwen3:14b

If you pick a model without tool support, the client will either error out or the model will answer in plain text and ignore every server you attached.

Models That Call Tools Properly

Macro shot of a graphics card inside an open computer case

Tool calling is a trained skill. A model must emit a precise structure, usually JSON, naming the tool and filling every required argument. Small or heavily compressed models fail at this far more often than at ordinary chat.

A practical shortlist

These families have a good record with local tool use. Always check the specific tag, because behavior differs between versions:

Model familyTypical local sizeTool reliabilityNotes
Qwen38B to 32BHighStrong at structured output and multilingual work
Llama 3.1 and newer instruct8B to 70BGoodWidely supported by every client
Mistral and Mistral Small instruct7B to 24BGoodFast, light on memory
gpt-oss20B and upHighNeeds a capable GPU or lots of RAM
Granite instruct2B to 8BFair to goodSmall footprint for modest hardware

If your hardware is modest, the small instruct models are a sensible place to start, and you can try several of them in a browser before downloading anything. Granite 4.1 8B and Llama 4 Scout Instruct are both available on PicassoIA, which makes a quick behavior check easy before you commit disk space.

Size and quantization

A rough rule from community testing: 14B parameters is where tool calling becomes dependable. Below 7B, expect missed arguments and broken brackets. Quantization matters too. A Q4 build saves memory but can degrade JSON precision, while Q5 or Q6 often behaves better if you have the RAM.

Your hardwareReasonable starting model
8 GB VRAM or 16 GB RAM7B to 8B instruct, Q5 if it fits
12 to 16 GB VRAM14B instruct, Q4 or Q5
24 GB VRAM or more24B to 32B, Q4 and a longer context

Settings that matter

  • Temperature: keep it low, around 0.1 to 0.3. High values make models invent tool names.
  • Context length: tool definitions consume tokens before you type a word. Raise the context to at least 8K, and 16K if you attach several servers.
  • System prompt: one clear sentence helps, such as "Use the provided tools when you need file contents. Do not guess."

Ollama's default context window is small, which quietly truncates the tool list. If a model "forgets" a tool exists, raise num_ctx first.

Not Working? Fixes by Symptom

Frustrated developer at a laptop in a dim home office

Work through problems in the same order as the data flows: server, client, model. The table gives the fast version, and the sections below expand the common ones.

SymptomLikely causeFix
Server dot is red or tools missingRuntime not on PATHInstall Node.js or uv, then restart the app
JSON error when saving the configTrailing comma or single backslashesValidate the JSON, use \\ in Windows paths
Model answers in plain textModel has no tool supportSwitch to a model with the tools badge
Tool called with wrong argumentsModel too small or temperature too highUse 14B or larger, drop temperature to 0.2
Tools vanish mid conversationContext window overflowedIncrease context length, remove unused servers
Works in chat, fails through the APIAuthentication or version mismatchUpdate LM Studio, check the API token setting
Ollama ignores your configOllama is not an MCP clientAdd a client such as MCPHost or Goose

Server shows red or fails to start

Open the app's logs. A message like "npx is not recognized" means the runtime is missing from PATH. Install Node.js, reopen the app (not just the window), and try again. On Windows, a path with single backslashes inside JSON will also break parsing, so double them or use forward slashes.

A good habit: run the exact command from the config in a terminal first. If it fails there, it will fail in the app, and the terminal error is usually clearer.

Model ignores the tools

Three causes cover most cases. The model lacks tool training, the context window cut the tool list, or the prompt did not make the need obvious. Test with a blunt request such as "List the files in my notes folder using the filesystem tool." If a reliable model still refuses, check that the server is enabled for this particular chat, since LM Studio lets you toggle servers per conversation.

Malformed JSON arguments

When the log shows a tool call with a missing field or an unclosed bracket, the model is the weak link. Try, in this order:

  1. Lower the temperature to 0.2 or less.
  2. Move up one model size.
  3. Use a higher quantization of the same model.
  4. Reduce the number of attached servers so the model faces fewer choices.

Remote API calls fail

Calling LM Studio from another device or script adds an extra layer. One bug report on the project tracker describes MCP calls not executing when requests arrive through the API with authentication enabled. If you hit that, confirm your LM Studio version, test the same request locally without authentication to isolate the cause, and then add authentication back.

💡 Tip: Change only one thing at a time. Swapping model, server and client together makes it impossible to tell what fixed the problem.

Safe Permissions for Local Tools

A hand sliding a folder into a metal filing drawer

A local model with file access is useful and a little risky. The model is not malicious, but it can misread an instruction, and a web page it fetches can contain text that tries to steer it. Treat tool access as you would a new intern with a spare set of keys.

Scope folders narrowly

Point the filesystem server at one working folder, never at your whole user directory. If a task needs more, add a second path deliberately. Keep sensitive material such as password exports, tax documents and SSH folders out of every allowed path.

Keep approvals on

Leave manual approval enabled for anything that writes, deletes or sends data. Reading is low risk. Writing deserves a glance at the arguments. For fetch servers, remember that retrieved pages are untrusted input: if a summary suddenly asks you to run something, stop and read the original page yourself.

A short checklist:

  • Read-only first, write access later.
  • One folder per server, with a clear name.
  • Approve once, not always, until the workflow is proven.
  • Remove servers you no longer use.

Local Models Meet Cloud Models

Two collaborators at a standing desk in a bright loft studio

Local MCP is excellent for private, repetitive work: summarizing your own notes, renaming files, drafting from local documents. It struggles when a task needs deep reasoning, a huge context, or flawless code across many files. That is where mixing both worlds pays off.

Use each where it fits

A sensible split many people settle on:

TaskBetter home
Private notes and personal filesLocal model with MCP
Quick drafts and formattingLocal 8B to 14B model
Hard debugging and multi-file refactorsLarger hosted model
Long document synthesisHosted model with a large context window
Checking how a model behaves before downloadingBrowser test on PicassoIA

When a local model stalls, you can send the same prompt to a hosted one without installing anything. On PicassoIA, Claude Sonnet 5 handles long coding tasks, Gemini 3.5 Flash is quick for everyday questions and image input, and Kimi K2.6 is built around agent-style work. For fast, low-cost replies, GPT 5.6 Luna is a good fit, and DeepSeek V3 is a strong open-weights option for text and code. Qwen3.7-Plus is also worth comparing if you plan to run Qwen locally, since you can judge the family's style before you download a quantized version.

A simple hybrid workflow

  1. Draft and sort files locally with your MCP-enabled model.
  2. Copy only the non-sensitive part of a hard problem to a hosted model.
  3. Bring the answer back and apply it locally.

This keeps private data on your machine while still giving you access to heavier reasoning when it counts.

Build Your Next Project With Picasso IA

Designer working at a large monitor in a daylight studio

Once your local setup runs, the same habits carry over to creative work. People who script their notes and files with MCP often want visuals for the same project: cover art, product mockups, photo edits, short clips and voiceovers. Picasso IA puts text, image, video, speech and music models in one place, so you can keep your private data local and still produce polished media when you need it.

Open a chat model to compare answers with your local setup, then move on to image or video generation for the visuals. Every model is listed at picassoia.com/en/all-models, and you can try them directly in the browser. Take the workflow you just built, pick a project, and start experimenting on Picasso IA today.

Person working on a laptop on a sofa at dusk with a tablet beside them

Share this article

Choose your language

FreeCreate AI Images and VideosFree, No Credit CardFree Generations to StartSeedance 2.5 Lite IncludedStart Free Now