Skip to main content
Glama
developersorli

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つのオプションの環境変数を読み取ります:

変数

デフォルト

説明

LMSTUDIO_BASE_URL

http://localhost:1234/v1

LM StudioのOpenAI互換APIのベースURL

LMSTUDIO_MODEL

(自動)

デフォルトのモデル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

パラメータ

型

必須

説明

prompt

string

はい

送信するユーザーメッセージ / プロンプト

system

string

いいえ

システムメッセージとして先頭に付加されるオプションのシステム指示

model

string

いいえ

使用するモデルID(デフォルトを上書き)

temperature

number

いいえ

サンプリング温度 0〜2(デフォルト0.7)

max_tokens

number

いいえ

生成する最大トークン数

messages

array

いいえ

完全な会話履歴。prompt/systemより優先されます

lmstudio_list_models

パラメータはありません。LM Studioサーバーで利用可能なすべてのモデルのIDを返します。

ライセンス

MIT — LICENSE を参照してください。

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    MCP 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.
    9
    1
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Bridges 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
  • F
    license
    A
    quality
    B
    maintenance
    Enables 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
    -