Claude LMStudio Bridge
STDIOAn MCP server that bridges Claude with local LLMs running in LM Studio.
An MCP server that bridges Claude with local LLMs running in LM Studio.
An MCP server that bridges Claude with local LLMs running in LM Studio.
This tool allows Claude to interact with your local LLMs running in LM Studio, providing:
git clone https://github.com/infinitimeless/claude-lmstudio-bridge.git cd claude-lmstudio-bridge
chmod +x setup.sh ./setup.sh
git clone https://github.com/infinitimeless/claude-lmstudio-bridge.git cd claude-lmstudio-bridge
setup.bat
If you prefer to set things up manually:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
After setting up the bridge, you can use the following commands in Claude:
Can you check if my LM Studio server is running?
List the available models in my local LM Studio
Generate a short poem about spring using my local LLM
Ask my local LLM: "What are the main features of transformers in machine learning?"
Use the included debugging tool to check your LM Studio connection:
python debug_lmstudio.py
For more detailed tests:
python debug_lmstudio.py --test-chat --verbose
"Cannot connect to LM Studio API"
"No models are loaded"
"MCP package not found"
pip install "mcp[cli]" httpx python-dotenv
"Claude can't find the bridge"
chmod +x run_server.sh
(on macOS/Linux)You can customize the bridge behavior by creating a .env
file with these settings:
LMSTUDIO_HOST=127.0.0.1
LMSTUDIO_PORT=1234
DEBUG=false
Set DEBUG=true
to enable verbose logging for troubleshooting.
MIT