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.
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
| Implementation | Kind | Status |
|---|---|---|
| infinitimeless/LMStudio-MCP (community) | Community | active |
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
| Kind | Tools |
|---|---|
| Read | health_check, list_models, get_current_model |
| Write | chat_completion, text_completion, generate_embeddings, create_response, start_conversation, continue_conversation |
| Can’t be undone | none 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
| Option | What it does |
|---|---|
LMSTUDIO_HOST and LMSTUDIO_PORT | Set where the bridge sends requests. The default is localhost:1234. |
Loopback only | Keep LM Studio’s server bound to localhost so prompts stay on your machine. |
Tool parameters | Calls 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-MCPClaude 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