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.
Local Model Workers MCP
Local Model Workers MCP is a local MCP server that lets Claude Code, Codex, Antigravity, Cursor, VS Code (Roo Code / Cline), and Neovim (Avante) delegate repository exploration, semantic search, multi-language code queries, type & lint fixes, and test proposals to local models served by LM Studio, Ollama, vLLM, or LocalAI on another machine in a private local network.
The local server remains the security boundary: it selects repository context, enforces path and content restrictions, validates remote output, and returns a structured result. The remote model never writes to the repository, applies a patch, or runs a project command.
Project status
Release 2.0.0 implements the complete V1-V4.0 scope, including multi-provider engine, auto-validation, reactive incremental indexing, multi-language AST grammars (TS/JS, Python, Go, Rust, Java, C#), context-aware model routing, compiler type error fixes (fix_type_errors), token offload statistics tracking over time (get_offload_stats), and extended IDE setup.
The implementation includes:
layered, revision-controlled configuration with atomic writes;
canonical read-only repository access and fail-closed outbound filtering;
structured inference through LM Studio, Ollama, vLLM, and LocalAI adapters;
priority and model-aware routing, startup health checks, transient failover, and lazy recovery checks for failed providers;
explicit trusted-LAN
nonemode forlmsdeployments without token support;repository-free health diagnostics and model availability checks;
isolated task lifecycles with cross-process FIFO capacity;
bounded repository exploration and validated test-only patch proposals;
metadata-only operational logging with seven-day retention and time-series token offload statistics (
get_offload_stats);confirmed Claude Code, Codex, Antigravity, Cursor, VS Code, and Neovim harness configuration via an interactive checkbox selector (arrow keys,
Spaceto toggle,Enterto confirm) in thesetup/initassistant, with a--targetflag for scripts;selectable MCP feature groups during
setup/init(exploration,tests,docs, andlint), with all groups enabled by default and--featuresfor scripts;managed prompt-steering instruction files that direct harnesses to the MCP tools, with an optional custom
steering_promptpreference;validated lint-fix patches, type-fix patches (
fix_type_errorsfortsc&mypy), and documentation patches returned as unapplied unified diffs, so write-heavy mechanical tasks stay on the developer's side of the boundary;an auto-validate test loop that iterates test generation in an isolated temporary copy of the repository until the tests pass (or the iteration and timeout limits are exhausted), so generated tests are only proposed once proven green;
a protocol-clean MCP v2 server over
stdio.
Local qualification is green as of 2026-08-03:
npm run validatepasses formatting, lint, architecture boundaries, typechecking, build, and all 321 automated tests;npm run release:smokeproduces reproducible tarballs, installs one in an isolated prefix, starts the packaged MCP server, and verifies all 14 tools;the compiled MCP reports the real LM Studio instance healthy without a token, using
authentication: none/not_configured;Qwen 3.5 9B and Gemma 4 12B passed structured-output, required tool-call, and vision probes; Nomic Embed returned 768-dimensional embeddings;
the production dependency audit reports no known vulnerabilities.
The package is published under the open MIT license on npm as local-model-workers-mcp as well as attached as a release tarball to the latest GitHub Release.
The server exposes exactly fourteen MCP tools:
auto_validate_testscheck_healthexplore_repositoryfix_lint_violationsfix_type_errorsgenerate_docs_patchget_configget_offload_statspropose_testsquery_code_graphsearch_semanticsummarize_moduleupdate_configvalidate_config
See prd.md for the complete requirements and acceptance criteria.
Related MCP server: chatgpt-codex-local-mcp
V1 boundaries
The MCP server runs locally over
stdio.Only inference traffic reaches configured local model providers over HTTP on a trusted private network. Bearer authentication is optional per provider.
Repository access is read-only and restricted to the requested root.
Sensitive, ignored, binary, and explicitly excluded files are never sent to LM Studio.
Test generation returns a validated unified diff; the MCP server never applies it or executes tests.
Task content is ephemeral. Operational logs contain metadata only and are retained for seven days.
macOS is the full harness-validation platform for V1. Linux and Windows run basic install, startup, and configuration-read checks in the CI matrix.
Installation and First Use
1. Installation
Install globally from npm:
npm install --global local-model-workers-mcpOr run interactive setup directly without global installation via npx:
npx local-model-workers-mcp setupAlternatively, install directly from the latest GitHub Release:
# Resolve the asset URL of the latest release and install it globally
TARBALL_URL="$(curl -fsSL https://api.github.com/repos/gaabrielrd/local-model-workers-mcp/releases/latest \
| node -p "JSON.parse(require('fs').readFileSync(0, 'utf8')).assets[0].browser_download_url")"
npm install --global "$TARBALL_URL"To update, repeat the same command after a new release is published. There is no automatic updater; reinstalling the newer tarball replaces the previous install.
Verify the install:
local-model-workers-mcp --version2. Single-Command Interactive Setup
Run the single interactive onboarding assistant to configure your environment, harness integration, and test connectivity in one step:
local-model-workers-mcp setup
# or:
local-model-workers-mcp initThe setup assistant will interactively prompt for:
LM Studio Base URL:
http://localhost:1234/v1(or your private LAN IP).Allowed Models (Optional): Press Enter to automatically query LM Studio's
/v1/modelsendpoint and auto-populate all available active models.Default Model: Select your preferred default model.
Bearer Token (Optional): Leave empty for local unauthenticated LM Studio instances.
MCP Features: Press
Spaceto enable or disableexploration,tests,docs, andlint. Administrative configuration and health tools remain available.Target Harness(es): Press
Spaceto toggleclaude-code,codex, and/orantigravityon and off, arrow keys to move the cursor,Enterto confirm, andCtrl+Cto cancel. Use--targetto skip the prompt in scripts.
Non-interactive setup for scripts or CI pipelines is also supported:
local-model-workers-mcp setup --target all --features exploration,tests \
--url "http://localhost:1234/v1" --yes3. First Use
Once setup is complete and passes the health check, start your chosen harness:
Claude Code: Run
claudein your repository directory. The MCP serverlocal-model-workersis automatically loaded from.mcp.json.Codex: Run
codexfrom any directory. The MCP server is loaded from~/.codex/config.toml.Antigravity: Start Antigravity. The MCP server is registered in
~/.gemini/config/mcp_config.json.
Make sure your shell exports the connection environment variables (or rely on the auto-configured harness defaults):
export LMW_LM_STUDIO_BASE_URL='http://localhost:1234/v1'
# Optional: if omitted, all models available at /v1/models are allowed:
export LMW_ALLOWED_MODELS='["qwen/qwen3.5-9b"]'For multi-provider routing, set LMW_PROVIDERS to a protected JSON array. A
lower numeric priority is preferred; the router selects the first healthy
provider that advertises and allows the requested model. See
configuration.md for the schema and compatibility
behavior.
Documentation
Development
Use Node.js 24.18.0 and npm 11.16.0. With nvm, the repository baseline can be
selected from .nvmrc.
nvm use
npm ci
npm run validatenpm run validate checks formatting, linting, static types, tests, and the
production build. The CLI can also be built, inspected, and packed as a local
npm candidate:
npm run build
node dist/cli/index.js --version
npm run pack:check
npm run release:smokeOfficial harness evidence is measured with:
npm run release:measure -- /absolute/path/to/release-evidence.jsonThe version and configuration diagnostics are written to stderr so stdout
remains reserved for MCP stdio. Every push to main automatically runs CI
validation and creates a GitHub Release with the package installer.
The protected environment contract and editable file examples are documented
in configuration.md. .env.example
contains placeholders only; the application does not load .env files. When
configured, the Bearer token is not retained in effective configuration
snapshots.
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
- Flicense-qualityCmaintenanceA 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.Last updated1
- Flicense-qualityCmaintenanceA secure MCP server that exposes local repository context to ChatGPT/Codex with read-only access, path validation, and no generic shell.Last updated
- 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.Last updated31MIT
- Alicense-qualityCmaintenanceA 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.Last updatedMIT
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