# Local Delegate

> Local Delegate is an MCP server for ai models and llm tooling. Sends mechanical text jobs to a local OpenAI-compatible model so Claude quota goes further. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, Windows, macOS, Linux
- **Repository:** https://github.com/zahirinatzuke/local-delegate
- **MCP Registry name:** io.github.ZahiriNatZuke/local-delegate
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add local-delegate --env LOCAL_DELEGATE_API_KEY='<LOCAL_DELEGATE_API_KEY>' -- uvx local-delegate-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "local-delegate": {
      "command": "uvx",
      "args": [
        "local-delegate-mcp"
      ],
      "env": {
        "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add local-delegate --env LOCAL_DELEGATE_API_KEY='<LOCAL_DELEGATE_API_KEY>' -- uvx local-delegate-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.local-delegate]
command = "uvx"
args = ["local-delegate-mcp"]
env = { LOCAL_DELEGATE_API_KEY = "<LOCAL_DELEGATE_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "local-delegate": {
      "command": "uvx",
      "args": [
        "local-delegate-mcp"
      ],
      "env": {
        "LOCAL_DELEGATE_API_KEY": "<LOCAL_DELEGATE_API_KEY>"
      }
    }
  }
}
```

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/local-delegate
