LMStudio MCP Server

A Model Control Protocol (MCP) server that allows Claude to communicate with locally running LLM models via LM Studio.

Local serverstdioPython

What is the LMStudio MCP Server?

A Model Control Protocol (MCP) server that allows Claude to communicate with locally running LLM models via LM Studio.

What you get

LMStudio-MCP creates a bridge between Claude (with MCP capabilities) and your locally running LM Studio instance. This allows Claude to:

Configuration and credentials

  • Python 3.7+ - LM Studio installed and running locally with a model loaded - Claude with MCP access - Required Python packages (see Installation)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the LMStudio MCP Server

{
  "mcpServers": {
    "lmstudio": {
      "command": "uvx",
      "args": ["requests"],
      "env": {
        "LMSTUDIO_HOST": "your-value",
        "LMSTUDIO_PORT": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.7+ - LM Studio installed and running locally with a model loaded - Claude with MCP access - Required Python packages (see Installation)
VariableDescriptionRequired
LMSTUDIO_HOSTEndpoint or connection string the server talks to.Optional
LMSTUDIO_PORTConfiguration value read at startup.Optional

Frequently asked questions

Python 3.7+, a running LM Studio instance with a model loaded, MCP-compatible Claude client, and the `requests`, `mcp[cli]`, and `openai` Python packages.