An MCP (Model Context Protocol) server that provides AI assistants with control over LM Studio models. Enables remote model management including listing, loading, and unloading models through the LM Studio API.
# Pull the image
docker pull portertech/lm-studio-mcp-server:latest
# Run (connects to LM Studio on host machine)
docker run -i --rm portertech/lm-studio-mcp-server:latest
# Run with custom LM Studio host
docker run -i --rm \
-e LMSTUDIO_HOST=192.168.1.100 \
-e LMSTUDIO_PORT=1234 \
portertech/lm-studio-mcp-server:latest
| Variable | Default | Description |
|---|---|---|
LMSTUDIO_BASE_URL | ws://127.0.0.1:1234 | Full WebSocket URL for LM Studio |
LMSTUDIO_HOST | 127.0.0.1 | LM Studio host (used if BASE_URL not set) |
LMSTUDIO_PORT | 1234 | LM Studio port (used if BASE_URL not set) |
{
"mcpServers": {
"lmstudio": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "LMSTUDIO_HOST=host.docker.internal",
"-e", "LMSTUDIO_PORT=1234",
"portertech/lm-studio-mcp-server:latest"
]
}
}
}
Note: Use
LMSTUDIO_HOST=host.docker.internalon macOS/Windows to connect to LM Studio running on the host machine.
| Tool | Description |
|---|---|
health_check | Check connectivity to LM Studio |
list_models | List all downloaded models |
list_loaded_models | List models currently in memory |
load_model | Load a model with optional parameters |
unload_model | Remove a model from memory |
get_model_info | Get details about a loaded model |
ISC
Content type
Image
Digest
sha256:cb92b2dad…
Size
62 MB
Last updated
8 months ago
docker pull portertech/lm-studio-mcp-server