# local-llm-worker [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/JoblessJoe/local-llm-worker  
**GitHub Stars:** 2  
**npm Downloads (last month):** 271  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/local-llm-worker

## Description
Local LLM does Claude's bulk work: reads logs and files, researches the web, writes test-gated code.

## Tools
Capabilities this server exposes over MCP:

- **offload** — Read big output with the LOCAL model instead of reading it yourself: test runs, builds, logs, large files or diffs. It reads files and/or a command's output and answers your question. Only the short answer comes back, so large logs, files or diffs never enter your context. Good for: summarising a huge test log, finding where something is defined across big files, extracting numbers.
- **research** — Web lookup with the LOCAL model, instead of WebSearch/WebFetch: docs, current versions, facts from pages. Answers a question from the live web WITHOUT the pages entering your context. Searches SearXNG (or reads the "urls" you give), downloads the pages in full, has the LOCAL model answer with inline [n] citations, and returns only that answer plus the source list. Use it when the details on the pages matter. Slow by design: expect tens of seconds to minutes.
- **delegate** — Implement a small function, helper or file with the LOCAL model: write the test first, then call this. The local model writes ONE file until YOUR test command passes, in an isolated git worktree. Returns only a PASS/FAIL verdict. Write the test first; the worker never sees test source, only parsed failures. Independent delegates can run in parallel. Read the diff before relying on the result.
- **configure** — Set up or change localize (backend URL, models, search, which tools to use automatically via auto_use). No arguments: effective config, where each value comes from, config file paths, detected backend API, reachability and the backend's model list. With {set, scope}: merge keys into the user or project config file (null removes a key). Changes apply on the next call without a restart. Call this first on a new machine.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "local-llm-worker": {
    "command": "npx",
    "args": ["-y","localize-mcp"]
  }
}
```

## Documentation

## What local-llm-worker does

local-llm-worker, currently published as localize, moves large or repetitive coding-agent tasks to a local language model. The MCP interface exposes three primary workflows:

- `offload` runs a command or reads a file locally, then returns the model's answer rather than the full input.
- `research` searches the web, reads the resulting pages, and returns an answer with citations and source information.
- `delegate` optionally asks the local model to modify one target file and validates the change with a test written beforehand.

A fourth capability, `configure`, lets an agent inspect and change runtime settings. Configuration changes apply on the next call and do not require a server restart.

## How it works

The server communicates with a locally running model service over HTTP. It can use Ollama, llama.cpp, LM Studio, vLLM, LocalAI, or another OpenAI-compatible endpoint. The backend can be detected automatically or selected explicitly. Requests are sized for the configured model context window, with truncation reported when the available context is insufficient.

Multiple calls can run concurrently, subject to a configurable limit. This allows independent offload or delegate operations to run in parallel. CPU-only machines are supported, although processing is slower than on a suitable GPU.

`delegate` creates a separate git worktree containing the current uncommitted changes. The local model is restricted to one target file, while named test files remain protected. After each attempt, the configured test runs; failures are reduced to parsed assertion feedback for the next attempt. Supported failure parsing includes TAP, pytest, Jest, Vitest, Go, and Cargo output. A passing result can copy the target file back unless it changed in the meantime.

## Setup and configuration

Run the server with Node.js 18 or newer, git, and a running local model service. Installation from the repository does not require `npm install`. A typical MCP configuration starts `src/index.js` with Node and can set `LLW_MODEL` in the server environment.

The server reads configuration in layers: built-in defaults, a user file at `~/.config/localize/config.json` or the XDG equivalent, a project-level `.localize.json`, and `LLW_` environment variables. Later layers override earlier ones. Important settings include `base_url`, `api`, `api_key`, `headers`, model-specific overrides, the SearXNG `search_url`, page and search timeouts, and the number of research pages to read.

Claude Code can install the accompanying plugin through its marketplace. The same MCP process can also be registered with Claude Desktop, Cursor, Windsurf, or another compatible client.

## Tools and capabilities

- Process noisy test, build, or shell output without placing the complete result in the calling model's context.
- Read large files and return an answer focused on the requested question.
- Search and inspect web pages through a configured SearXNG instance.
- Produce cited research answers from the pages read by the local model.
- Implement a bounded change in an isolated worktree and retry against test failures.
- Run several independent calls in parallel within the configured concurrency limit.
- Inspect and update backend, model, timeout, header, and research settings through `configure`.
- Clean up stale `llw-*` worktrees left by crashed processes and old kept worktrees.

## Limitations and notes

`delegate` is opt-in and is limited to a single target file inside the repository. It must not target a file listed as a test file, and it does not overwrite concurrent changes. After the configured number of attempts, the operation reports the last failure and keeps the worktree. Transport failures are reported as errors rather than model test failures.

Untracked files larger than 10 MB are excluded from delegate worktrees, with the verdict reporting how many were skipped. Research reads up to the configured page count, with a maximum of 10 pages, and each search or page download has a timeout. The bundled guidance advises against delegating authentication or money-related code.

The project is designed for local inference, so model quality and speed depend on the selected backend, model, and hardware. Every run is logged for later measurement.

_Full upstream README: https://allmcps.com/mcp/local-llm-worker/readme_

