mcp-file-system-lmstudio
mcp-file-system-lmstudio
一个 Model Context Protocol (MCP) 服务器,将本地 LM Studio 模型作为工具暴露。它通过 LM Studio 的 OpenAI 兼容 API 进行通信,因此 LM Studio 中加载的任何模型都可以从 MCP 客户端查询。
功能
lmstudio_chat— 向本地模型发送提示(或完整的多轮消息历史)并获取其响应lmstudio_list_models— 列出 LM Studio 服务器上当前可用的所有模型无需 API 密钥 — 一切都在本地针对您自己的 LM Studio 实例运行
Related MCP server: LM Studio MCP Bridge
要求
Node.js >= 18(使用内置的
fetch)一个正在运行的 LM Studio 服务器,且至少加载了一个模型
从 LM Studio 的界面启动服务器(开发者选项卡 → 启动服务器)。默认情况下,它监听 http://localhost:1234。
安装
git clone https://github.com/developersorli/mcp-file-system-lmstudio.git
cd mcp-file-system-lmstudio
npm install配置
服务器读取两个可选的环境变量:
变量 | 默认值 | 描述 |
|
| LM Studio OpenAI 兼容 API 的基础 URL |
| (自动) | 默认模型 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
参数 | 类型 | 必需 | 描述 |
| string | 是 | 要发送的用户消息 / 提示 |
| string | 否 | 可选系统指令,作为系统消息前置 |
| string | 否 | 要使用的模型 ID(覆盖默认值) |
| number | 否 | 采样温度 0–2(默认 0.7) |
| number | 否 | 生成的最大 token 数 |
| array | 否 | 完整对话历史;优先于 |
lmstudio_list_models
无参数。返回 LM Studio 服务器上所有可用模型的 ID。
许可证
MIT — 参见 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