Local Delegate
Sends mechanical text jobs to a local OpenAI-compatible model so Claude quota goes further
Local Delegate is an MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, Self-hosted, Windows
- Runs
- Locally
- Version
- 0.57.4
- Listing updated
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add local-delegate --env LOCAL_DELEGATE_API_KEY='<LOCAL_DELEGATE_API_KEY>' -- uvx local-delegate-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"local-delegate": {
"command": "uvx",
"args": [
"local-delegate-mcp"
],
"env": {
"LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"local-delegate": {
"command": "uvx",
"args": [
"local-delegate-mcp"
],
"env": {
"LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"local-delegate": {
"command": "uvx",
"args": [
"local-delegate-mcp"
],
"env": {
"LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"local-delegate": {
"type": "stdio",
"command": "uvx",
"args": [
"local-delegate-mcp"
],
"env": {
"LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add local-delegate --env LOCAL_DELEGATE_API_KEY='<LOCAL_DELEGATE_API_KEY>' -- uvx local-delegate-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.local-delegate]
command = "uvx"
args = ["local-delegate-mcp"]
env = { LOCAL_DELEGATE_API_KEY = "<LOCAL_DELEGATE_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"local-delegate": {
"command": "uvx",
"args": [
"local-delegate-mcp"
],
"env": {
"LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }Or run: gemini mcp add -s user -e LOCAL_DELEGATE_API_KEY='<LOCAL_DELEGATE_API_KEY>' local-delegate uvx -- local-delegate-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "local-delegate": { "command": "uvx", "args": [ "local-delegate-mcp" ], "env": { "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
LOCAL_DELEGATE_BASE_URLOpenAI-compatible endpoint (llama-swap, Ollama, LM Studio, vLLM). Default http://127.0.0.1:9292/v1LOCAL_DELEGATE_API_KEYBearer token for the endpoint, if it requires one.
About Local Delegate
Summarising a huge log or extracting fields is routine work that eats subscription quota. This server exposes such tasks as MCP tools backed by a local model, and the key trick is passing a path instead of text: the file is read on the server side, so the large content never enters Claude's context and only a short result returns.
It is a generic client for any OpenAI-compatible endpoint, with llama-swap, Ollama, LM Studio and vLLM named. It runs over stdio, or as a shared HTTP daemon at http://127.0.0.1:9393/mcp that several clients such as Codex, Claude Code and opencode can use at once, with an embedded dashboard showing backend state, RAM and VRAM, tokens saved and recent activity. With llama-swap the daemon can queue delegations whose models would evict each other.
A local-delegate install command writes the MCP entry, hooks, a skill and a delegation rule into your global CLAUDE.md or AGENTS.md, with a dry-run option, backups and an uninstall. The README is mostly Spanish; it notes Codex cuts MCP tool calls at 60 seconds and Claude Code after five idle minutes, both adjustable. It needs Python 3.11 or newer.
What it does
- Server-side file reading
- Pass a path so large files stay out of the model context.
- Any OpenAI-compatible backend
- Works with llama-swap, Ollama, LM Studio and vLLM.
- Shared daemon
- One HTTP process serves several MCP clients.
- Live dashboard
- Shows backend, memory use, tokens saved and recent activity.
- Turn-taking for models
- Queues delegations that would evict each other under llama-swap.
- Reversible installer
- Dry-run, backups and uninstall for the config it edits.
Good for
- Summarise a very large log without spending Claude quota
- Extract fields or classify text on a local GPU
- Generate boilerplate through a local model from Claude Code
- Share one local model backend across Codex and Claude Code sessions
Local Delegate FAQ
What does Local Delegate need?
Python 3.11 or newer, run easily with `uvx local-delegate-mcp`, and a local OpenAI-compatible endpoint.
Which backends are supported?
The README names llama-swap, Ollama, LM Studio and vLLM.
How do I share Local Delegate across clients?
Run `uvx local-delegate-mcp serve`, then point clients to http://127.0.0.1:9393/mcp.
Are there client timeouts to know about?
Codex cuts tool calls at 60 seconds and Claude Code after five minutes without response; both can be raised.
How do I add Local Delegate to Claude Code?
Run this command in your terminal: claude mcp add local-delegate --env LOCAL_DELEGATE_API_KEY='<LOCAL_DELEGATE_API_KEY>' -- uvx local-delegate-mcp
What are the best alternatives to Local Delegate?
The closest alternatives to Local Delegate are REA, Codebase Memory, Serena MCP: the IDE for your agent, XERJ and Context7.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.



