Local Offload
README.md
# Local Offload
Let your AI assistant hand work to local models. Local Offload is an MCP server that lets Claude (or another MCP client) hand work to local [Ollama](https://ollama.com) models and get back only a
short result. The server reads the files itself, so bulk material never uses your assistant's context, and it stays on your
computer unless you point the server at another machine.
| Tool | What it does |
|---|---|
| `ask_local` | One task over files or text: summarize, classify, extract, draft, review code |
| `chat_local` | A saved back-and-forth conversation with a local model |
| `polish_text` | Rewrites or reviews an email, ticket, chat message or other text. Rewrites warn about dropped or invented numbers, links and addresses |
| `list_local_models` | The models installed in Ollama and the profiles that use them |
It never sends email or runs code. It writes a file only when you give `out_path`, and only inside allowed folders; an existing
file is not replaced unless you ask, and then a backup is kept. **What a local model writes is a draft: check it.**
## You need
- Python 3.11 or later
- Ollama running, with the models you want. The defaults are `gemma3:27b` (writing) and `qwen2.5-coder:32b` (coding, review);
they need a large graphics card. Use smaller ones by overriding the profiles in `config.json`.
## Set up
```
pip install -r requirements.txt
ollama pull gemma3:27b
python core.py --selftest
claude mcp add local-offload -- python /full/path/to/server.py
```
`config.json` beside the scripts is optional:
```json
{
"profiles": { "writing": { "model": "llama3.1:8b" } },
"output_roots": ["/full/path/you/allow"]
}
```
Environment variables: `LOCALLLM_OLLAMA_URL` (default `http://localhost:11434`), `LOCALLLM_ALLOWED_HOSTS` (other hosts a call may
use), `LOCALLLM_OUTPUT_ROOTS` (semicolon separated).
## What to know
- Files you name in `paths` are read with your user account's rights and sent to the Ollama server in use.
- `chat_local` keeps each conversation as plain text in `sessions/` beside the scripts.
- Tried on Windows. Other systems are untested.
MIT license.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues