Filesystem MCP in LM Studio
Install + handshake last tested 2026-12-02 UTC · Local-model tests: Not yet tested
Client: LM Studio (MCP host since 0.3.17). Client versions and features come from vendor docs, checked 2026-10-22 UTC. We haven't run this setup end-to-end yet.
Prerequisites
- LM Studio 0.3.17 or later
- Node.js 18+ for npx
- A folder you are happy to let the model read and write
Steps
- Open LM Studio > Program > Install > Edit mcp.json.
- Paste the config below (Cursor-style mcpServers notation) and replace /tmp with your folder.
- Enable only the tools you need; start read-only.
Config
{
"mcpServers": {
"filesystem-reference": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/tmp"
]
}
}
}Suggested tool allowlist
Picked from the real tool names in our test; whether a small model succeeds with them is not yet tested.
- Filesystem (reference) (16 tools listed):
list_allowed_directories, list_directory, read_text_file, search_files
Token-cost estimates
- Filesystem (reference): ~2,907 tokens (35% of 8k, 9% of 32k) for all 16 tools. Small-model friendly: high.
Method: token_cost estimate (tiktoken cl100k_base). Cost for the allowlist subset alone: the figure is pending.
Success rates on small models
- Filesystem (reference): qwen2.5:3b-instruct-q4_K_M: 100% tasks completed, 100% correct tool, 3 runs; qwen2.5:1.5b-instruct-q4_K_M: 100% tasks completed, 100% correct tool, 3 runs (8 vCPU, 15 GB RAM, no GPU; context 16384; client: testedmcp smallmodel.mjs (Ollama /api/chat tools) + Ollama 0.40.8) Exploratory single 7B run (qwen2.5:7b-instruct-q4_K_M): passed.
These were our own task runs, with all tools exposed. The setup on this page (client, model, allowlist) hasn't been run end-to-end.
Known failure modes (community-reported, not measured by us)
- Too many tools: the model picks the wrong one. Fix: use the allowlist above.
- Gemma thinking mode suppresses tool calls. Fix: turn thinking off.
- Context overflow from large tool schemas. Fix: fewer tools, or a bigger context window.
Related: Best MCP servers for small local models · All local-model guides and results.
FAQ
Does Filesystem (reference) work with local models?
In our small-model runs (not this exact setup): Filesystem (reference): qwen2.5:3b-instruct-q4_K_M completed 100% of 3 runs; qwen2.5:1.5b-instruct-q4_K_M completed 100% of 3 runs.
How many tools does it expose?
Filesystem (reference): 16 tools in our tools/list test.
Why limit the tools?
Community reports say small models choose the wrong tool or emit malformed arguments when shown many tools. We haven't measured this yet.
Are there affiliate links on this page?
No.