Local Model Workers MCP
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., "@Local Model Workers MCPExplore the repo and propose tests for the new config module."
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.
Quick start · How it works · Tools · Security · Docs
Local Model Workers MCP is a local MCP server that lets your AI coding tools delegate the expensive parts of repository work — exploration, semantic search, code queries, test generation, docs, and lint or type fixes — to a model you run yourself on LM Studio, Ollama, vLLM, or LocalAI.
It returns validated, unapplied diffs and structured results. The server, not the model, is the security boundary: it reads your repository, filters what leaves, validates what comes back, and never writes to your project.
Quick start
npx local-model-workers-mcp setupThe guided setup detects your served models, lets you pick feature groups and
target harnesses (arrow keys to move, Space to toggle, Enter to confirm),
writes the harness configuration, installs a managed steering block so your
agent knows these tools exist, and finishes with a live health check.
Prefer a global install:
npm install --global local-model-workers-mcpNon-interactive, for scripts and CI:
local-model-workers-mcp setup --target all --features exploration,tests,docs,lint --url "http://localhost:1234/v1" --yesThen just start your agent — setup already registered the server:
Harness | Registered in |
Claude Code |
|
Codex |
|
Cursor |
|
VS Code · Roo Code · Cline |
|
Neovim · Avante |
|
JetBrains IDEs | shared AI Assistant |
Antigravity |
|
Claude Code plugin
Claude Code users can skip the setup command and install a plugin that bundles the server and its usage guidance:
/plugin marketplace add gaabrielrd/local-model-workers-mcp
/plugin install local-model-workers@gaabrielrd
/local-model-workers:setupThe plugin lives in plugin/; the marketplace manifest that
serves it is .claude-plugin/marketplace.json.
Use one or the other — running setup --target claude-code alongside the plugin
registers the server twice.
Related MCP server: chatgpt-codex-local-mcp
How it works
Every tool call follows the same path, and the model never touches your disk:
sequenceDiagram
autonumber
participant H as Your harness
participant S as local-model-workers-mcp
participant R as Your repository
participant M as Your local model
H->>S: tool call (stdio, MCP)
S->>R: canonical, fail-closed read
R-->>S: filtered excerpts
Note over S: gitignore rules, sensitive<br/>and binary exclusion
S->>M: bounded context + output schema
M-->>S: structured JSON
Note over S: schema validation,<br/>then patch policy
S-->>H: result, or an unapplied unified diffReads the repository through a canonical, fail-closed read capability — path sandbox, Git ignore rules, sensitive and binary exclusions.
Sends only bounded context to your model over the trusted LAN.
Validates the structured response against a strict schema.
Returns structured results — and writes as unapplied unified diffs.
The model can never write to your repository, apply a patch, or run a project command. Generated tests execute only inside an isolated temporary copy.
The 15 tools
Tools are grouped, and you choose which groups to register during setup.
check_health, get_config, get_offload_stats, validate_config, and
update_config are always available.
Group | Tools | What you get |
Exploration |
| Goal-directed analysis, symbol/caller/dependency queries, |
Tests |
| Test-only diffs, optionally iterated in a sandbox until they actually pass |
Docs |
| Docs-only patches and semantic commit-range analysis |
Lint |
| Verified diffs in temporary sandboxes for ESLint, Biome, Ruff, |
Administration |
| Per-provider health, redacted config, |
Symbols are recognized in TypeScript, JavaScript, Python, Go, Rust, Java, C#, Kotlin, Swift, Scala, PHP, Ruby, and Elixir.
Why this is safe
Your code stays on your network. Only filtered, bounded excerpts reach a model you control, on your machine or a trusted private LAN.
The server never writes to your project. Every write-shaped result is an unapplied unified diff that you review and apply yourself.
Repository text is fenced. Every excerpt sent to a model is wrapped in a nonce-delimited untrusted-data block, with your task instructions kept outside it, so text committed to a file cannot hijack the request.
Patches are structurally validated. Test proposals must be test-only, docs patches docs-only, and every patch respects file and changed-line ceilings before you ever see it.
Secrets are redacted everywhere. Bearer tokens never appear in configuration output, health responses, logs, stdout, stderr, or setup summaries — and every tool result is scrubbed at the MCP boundary, so a credential a model echoes back never reaches your transcript.
Test execution is isolated. Generated tests run in a throwaway copy of the repository, never your working tree.
Full threat model: docs/security.md.
Configuration
Minimal environment:
export LMW_PROVIDERS='[{"name":"lm-studio","type":"lm-studio","base_url":"http://localhost:1234/v1","allowed_models":["qwen/qwen3.5-9b"],"priority":0}]'Use ["*"] for allowed_models to accept every served model.
LMW_PROVIDERS is also how you configure multi-provider routing — the
router picks the first healthy provider that serves the requested model, with
priority routing, health checks, circuit breakers, and failover across LM
Studio, Ollama, vLLM, and LocalAI. See
docs/configuration.md for the full contract.
The CLI honors NO_COLOR and FORCE_COLOR, and falls
back to plain ASCII on non-TTY, non-UTF-8, and legacy Windows consoles.
Quality
Published on npm and attached to the latest GitHub Release under the MIT license.
npm run validateis green on macOS, Linux, and Windows CI — formatting, lint, feature boundaries, typecheck, build, and 629 automated tests.Release qualification verifies the packaged server registers all 15 tools and runs real-model structured-output probes.
Documentation
Architecture · Security model · Configuration · Installation & harness setup
Claude Code plugin · MCP tool reference · Testing strategy · External integrations · Architecture decisions
Development
Requires Node.js 24.18.x and npm 11.x (see .nvmrc):
nvm use
npm ci
npm run validatenpm run validate checks formatting, linting, feature boundaries, types,
tests, and the production build. Build and inspect a release candidate with:
npm run build
npm run pack:check
npm run release:smokeLicense
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
- FlicenseAqualityCmaintenanceA safe, local MCP server that lets Claude drive a controlled software-development loop (inspect, read, plan, patch, apply, check, analyze, fix, summarize) on a project, using deterministic tools and real diffs/test runs.101
- FlicenseAqualityCmaintenanceA secure MCP server that exposes local repository context to ChatGPT/Codex with read-only access, path validation, and no generic shell.17
- AlicenseAqualityBmaintenanceA read-only MCP server that lets a Claude chat explore your local repository and answer questions about it, returning synthesized answers with file:line references.31MIT
- AlicenseNot gradedqualityCmaintenanceA small MCP server that turns a shared Ollama box into a team resource for Claude Code, providing typed tools and delegated read-only repo exploration using local models.MIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
An MCP server that gives your AI access to the source code and docs of all public github repos
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
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/gaabrielrd/local-model-workers-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server