mcp-file-system-lmstudio
mcp-file-system-lmstudio
ローカルのLM Studioモデルをツールとして公開するModel Context Protocol (MCP)サーバーです。LM StudioのOpenAI互換APIと通信するため、LM Studioに読み込まれた任意のモデルをMCPクライアントからクエリできます。
特徴
lmstudio_chat— プロンプト(または完全なマルチターン会話履歴)をローカルモデルに送信し、その応答を取得しますlmstudio_list_models— LM Studioサーバーで現在利用可能なすべてのモデルを一覧表示しますAPIキーは不要です — すべてがお使いのLM Studioインスタンスに対してローカルで実行されます
Related MCP server: llmstudio-mcp
要件
Node.js >= 18(組み込みの
fetchを使用)少なくとも1つのモデルが読み込まれた状態で実行中のLM Studioサーバー
LM StudioサーバーはUI(Developerタブ→ Start Server)から起動します。デフォルトではhttp://localhost:1234で待ち受けます。
インストール
git clone https://github.com/developersorli/mcp-file-system-lmstudio.git
cd mcp-file-system-lmstudio
npm install設定
サーバーは2つのオプションの環境変数を読み取ります:
変数 | デフォルト | 説明 |
|
| LM StudioのOpenAI互換APIのベースURL |
| (自動) | デフォルトのモデルID。未設定の場合は、利用可能な最初のモデルが使用されます |
MCPクライアント設定
Cline / Claude Desktopスタイルのクライアントの例:
{
"mcpServers": {
"mcp-file-system-lmstudio": {
"command": "node",
"args": ["/absolute/path/to/mcp-file-system-lmstudio/index.mjs"],
"env": {
"LMSTUDIO_BASE_URL": "http://localhost:1234/v1",
"LMSTUDIO_MODEL": "my-model-id"
}
}
}
}ツール
lmstudio_chat
パラメータ | 型 | 必須 | 説明 |
| string | はい | 送信するユーザーメッセージ / プロンプト |
| string | いいえ | システムメッセージとして先頭に付加されるオプションのシステム指示 |
| string | いいえ | 使用するモデルID(デフォルトを上書き) |
| number | いいえ | サンプリング温度 0〜2(デフォルト0.7) |
| number | いいえ | 生成する最大トークン数 |
| array | いいえ | 完全な会話履歴。 |
lmstudio_list_models
パラメータはありません。LM Studioサーバーで利用可能なすべてのモデルのIDを返します。
ライセンス
MIT — LICENSE を参照してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables MCP clients to interact with local LLMs via LM Studio, supporting dynamic chat, vision, RAG, file interaction, and model orchestration.28MIT
- FlicenseAqualityDmaintenanceMCP server that connects LLM agents to a local LM Studio instance, enabling model management, OpenAI-compatible chat completions, text completions, and embeddings through a set of tools.91-
- AlicenseNot gradedqualityBmaintenanceBridges LM Studio local models to Claude Code as MCP tools, enabling private and free AI-assisted subtasks. Includes respond and models tools with automatic model selection and structured output.MIT
- FlicenseAqualityBmaintenanceEnables MCP-compatible clients to use locally running LM Studio models as tools for sending prompts, listing available models, and checking server status. It automatically handles WSL2 networking and follows the currently loaded model without reconfiguration.3-