mcp-server-lmstudio
Click on "Deploy 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., "@mcp-server-lmstudio ask my local LM Studio model to explain MCP servers in one sentence"
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.
mcp-server-lmstudio
LM Studio (ローカル LLM) を Model Context Protocol (MCP) 経由で呼び出すためのブリッジサーバーです。
Antigravity IDE、Claude Desktop、Cursor などの MCP 対応クライアントから、完全ローカルで動作する LM Studio のモデル(Qwen、Llama、DeepSeek 等)をツールとして利用できます。
主な特徴
🚀 WSL2 自動対応: WSL2 と Windows ホスト間の仮想ネットワーク IP を自動検出し、通信エラーを防止します。
🔄 モデル自動追従: LM Studio で現在ロードされているモデルを自動判別するため、モデルを変更しても設定の書き換えは不要です。
🛡️ 安全・軽量: 秘密情報や API キーの管理は不要。完全ローカル環境で通信します。
Related MCP server: LM Studio MCP Bridge
提供するツール (Tools)
ask_local_llmローカル LLM にプロンプトや質問を送信し、回答を取得します。
引数:
prompt(必須),system_prompt(任意),temperature(任意)
list_local_modelsLM Studio で現在ロード中・利用可能なモデル一覧を取得します。
check_lm_studio_statusLM Studio の Local Server が起動・接続可能か確認します。
必要要件
Node.js: v18.0.0 以上
LM Studio: 最新版
インストール & セットアップ
1. リポジトリのクローンと依存関係のインストール
git clone https://github.com/ibukichi-jp/mcp-server-lmstudio.git
cd mcp-server-lmstudio
npm install2. LM Studio 側の設定
LM Studio を起動し、使用したいモデルをロードします。
左サイドバーの 「<-> (Developer / Local Server)」 を開きます。
Serve on local network (0.0.0.0) または Enable CORS を有効にします。
Start Server(ポート
1234)をクリックしてサーバーを起動します。
3. MCP クライアントへの登録
■ Antigravity IDE の場合
~/.gemini/config/mcp_config.json の mcpServers に追加します:
{
"mcpServers": {
"lm-studio": {
"command": "node",
"args": [
"/path/to/mcp-server-lmstudio/index.mjs"
]
}
}
}■ Claude Desktop の場合
claude_desktop_config.json に追加します:
{
"mcpServers": {
"lm-studio": {
"command": "node",
"args": [
"/path/to/mcp-server-lmstudio/index.mjs"
]
}
}
}ライセンス
MIT License
Available Tools
3 toolsask_local_llmC
Send a prompt or coding question to the local LLM running in LM Studio.
Inputs: prompt (required), model, temperature, system_prompt.
check_lm_studio_statusB
Check if LM Studio local server is currently running and accessible.
Inputs: no named parameters.
list_local_modelsA
List currently loaded and available models in LM Studio.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a clearly distinct function: listing models, asking the LLM, and checking server status. There is no overlap or ambiguity between them.
All names use snake_case with a consistent verb-first pattern (list_, ask_, check_). The minor variation in object wording reflects their distinct targets rather than inconsistent convention.
Three tools are well-scoped for the narrow purpose of interacting with a local LM Studio server. Each tool earns its place and no tool feels redundant or missing at this scale.
Core operations for checking status, listing models, and querying the LLM are covered. Minor gaps exist, such as model load/unload or generation parameter control, but these are not essential for basic use.
Maintenance
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for progressive tool usage at any scale (see https://klavis.ai)
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA 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.-
- AlicenseCqualityDmaintenanceEnables MCP clients to interact with local LLMs via LM Studio, supporting dynamic chat, vision, RAG, file interaction, and model orchestration.28MIT
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.1-
- AlicenseNot gradedqualityBmaintenanceHosts local MCP servers on Windows, enabling connection of local AI models (like Gemma) to external tools without cloud dependency.464 npmMIT