All MCP setup guides
MCPLM Studio

How to Add a Remote MCP Server to LM Studio

Local models can use remote MCP servers — but only if the model supports tool calling, and many don't. Where the mcp.json editor hides, and why a smaller model can get worse after you connect one.

Last verified September 15, 2026

How do I add a remote MCP server to LM Studio?

In a chat, open the right-hand sidebar, click the Program tab, then Install > Edit mcp.json. Add the server to the mcpServers object and save — LM Studio opens your browser for the OAuth consent screen automatically on save. You need v0.4.10 or later — MCP arrived in v0.3.17 but OAuth for MCP servers only landed in v0.4.10, so on an older build no consent screen ever appears — and, critically, a model with native tool use support — LM Studio marks those with a hammer badge. Models without it still get LM Studio's default tool use support, so they will try, but the attempts are unreliable enough that a perfectly working server can look broken when the model is the problem.

Requirements

  • LM Studio v0.4.10 or later (free), with at least one model downloaded. MCP itself landed in v0.3.17, but OAuth for MCP servers shipped in v0.4.10 — and OAuth is what this guide uses, so an older build will follow every step and never prompt you to sign in
  • A model with native tool use support — LM Studio puts a hammer badge on these in the app. Models without it still get LM Studio's default tool use support, so they will try, but the attempts are often unreliable
  • A default browser set at the OS level, for the authorization step

Adding the server

  1. In a chat, open the right-hand sidebar
  2. Click the Program tab
  3. Click Install > Edit mcp.json

Then add the server to the mcpServers object and save:

{
  "mcpServers": {
    "my-server": {
      "url": "https://mcp.example.com/mcp"
    }
  }
}

Authorization

When you save mcp.json, LM Studio opens your browser with the server's consent screen automatically. Sign in if prompted and approve. If the server supports dynamic client registration, there are no keys, client IDs, or secrets to paste.

If no browser window opens, re-save mcp.json to retrigger the flow, and check that a default browser is set at the OS level.

Approving tool calls

LM Studio asks for confirmation before each tool call. The first time your model calls one of the server's tools, a confirmation dialog appears — approve it. The same dialog lets you relax future confirmations for tools you trust.

This is worth knowing before you conclude something is broken: a first tool call that appears to hang may simply be waiting on a dialog.

The two failures specific to local models

Both of these are about the model, not the server.

The model never calls the tools. This is almost never a hard capability gap — LM Studio gives every model default tool use support, so an untrained model will attempt a tool call and make a mess of it. Look for the hammer badge in the app, which marks native tool use support, and switch to a model that has one. No config change fixes this; the model is the variable.

Responses got worse after connecting. This one surprises people. Smaller local models can struggle when a large tool list lands in their context: the tools crowd the window and the model's ordinary answers degrade. Try a larger model, or disable the tools you don't need for the current chat.

That second failure is the honest trade-off of connecting a rich server to a small local model, and it is better to know it up front than to conclude the server is at fault.

What else goes wrong

  • No browser window for authorization. Re-save mcp.json; check the OS default browser.
  • The connection fails immediately. Check the URL against exactly what the server publishes, including the path and any trailing slash.

A worked example

LM Studio runs open-source models locally — Llama, Qwen, GLM, Kimi, DeepSeek, gpt-oss, anything in GGUF or MLX format. What those models lack is persistence: the model is on your machine, and nothing carries between sessions.

Tempreon is a hosted MCP server that supplies exactly that missing half:

{
  "mcpServers": {
    "tempreon": {
      "url": "https://api.tempreon.com/functions/v1/tempreon-mcp/mcp"
    }
  }
}

Save, approve in the browser, approve the first tool call, and a fully local model has a persistent identity — the model runs entirely on your machine, and the memory comes from the server. There is also a one-click install link and the account-holder walkthrough in the LM Studio setup doc.

Sources

The dated claims on this page were checked against these vendor documents. Client UIs move constantly, so if one of these has changed since the date shown, trust the vendor over this page — and tell us.

Frequently asked questions

My local model in LM Studio never calls the MCP tools. Why?
The most common cause is the model. LM Studio gives every model default tool use support, so a model that was never trained for tool calling will still try, and those attempts are often unreliable. Models with native tool use support carry a hammer badge in the app and generally do better, so pick one of those. If responses instead got worse after connecting, a smaller model may be struggling with the large tool list; try a larger model or disable tools you don't need.
Where is the MCP config in LM Studio?
In a chat, open the right-hand sidebar, click the Program tab, then click Install and Edit mcp.json. Add the server to the mcpServers object and save the file. LM Studio has supported MCP servers since v0.3.17, but OAuth for MCP servers arrived later, in v0.4.10. Since a remote server almost always authenticates with OAuth, treat v0.4.10 as the practical floor — on an older build the setup below completes without ever opening a consent screen.
Do I have to approve every tool call in LM Studio?
LM Studio asks for confirmation before each tool call the first time. When your model first calls a tool, a confirmation dialog appears — approve it, and the same dialog lets you relax future confirmations for tools you trust.