offload
Allows an AI coding agent to send prompts to a local Ollama instance and list available local models, enabling delegation of coding sub-tasks to models running on the user's GPU with optional system prompt and model override.
Click on "Deploy 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., "@offload ask the local model to write a Python function that parses CSV rows"
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.
offload
A tiny MCP server that lets an AI coding agent — Claude Code, or anything else that speaks MCP — hand off a sub-task to a local model running in Ollama, instead of spending cloud tokens on it.
The agent stays in charge: it decides what to delegate, and it reviews what comes back. This just gives it a tool to reach a model on your own GPU.
Why
Cloud models are good at planning, review, and anything that needs real judgment. A lot of day-to-day coding work isn't that — boilerplate, straightforward refactors, a helper function you could describe in one sentence. Running that through a frontier model is paying premium prices for work a 7B model on your own graphics card can do just as well.
offload doesn't replace your agent. It gives it a second pair of hands.
Related MCP server: local-worker-mcp
How it works
your coding agent (e.g. Claude Code)
│ MCP tool call
▼
offload (this repo)
│ HTTP
▼
Ollama, on your machine
│
▼
a local model, on your GPUTwo tools are exposed:
ask_local_model— sends a prompt (with an optional system prompt and model override) to your local Ollama instance and returns the response.list_local_models— lists what you've actually pulled, so the agent can check before assuming a model is available.
That's the whole surface area. No orchestration, no agent framework, no opinion about when to delegate — that decision stays with whatever's calling it.
Setup
Install Ollama and pull a model that fits your GPU:
ollama pull qwen2.5-coder:7b-instructClone this repo and install dependencies:
git clone https://github.com/ToxinNozaki/offload.git cd offload npm installPoint your MCP client at it. For Claude Code, add to a project's
.mcp.json(or your user-level MCP config):{ "mcpServers": { "offload": { "command": "node", "args": ["/absolute/path/to/offload/index.js"] } } }
Configuration
Both are optional — sane defaults are built in.
Env var | Default | What it does |
|
| Where Ollama's API lives |
|
| Model used when a call doesn't specify one |
Picking a model
Whatever fits in your VRAM and runs fully GPU-offloaded — mixing in CPU
layers is where things get slow. qwen2.5-coder:7b-instruct is a solid
default for an 8GB card; scale up if you have the headroom, or try
deepseek-coder-v2, llama3.1, or mistral depending on the task.
What this is not
Not a replacement for your main coding agent — it's a tool that agent calls, nothing more.
Not an orchestration framework. If you want multi-agent pipelines, review gates, or task queues, build that on top — this is deliberately just the wire between an agent and a local model.
Not tied to Claude Code specifically. Anything that speaks MCP over stdio can use it.
Contributing
Issues and PRs welcome. It's a small, single-purpose tool on purpose — scope-creep PRs (built-in orchestration, a GUI, etc.) are probably better as a separate project that depends on this one.
License
MIT — see LICENSE.
Available Tools
2 toolsask_local_modelA
Delegate a sub-task to the local Ollama model running on this machine. Use for well-specified, boilerplate-ish work (scaffolding, repetitive edits, straightforward generation) to save tokens/time, then review the result yourself before accepting it.
Inputs: prompt (required), model, system.
list_local_modelsA
List the Ollama models currently pulled on this machine.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one invokes the local model with a task, the other enumerates available models. An agent cannot reasonably confuse listing models with delegating work, and the descriptions reinforce the distinction.
Both names follow a consistent verb_noun pattern (ask_local_model, list_local_models) with a shared 'local_model' object. No mixing of conventions or casing styles.
Two tools is on the thin side for a delegation/offload server, even though each is meaningful. A slightly richer surface (status, cancel, or model pull) would make the count feel better scoped.
The core loop of 'see which models exist, then delegate a task' is covered, but there is no way to pull/download a missing model, cancel a long-running request, or check job status. These are notable gaps an agent could hit in practice.
Maintenance
Related MCP Connectors
Ask other AI models and generate images, speech, music and video from your coding agent.
LLM Orchestration Agent (Mcp)
Stateless agentic tools over MCP: concept extraction, long-context, knowledge graph, planning.
Discover available AI models and delegate analysis or code review from your existing agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for delegating coding tasks to local Ollama models. Supports listing models and executing tasks with file writing capabilities.-
- AlicenseNot gradedqualityCmaintenanceEnables any MCP client to delegate a scoped task to a local Ollama model that runs its own tool-calling loop for file operations and web search, with an allow-listed folder security model.Apache 2.0
- AlicenseNot gradedqualityAmaintenanceExposes the complete Ollama SDK as MCP tools, enabling MCP-compatible applications to manage and run local or cloud models, generate text, chat, create embeddings, and use web search/fetch.817 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceExposes the complete Ollama SDK as MCP tools, enabling MCP-compatible applications to manage local and cloud models, chat and generate text, create embeddings, and perform web search and fetch.817 npmAGPL 3.0