mcp-file-system-lmstudio
Interfaces with LM Studio's OpenAI-compatible API to provide local model chat and model listing capabilities.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-file-system-lmstudioWrite a short poem about autumn."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-file-system-lmstudio
A Model Context Protocol (MCP) server that exposes a local LM Studio model as tools. It talks to LM Studio's OpenAI-compatible API, so any model loaded in LM Studio can be queried from an MCP client.
Features
lmstudio_chat— send a prompt (or full multi-turn message history) to the local model and get its response backlmstudio_list_models— list all models currently available on the LM Studio serverNo API keys required — everything runs locally against your own LM Studio instance
Related MCP server: LM Studio MCP Bridge
Requirements
Node.js >= 18 (uses built-in
fetch)A running LM Studio server with at least one model loaded
Start the LM Studio server from its UI (Developer tab → Start Server). By default it listens on http://localhost:1234.
Installation
git clone https://github.com/developersorli/mcp-file-system-lmstudio.git
cd mcp-file-system-lmstudio
npm installConfiguration
The server reads two optional environment variables:
Variable | Default | Description |
|
| Base URL of the LM Studio OpenAI-compatible API |
| (auto) | Default model id. If unset, the first available model is used |
MCP client configuration
Example for Cline / Claude Desktop style clients:
{
"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 | Type | Required | Description |
| string | yes | The user message / prompt to send |
| string | no | Optional system instruction prepended as a system message |
| string | no | Model id to use (overrides the default) |
| number | no | Sampling temperature 0–2 (default 0.7) |
| number | no | Maximum tokens to generate |
| array | no | Full conversation history; takes precedence over |
lmstudio_list_models
No parameters. Returns the ids of all models available on the LM Studio server.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables listing, loading, unloading, and configuring models in LM Studio via MCP tools, with support for TTL and draft model settings.5MIT
- FlicenseCqualityDmaintenanceEnables MCP clients to interact with local LLMs via LM Studio, supporting dynamic chat, vision, RAG, file interaction, and model orchestration.28
- AlicenseAqualityBmaintenanceExposes local Flowise chatflows as MCP tools, enabling listing and running chatflows from any MCP client.237MIT
- FlicenseAqualityCmaintenanceMCP 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
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Free OpenAI-compatible inference with signed provenance receipts and 3 focused MCP tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/developersorli/mcp-file-system-lmstudio'
If you have feedback or need assistance with the MCP directory API, please join our Discord server