# Michael-WhiteCapData/ollama-handoff

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/Michael-WhiteCapData/ollama-handoff  
**GitHub Stars:** 3  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/michael-whitecapdata-ollama-handoff

## Description
MCP server that offloads cheap work from your cloud LLM agent to a local Ollama model — summaries, drafts, extractions, first-pass reviews — at zero cloud cost.

## Tools
Capabilities this server exposes over MCP:

- **ask_local** — A single prompt with an optional system instruction
- **chat_local** — A conversation with explicit message history
- **summarize_local** — Summaries of supplied text, optionally focused on a topic
- **code_review_local** — Initial review of supplied code or a diff
- **draft_commit_message_local** — A commit message from a supplied diff
- **extract_local** — Extracting items such as URLs, names, or error codes
- **list_models** — Discovering installed Ollama models
- **server_info** — Inspecting effective server configuration

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "ollama-handoff": {
    "command": "uvx",
    "args": ["ollama-handoff@0.1.3"],
    "env": {
      "OLLAMA_URL": "",
      "OLLAMA_DEFAULT_MODEL": "",
      "OLLAMA_NUM_CTX": "",
      "OLLAMA_KEEP_ALIVE": "",
      "OLLAMA_TIMEOUT_S": ""
    }
  }
}
```

**Requires environment variables:** `OLLAMA_URL`, `OLLAMA_DEFAULT_MODEL`, `OLLAMA_NUM_CTX`, `OLLAMA_KEEP_ALIVE`, `OLLAMA_TIMEOUT_S` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Michael-WhiteCapData/ollama-handoff MCP server does

Michael-WhiteCapData/ollama-handoff MCP server gives an MCP client access to a model running through Ollama. It is intended for routine text operations such as summarizing logs, extracting structured items, drafting commit messages, and performing an initial review of code or diffs.

The server does not replace the calling agent’s planning or review. Generated summaries and reviews require checking, and local inference does not stop the MCP client from using its own cloud provider for prompts or results.

## How it works

The server runs over MCP stdio and sends tool requests to the configured Ollama endpoint. Tool inputs contain text, prompts, message histories, or diffs. The server does not open files, stage changes, or create commits; an agent must read the relevant content and pass it to the selected tool.

Eight tools are available: `ask_local` handles one prompt with an optional system instruction, while `chat_local` accepts an explicit conversation history. `summarize_local` can focus on a topic, `code_review_local` reviews code or a diff, and `draft_commit_message_local` produces a commit message from a diff. `extract_local` handles requested items such as URLs, names, or error codes. `list_models` checks installed Ollama models, and `server_info` reports effective configuration without contacting Ollama.

## Setup and configuration

Michael-WhiteCapData/ollama-handoff MCP server requires Python 3.11 or newer, Ollama, and a client that can register an MCP stdio server. Install or otherwise run Ollama, download a model with `ollama pull`, and keep the Ollama service available. The package can be launched with `uvx`, or installed into a virtual environment with pip.

The default Ollama endpoint is `http://localhost:11434`. Unless overridden, calls use `qwen2.5-coder:14b`, which must be installed separately. Configuration variables are:

- `OLLAMA_URL`: Ollama server address.
- `OLLAMA_DEFAULT_MODEL`: model used when a call does not specify one.
- `OLLAMA_NUM_CTX`: context window, defaulting to `32768` tokens.
- `OLLAMA_KEEP_ALIVE`: model retention period, defaulting to `30m`.
- `OLLAMA_TIMEOUT_S`: generation and chat timeout, defaulting to 600 seconds.

A smaller model or context window may suit machines with limited memory. The included Docker setup keeps stdin open and can point to a host Ollama service.

## Tools and capabilities

The tool set covers general prompting, multi-turn conversations, focused summaries, first-pass code analysis, commit-message drafting, and text extraction. Model discovery helps confirm that the requested model is installed. Configuration inspection helps diagnose the server’s effective settings, while a successful summary call also verifies generation.

## Limitations and notes

Results vary with the chosen Ollama model and hardware. Initial model loading can increase response time, and requests may time out if the model or context is too large. A remote `OLLAMA_URL` sends submitted text to that endpoint rather than keeping it on the same machine. The server is an MCP service waiting for client requests, not an interactive terminal chat program. Version 0.1.3 uses the MCP 1 `FastMCP` API; version 0.1.2 requires an MCP package constraint below version 2.

_Full upstream README: https://allmcps.com/mcp/michael-whitecapdata-ollama-handoff/readme_

