Back to Home
portertech icon

lm-studio-mcp-server

Verified Safe

by portertech

Overview

Provides AI assistants with remote control over LM Studio models, enabling management actions like listing, loading, and unloading models through the LM Studio API.

Installation

Run Command
npx @portertech/lm-studio-mcp-server

Environment Variables

  • LMSTUDIO_BASE_URL
  • LMSTUDIO_HOST
  • LMSTUDIO_PORT

Security Notes

The server employs robust practices including input validation via Zod schemas, consistent error handling with a `safeToolHandler` wrapper to prevent unhandled exceptions, and configurable LM Studio connection details through environment variables rather than hardcoded secrets. It utilizes established SDKs (`@lmstudio/sdk`, `@modelcontextprotocol/sdk`). Logs from the LM Studio SDK are correctly routed to stderr to maintain protocol-safe stdout. No direct `eval` or similarly dangerous patterns executing arbitrary user input were identified.

Similar Servers

Stats

Interest Score55
Security Score9
Cost ClassLow
Stars1
Forks0
Last Update2026-01-16

Tags

AIMLModel ManagementLM StudioMCP