claude-delegate-local-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., "@claude-delegate-local-mcpHave the local agent read src/ and summarize what each module does."
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.
claude-delegate-local-mcp
An MCP server that lets Claude Code hand work to a local model you host yourself.
Bulk, mechanical, read-heavy work — reading a subsystem, writing tests, mechanical refactors, first-pass review — costs cloud tokens even when the reasoning required is modest. This moves that class of work onto your own hardware, where it is effectively free, and keeps Claude for the parts that need it.
Status: early. Configuration, the model registry and the documentation tooling are in place and tested. The delegation tools themselves are not built yet. See STATUS.md for where things actually stand and PLAN.md for the route.
How it works
Two shapes of delegation, and the second is the interesting one:
One-shot — file contents are read server-side and inlined into a single prompt. The model answers; the bytes never enter Claude's context. Good for review, summary, explanation.
Agentic — the local model gets its own
read_file,write_fileandrun_bash, and iterates. It writes code, runs your test suite, reads the real failure, fixes it, and runs again — for as many turns as it needs, at zero cloud token cost — then hands back a result for Claude to review.
That second loop is why the shell exists, and why run_bash is confined by
bubblewrap in an empty-root sandbox with the
network off by default. If bubblewrap is unavailable the server refuses to run shell
commands rather than running them unconfined.
The server also captures real process exit codes itself and reports them separately from whatever the model claims in its answer. Models misreport command outcomes; the whole self-verification idea collapses without a ground truth.
Related MCP server: cctx
What it is not
Not a cloud router. One backend format ships — OpenAI-compatible. Anthropic-compatible endpoints are a planned addition behind an existing seam, not a current feature.
Not a way to run Claude Code against a different model. It delegates tasks; Claude Code stays Claude Code.
Not a sandbox for untrusted code. It confines a model you chose to run against a workspace you chose to expose.
Requirements
A local OpenAI-compatible endpoint (this was built against vLLM serving DeepSeek V4 Flash on two DGX-Spark-class machines, but nothing depends on that specific stack).
Python 3.11+.
Linux, or WSL2 on Windows —
bubblewrapis Linux-only and there is no cheap Windows equivalent, so the server runs there even when Claude Code does not.
Install
git clone https://github.com/ComputerSaysNull/claude-delegate-local-mcp
cd claude-delegate-local-mcp
cp .env.example .env # then set DELEGATE_WORKSPACE_ROOTS
cp models.toml.example models.toml # then set your endpoint
python -m venv .venv && .venv/bin/pip install -e ".[dev]"
python scripts/install_hooks.py # optional, gives the gate at commit time.env and models.toml are gitignored, deliberately: they name a host, and a hostname
identifies your machine as surely as an address does.
On Windows, with the server in WSL2
wsl --install -d Ubuntu-24.04Then inside Ubuntu — and verify rather than assume, because two of these fail silently:
sudo apt install -y bubblewrap python3 python3-venv git
bwrap --unshare-all --ro-bind /usr /usr --ro-bind /etc /etc --proc /proc \
--dev /dev --tmpfs /tmp --symlink usr/bin /bin --symlink usr/lib /lib \
--symlink usr/lib64 /lib64 -- /bin/echo ok # must print: ok
getent hosts YOUR-HEAD-NODE # must resolve in WSL, not just WindowsThe usr/lib64 symlink is not optional on x86-64: without it nothing dynamically linked
runs, and the error blames the executable rather than the missing loader.
Register with Claude Code
Native Linux:
{ "mcpServers": { "delegate-local": {
"command": "claude-delegate-local-mcp",
"timeout": 900000
} } }Windows, server in WSL2:
{ "mcpServers": { "delegate-local": {
"command": "wsl.exe",
"args": ["-d", "Ubuntu-24.04", "-e", "claude-delegate-local-mcp"],
"timeout": 900000
} } }timeout is milliseconds. The wall-clock default is generous, but a long delegation can
trip the separate 30-minute stdio idle timeout — the server emits progress notifications
each turn to keep that from firing. See
docs/TROUBLESHOOTING.md.
Documentation
How the pieces fit, and why | |
Every setting (generated) | |
The registry, and adding a model | |
Agent files, and the path policy | |
Symptom to cause to fix | |
Numbered decisions, newest first | |
What took real work to figure out | |
Setup and conventions |
No configuration default is stated anywhere but docs/CONFIGURATION.md, which is
generated from the code that defines it. If you find one repeated elsewhere, that is a
bug — CLAUDE.md explains the scheme.
Provenance and licence
MIT. A derivative work, not an independent implementation: substantial code was ported from fegone/claude-code-delegate-local and its mixicz fork, both MIT. The server-side context-prefetch idea comes from fjgbue/claude-delegator-deepseek-mcp. NOTICE records what came from where, feature by feature.
This server cannot be installed
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
- AlicenseNot gradedqualityDmaintenanceEnables Claude to delegate coding tasks to local Ollama models, reducing API token usage by up to 98.75% while leveraging local compute resources. Supports code generation, review, refactoring, and file analysis with Claude providing oversight and quality assurance.29422AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to reduce token usage by 70-90% using a local LLM for codebase indexing, tool output compression, and turn summarization.352MIT
- AlicenseBqualityCmaintenanceEnables coding agents like Claude Code and Codex to offload boilerplate generation, summarization, and other bounded text tasks to local or cheap cloud LLMs, keeping the frontier agent in charge of judgment and code edits.92MIT
- AlicenseAqualityCmaintenanceEnables Claude Code to offload routine code generation and text processing tasks to a local Ollama LLM, saving Cloud API tokens and costs with automatic model selection and security features.11614Apache 2.0
Related MCP Connectors
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
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/ComputerSaysNull/claude-delegate-local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server