llmstudio-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@llmstudio-mcplist all available models in LM Studio"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
llmstudio-mcp
MCP server exposing a local LM Studio instance to LLM agents — list / load / unload models, run chat and text completions, generate embeddings, and reach any other LM Studio REST endpoint via a raw escape hatch.
Table of contents
Related MCP server: FastMCP
Tools
Tool | Parameters | Description |
|
| Lists downloaded models with metadata (type, state, context length, quant) |
|
| Info about a single model |
| — | Models currently resident in memory |
|
| Loads a model into memory |
|
| Frees a model from memory |
|
| OpenAI-compatible chat completion ( |
|
| OpenAI-compatible text completion ( |
|
| OpenAI-compatible embeddings ( |
|
| Escape hatch for any LM Studio REST endpoint |
Environment variables
Variable | Required | Default | Description |
| no |
| LM Studio server URL |
| no | empty | API token (only if you enabled token auth in LM Studio's Developer tab) |
| no |
| HTTP timeout in seconds; raise for slow models or large generations |
Prerequisites
LM Studio running with its API server enabled — either the desktop app with
the Developer tab toggle on, or lms server start from the CLI. At least one
model downloaded (lms get <model>).
Wiring it up
Only requirement: uv (https://docs.astral.sh/uv/). Nothing else to install.
Claude Code
claude mcp add llmstudio-mcp -- uvx --from git+https://github.com/dam2452/llmstudio-mcp.git llmstudio-mcpIf you enabled API token auth in LM Studio:
claude mcp add llmstudio-mcp -e LMSTUDIO_MCP_API_KEY=<token> -- uvx --from git+https://github.com/dam2452/llmstudio-mcp.git llmstudio-mcpClaude Desktop / other MCP client
{
"mcpServers": {
"llmstudio-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/dam2452/llmstudio-mcp.git", "llmstudio-mcp"]
}
}
}After pushing a new version: uv cache clean and restart the client.
Local run
uv run --directory . llmstudio-mcpTests (manual):
uv run --directory . --with pytest pytest test/Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceAn MCP server that allows Claude to interact with local LLMs running in LM Studio, providing access to list models, generate text, and use chat completions through local models.Last updated13
- Flicense-qualityDmaintenanceA Model Context Protocol server that bridges MCP clients with local LLM services, enabling seamless integration with MCP-compatible applications through standard tools like chat completion, model listing, and health checks.Last updated
- Alicense-qualityCmaintenanceMCP server that provides tools to interact with the LiteLLM proxy API, enabling LLM completions, embeddings, image generation, and admin operations.Last updated18MIT

Local AI MCPofficial
AlicenseAqualityAmaintenanceUnified MCP server for managing local model runtimes (Ollama, LM Studio, etc.), enabling provider-agnostic discovery, lifecycle management, hardware-fit checks, and delegated inference.Last updated1621Creative Commons Attribution Non Commercial No Derivatives 4.0 International
Related MCP Connectors
Local-first RAG engine with MCP server for AI agent integration.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dam2452/llmstudio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server