Skip to content
← All MCP servers

Is the LM Studio MCP server safe? What it can reach

What the LM Studio MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

LM Studio itself is an MCP host, not a server. This page covers the most used community bridge, infinitimeless/LMStudio-MCP, which lets Claude call a model running in LM Studio. It starts locally and talks to LM Studio’s API, localhost:1234 by default. It has no credential and no tool that edits files or settings. The one control that matters is the LMSTUDIO_HOST address.

Who maintains it

ImplementationKindStatus
infinitimeless/LMStudio-MCP (community)Communityactive

It runs as a local process on your machine.

How it signs in

The README documents no credential. The bridge calls LM Studio’s OpenAI-compatible API at the configured host and port, with whatever access that endpoint allows.

What its tools can do

KindTools
Readhealth_check, list_models, get_current_model
Writechat_completion, text_completion, generate_embeddings, create_response, start_conversation, continue_conversation
Can’t be undonenone documented

The write tools send your prompt to a model and return its output, and they use LM Studio’s compute. create_response, start_conversation and continue_conversation need LM Studio 0.3.29 or later. LM Studio’s own MCP host feature, which connects the app to other servers through mcp.json, is a different thing.

Built-in limits

OptionWhat it does
LMSTUDIO_HOST and LMSTUDIO_PORTSet where the bridge sends requests. The default is localhost:1234.
Loopback onlyKeep LM Studio’s server bound to localhost so prompts stay on your machine.
Tool parametersCalls take temperature, max_tokens, stop_sequences and model, which cap length and choice of model.

The risks

  • Text from a local model comes back into Claude’s context, so a poisoned model or prompt could steer later Claude tool calls.
  • Everything you send through chat_completion and the other tools goes to whatever host LMSTUDIO_HOST names, and a remote value sends it off your machine.
  • The suggested one-line installer pipes a script from GitHub into bash, and the Docker example uses host networking.
  • The README documents no authentication on the LM Studio endpoint, so anything else on that network that can reach it can use your models.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env LMSTUDIO_HOST=... --env LMSTUDIO_PORT=... lm-studio -- uvx https://github.com/infinitimeless/LMStudio-MCP

Claude Code names MCP tools mcp__lm-studio__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__lm-studio__start_conversation",
      "mcp__lm-studio__continue_conversation"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.lm-studio]
command = "uvx"
args = ["https://github.com/infinitimeless/LMStudio-MCP"]
env_vars = ["LMSTUDIO_HOST", "LMSTUDIO_PORT"]

Checklist

  • Leave LMSTUDIO_HOST at localhost unless you mean to reach another machine.
  • Read the install script before you pipe it into bash, or use the uvx route.
  • Treat local model output as untrusted text.
  • Pin the repository to a commit you reviewed.

Checked against the vendor documentation on November 25, 2026. infinitimeless/LMStudio-MCP README · LM Studio MCP host docs

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing