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 사용)

  • 모델이 하나 이상 로드된 실행 중인 LM Studio 서버

LM Studio 서버를 UI에서 시작합니다(개발자 탭 → 서버 시작). 기본적으로 http://localhost:1234에서 수신 대기합니다.

설치

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

구성

서버는 두 개의 선택적 환경 변수를 읽습니다:

변수

기본값

설명

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
    -