Local Delegate logo

Local Delegate

Delegates summaries, extraction, translation, code tasks, and other mechanical work to an OpenAI-compatible local LLM.

Install Local Delegate

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "local-delegate": {
      "command": "uvx",
      "args": [
        "local-delegate-mcp"
      ],
      "env": {
        "LOCAL_DELEGATE_BASE_URL": "YOUR_VALUE_HERE",
        "LOCAL_DELEGATE_AUTOSTART": "YOUR_VALUE_HERE",
        "LOCAL_DELEGATE_JSON_SCHEMA": "YOUR_VALUE_HERE",
        "LOCAL_DELEGATE_LANG": "YOUR_VALUE_HERE",
        "LLAMASWAP_CONFIG": "YOUR_VALUE_HERE",
        "CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

local-delegate MCP server routes mechanical text, code, image, and diagnostic tasks to a local model through any OpenAI-compatible endpoint. It supports stdio and shared Streamable HTTP modes, and can read files server-side so large inputs stay outside the calling model’s context. Specialized tools cover summarization, classification, extraction, translation, lint summaries, commit messages, code explanations, boilerplate generation, image description, and backend status. Use it when a local model can handle routine transformations and you want to reduce context usage or Claude subscription quota consumption.

Use cases

  • Summarize large documents without loading them into the model context
  • Extract structured fields from files as validated JSON
  • Translate long Markdown files through a local model
  • Group lint, test, and CI failures by file and rule
  • Generate boilerplate code directly into a target file

Key features

  • OpenAI-compatible backend support
  • Server-side file reading for large inputs
  • Stdio and shared Streamable HTTP modes
  • Automatic routing by input size
  • Specialized text, code, image, and diagnostic tools
  • Read-only backend and model status diagnostics

Tools11

What Local Delegate lets your agent do. Expand a tool for its parameters.

Verified live~3.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/27 checks healthy over the last 111d

What it can do

From the 11 tools this server returned when we ran it; 11 declare their own safety hints.

Read-only tools · 11
Network at startup2 connections
Files written at startup30

Observed 2026-10-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · local-delegate-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Local Delegate works

What local-delegate does

local-delegate exposes MCP tools for delegating routine work to a local language, code, or vision model. It connects to an OpenAI-compatible API, including llama-swap, Ollama, LM Studio, vLLM, or another compatible server. The package does not start a model backend by default; an accessible endpoint must already be available unless optional llama-swap autostart is configured.

For tools that accept path, local-delegate reads the file on the MCP server and returns only the requested result. This is useful for large documents, logs, diffs, and source files when the complete content is not needed by Claude.

How it works

The server can run as a stdio MCP process or as a shared daemon. The daemon exposes MCP at http://127.0.0.1:9393/mcp and a dashboard at http://127.0.0.1:9393/. Multiple compatible clients can share that daemon instead of starting separate MCP processes. The dashboard reports backend state, mounted models, delegation progress, resource usage, context tokens conserved, and recent activity.

Several tools choose between a mechanical model and a longer-context model based on input size. Long transformations such as translation can be split at Markdown headings and paragraph boundaries, with results returned in order. The generic delegation tool can also chunk inputs, but reduction tasks that require a single global result should disable chunking or use the specialized summarization tool.

Setup and configuration

With uv, the stdio configuration can run the package without a separate installation:

config.json
{
  "mcpServers": {
    "local-delegate": {
      "command": "uvx",
      "args": ["local-delegate-mcp"]
    }
  }
}

The package requires Python 3.11 or newer when installed in an existing environment. Configure LOCAL_DELEGATE_BASE_URL when the OpenAI-compatible endpoint is not at its default address of http://127.0.0.1:9292/v1. LOCAL_DELEGATE_AUTOSTART=0 leaves backend startup disabled, which is the default. LOCAL_DELEGATE_JSON_SCHEMA=auto makes structured extraction request schema-constrained JSON when the backend supports it, then retry in free-form mode when needed.

For multiple sessions, start uvx local-delegate-mcp serve and connect clients to the Streamable HTTP endpoint. The local-delegate install command can add integration files, hooks, skills, and delegation rules; --dry-run previews changes, and uninstall reverses them. Installation is designed to be idempotent and creates backups for edited files.

Tools and capabilities

  • local_summarize summarizes text or a server-side file, optionally prioritizing a focus and limiting word count.
  • local_classify returns exactly one label from a supplied list.
  • local_extract returns requested fields as a validated JSON object.
  • local_boilerplate generates code into an absolute target path and returns a short receipt.
  • local_delegate handles custom text-to-text tasks with selectable model, output format, and chunking behavior.
  • local_lint_summary groups important errors from lint, test, or CI output.
  • local_commit_msg drafts conventional or plain commit messages from a diff.
  • local_translate translates text or files while preserving formatting.
  • local_explain_code explains code from text or a server-side path.
  • local_describe_image performs image-to-text description, visible-text reading, or focused image questions; it does not create or edit images.
  • local_status reports local backend and model-catalog status without changing state.

Limitations and notes

Generated commit messages should be reviewed before use, and local-model explanations and transformations should be checked for correctness. local_boilerplate requires target and can overwrite an existing file only when explicitly requested. Codex may stop an MCP tool call after 60 seconds unless its configured timeout is raised; Claude Code can stop an HTTP call after five minutes without a response. A remote backend can be used through a local MCP process, preserving the client’s local file paths.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Local Delegate

local-delegate is an MCP server that connects Claude-compatible clients to local OpenAI-compatible LLM endpoints such as Ollama, LM Studio, vLLM, or llama-swap. Its main tools summarize, classify, extract, translate, explain code, generate boilerplate, summarize lint output, draft commit messages, describe images, delegate custom text tasks, and report backend status.

Install it through `uvx` by adding `uvx local-delegate-mcp` as a stdio MCP command. You can also run `uv tool install local-delegate-mcp`, then use `local-delegate install` to configure supported integration files, hooks, skills, and delegation rules.

local-delegate uses an OpenAI-compatible endpoint, defaulting to `http://127.0.0.1:9292/v1`. It can connect to llama-swap, Ollama, LM Studio, vLLM, or another server implementing the OpenAI API; it does not start a backend by default.

Yes. Pass a file `path` to supported tools so the MCP server reads it locally and sends back only the result. This applies to operations such as summarization, extraction, translation, lint summarization, commit-message drafting, and code explanation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLocal Delegate AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/local-delegate?style=directory)](https://allmcps.com/mcp/local-delegate)
HTML Embed
<a href="https://allmcps.com/mcp/local-delegate"><img src="https://allmcps.com/api/badge/local-delegate?style=directory" alt="Local Delegate on AllMCPs" /></a>