Claude-LMStudio Bridge
MCP server to bridge Claude with local LLMs running in LM Studio
Overview
Claude-LMStudio Bridge is an MCP server designed to connect Claude with local LLMs running in LM Studio, enabling seamless interaction between the two.
To use the bridge, clone the repository, set up a virtual environment, install dependencies, and configure Claude Desktop to connect to the MCP server.
- Lists available LLM models in LM Studio. - Generates text using local LLMs. - Sends chat completions to local LLMs.
- Integrating local LLMs with Claude for enhanced text generation.
- Utilizing local models for specific tasks while leveraging Claude's capabilities.
- Facilitating communication between Claude and local LLMs for customized applications.
Add to your AI client
Use these steps to connect Claude-LMStudio Bridge in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"claude-lmstudio-bridge-infinitimeless": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-lmstudio-bridge-infinitimeless"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"claude-lmstudio-bridge-infinitimeless": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-lmstudio-bridge-infinitimeless"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"claude-lmstudio-bridge-infinitimeless": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-lmstudio-bridge-infinitimeless"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"claude-lmstudio-bridge-infinitimeless": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-lmstudio-bridge-infinitimeless"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"claude-lmstudio-bridge-infinitimeless": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-lmstudio-bridge-infinitimeless"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"claude-lmstudio-bridge-infinitimeless": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-lmstudio-bridge-infinitimeless"
]
}
}
}FAQ
What is required to set up the bridge?
You need to clone the repository, create a virtual environment, and install the necessary dependencies.
Can I use any local LLM with this bridge?
Yes, as long as the LLM is compatible with LM Studio.
Is there any specific configuration needed for Claude Desktop?
Yes, you need to add the MCP server configuration to your Claude Desktop settings.