Skip to main content
Glama
developersorli

mcp-file-system-lmstudio

mcp-file-system-lmstudio

Ein Model Context Protocol (MCP)-Server, der ein lokales LM Studio-Modell als Tools bereitstellt. Er spricht mit der OpenAI-kompatiblen API von LM Studio, sodass jedes in LM Studio geladene Modell von einem MCP-Client abgefragt werden kann.

Funktionen

  • lmstudio_chat — sendet einen Prompt (oder einen vollständigen Multi-Turn-Nachrichtenverlauf) an das lokale Modell und gibt dessen Antwort zurück

  • lmstudio_list_models — listet alle derzeit auf dem LM Studio-Server verfügbaren Modelle auf

  • Keine API-Schlüssel erforderlich — alles läuft lokal mit Ihrer eigenen LM Studio-Instanz

Related MCP server: llmstudio-mcp

Voraussetzungen

  • Node.js >= 18 (verwendet integriertes fetch)

  • Ein laufender LM Studio-Server mit mindestens einem geladenen Modell

Starten Sie den LM Studio-Server über seine Benutzeroberfläche (Developer-Tab → Start Server). Standardmäßig lauscht er auf http://localhost:1234.

Installation

git clone https://github.com/developersorli/mcp-file-system-lmstudio.git
cd mcp-file-system-lmstudio
npm install

Konfiguration

Der Server liest zwei optionale Umgebungsvariablen aus:

Variable

Default

Beschreibung

LMSTUDIO_BASE_URL

http://localhost:1234/v1

Basis-URL der OpenAI-kompatiblen API von LM Studio

LMSTUDIO_MODEL

(auto)

Standardmodell-ID. Wenn nicht gesetzt, wird das erste verfügbare Modell verwendet

MCP-Client-Konfiguration

Beispiel für Clients im Stil von 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"
      }
    }
  }
}

Tools

lmstudio_chat

Parameter

Typ

Erforderlich

Beschreibung

prompt

string

ja

Die zu sendende Benutzernachricht / der zu sendende Prompt

system

string

nein

Optionale Systemanweisung, die als Systemnachricht vorangestellt wird

model

string

nein

Zu verwendende Modell-ID (überschreibt die Standardeinstellung)

temperature

number

nein

Sampling-Temperatur 0–2 (Standard 0.7)

max_tokens

number

nein

Maximale Anzahl zu generierender Tokens

messages

array

nein

Vollständiger Konversationsverlauf; hat Vorrang vor prompt/system

lmstudio_list_models

Keine Parameter. Gibt die IDs aller auf dem LM Studio-Server verfügbaren Modelle zurück.

Lizenz

MIT — siehe 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
    -