Skip to main content
Glama
ozwei

LM Studio MCP Bridge

by ozwei

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LM_HOSTNoThe host of the LM Studio serverlocalhost
LM_PORTNoThe port of the LM Studio server1234
LM_API_TOKENNoOptional API token for authentication

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
query_local_llmA

Standard: Use this for STARTING a new conversation or one-off tasks. Supports Vision, JSON Schema, and Reasoning. Do not use this for follow-ups if you have a response ID.

query_local_llm_statefulA

Follow-up: Use this ONLY for continuing an existing conversation when you have a previous_response_id. It is faster and preserves context server-side.

analyze_local_imageC

Vision: Privacy-focused image analysis using local vision models (Llava, Moondream, etc).

query_local_fileC

Privacy-First: Reads a local file and queries the local LLM about its contents.

search_local_docsB

Local RAG: Performs semantic search across a directory using local embeddings.

get_local_embeddingsC

Generate vector representations of text using a local model.

get_system_healthB

Check bridge machine and LM Studio host resource usage.

list_local_modelsC

List loaded and available models.

load_local_modelB

Load a specific model into LM Studio memory.

unload_local_modelB

Unload a model instance to free up memory/VRAM.

check_server_statusB

Verify LM Studio API connection and health.

get_lm_link_statusA

Mesh & Network: Display the status of LM Link and discovered devices on the mesh.

manage_lm_linkA

Mesh & Network: Enable/Disable LM Link or set the local device name.

set_preferred_lm_link_deviceC

Mesh & Network: Set the preferred LM Link device for remote model resolution.

list_files_in_directoryB

List files in a specific local directory.

read_file_contentB

Directly read the content of a local file.

analyze_local_image_asyncB

Async Vision: Start a background image analysis task. Returns a Task ID.

get_bridge_task_statusB

Check the status and result of a background vision task.

get_bridge_configB

Retrieve current bridge environment and network configuration.

lms_statusB

CLI: Show the overall health of the LM Studio daemon and server.

lms_lsB

CLI: List models currently available on disk.

lms_psB

CLI: List models currently loaded in memory.

lms_getC

CLI: Search for or download models from LM Studio Hub.

lms_importC

CLI: Import a model file into LM Studio.

lms_server_controlD

CLI: Manage the local inference server.

lms_load_cliC

CLI: Advanced model loading with granular control.

lms_log_snapshotB

CLI: Capture a snapshot of current logs for a brief duration.

lms_runtime_controlC

CLI: Manage and update the inference runtime engines.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/ozwei/lmstudio-mcp-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server