~alter mcp-ollama
v0.2.1Wraps local Ollama models so bulk generation runs on your own hardware, not a paid API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
local_generate
General-purpose local LLM generation. Delegates work to a local Ollama model to save tokens. Use this when the task is bulk text processing that doesn't require Opus-level reasoning: summarising documents, explaining code for docs, generating boilerplate, reformatting content, translating, etc. The local model (default: hermes3:8b) runs on the user's hardware - zero API cost, ~40 tok/s on a decent GPU.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The prompt / task for the local model |
max_tokens | number | Max tokens to generate (default: 2048) |
model | string | Ollama model to use (default: hermes3:8b) |
system | string | System prompt to set context/role (optional) |
temperature | number | Sampling temperature 0-2 (default: 0.3) |
local_summarize
Summarise long text locally. Use this instead of having Opus process large blocks of text when you only need a summary. Feed in file contents, docs, logs, or any bulk text and get a concise summary back. Particularly valuable for: large file contents, documentation, log output, meeting notes, long git diffs, error traces.
| Parameter | Type | Description |
|---|---|---|
content * | string | The text to summarise |
focus | string | What to focus on in the summary (e.g., 'security issues', 'API changes', 'key decisions') |
format | string | Output format (default: bullets) |
max_tokens | number | Max tokens to generate (default: 1024) |
model | string | Ollama model to use (default: hermes3:8b) |
local_analyze
Extract structured information from text locally. Use this for classification, entity extraction, tagging, pattern recognition, or any task that transforms unstructured text into structured output. Good for: categorising issues, extracting names/dates/amounts, tagging content, parsing semi-structured data, sentiment analysis.
| Parameter | Type | Description |
|---|---|---|
content * | string | The text to analyse |
task * | string | What to extract or analyse (e.g., 'extract all API endpoints mentioned', 'classify the sentiment', 'list all named entities') |
model | string | Ollama model to use (default: hermes3:8b) |
output_format | string | Desired output structure (e.g., 'JSON array', 'markdown table', 'key: value pairs') |
local_draft
Draft text locally - commit messages, PR descriptions, docstrings, changelog entries, documentation sections, or any formulaic text that follows a template or convention. Saves Opus tokens on boilerplate generation.
| Parameter | Type | Description |
|---|---|---|
context * | string | The context/input the draft should be based on (e.g., diff output, function code, change description) |
task * | string | What to draft (e.g., 'commit message for these changes', 'docstring for this function') |
model | string | Ollama model to use (default: hermes3:8b) |
style | string | Style guide or conventions to follow (e.g., 'imperative mood, max 72 chars subject line') |
local_code
Code-aware local generation. Claude reads source code with Read/Grep (free), then delegates the TEXT GENERATION to local - docstrings, test stubs, explanations, type annotations, inline comments, or review feedback. This is the primary tool for reducing API token usage on code tasks. Claude orchestrates (decides what code to read, what task to perform), but the actual generation happens locally at zero API cost. Accepts up to ~12K tokens of code context (16K model context minus overhead). For larger contexts, break into focused chunks (one function, one class).
| Parameter | Type | Description |
|---|---|---|
code * | string | Source code to work with - a function, class, module, or diff |
language * | string | Programming language (e.g., 'python', 'typescript') |
task * | string | What to generate: docstring (generate docstring), test (generate test stub), explain (explain the code), review (style/pattern review - NOT security), types (add type annotations), comments (add inlin… |
context | string | Additional context: file path, project conventions, what the function is used for, etc. |
model | string | Ollama model to use (default: hermes3:8b) |
local_diff
Analyse a git diff locally. Use this for generating commit messages, PR descriptions, changelog entries, or understanding what changed in a diff. Claude runs `git diff` (free), passes the output here for text generation. Particularly valuable for large diffs that would consume many API tokens if processed by Opus/Sonnet directly.
| Parameter | Type | Description |
|---|---|---|
diff * | string | The git diff output |
task * | string | What to generate: commit-message, pr-description, changelog (categorised entries), summary (what changed), impact (what might break) |
model | string | Ollama model to use (default: hermes3:8b) |
style | string | Style conventions (e.g., 'imperative mood, 72 char subject') |
local_transform
Perform mechanical code transformations locally. These are pattern-based transforms that don't require architectural understanding - the kind of work that burns API tokens for no good reason. Use this for: converting between formats, renaming patterns, migrating syntax, generating boilerplate from examples, etc.
| Parameter | Type | Description |
|---|---|---|
input * | string | The input code or text to transform |
transform * | string | What transformation to apply (e.g., 'convert class component to functional React component', 'convert these SQL queries to SQLAlchemy ORM', 'rename all instances of oldName to newName and update refer… |
language | string | Target programming language |
model | string | Ollama model to use (default: hermes3:8b) |
local_models
List all models available in the local Ollama instance. Use this to check what models are loaded and available for delegation.
local_pull
Pull/download a model into Ollama from the registry, or import a local GGUF file. Use this to make additional models available for delegation. For GGUF files, create an Ollama Modelfile first, then use 'ollama create'. This tool handles registry pulls (e.g., 'qwen2.5:14b', 'deepseek-r1:8b').
| Parameter | Type | Description |
|---|---|---|
model * | string | Model to pull (e.g., 'qwen2.5:14b', 'mistral-nemo', 'deepseek-r1:8b') |
local_vision
Have a local vision model SEE a rendered image (screenshot of a UI) and report what is literally on screen - for zero API cost. local_analyze is TEXT-ONLY; this is the multimodal path. It REPORTS (is the main content populated or blank/error, what regions exist, any illegible/clipped text, what the eye lands on first). It does NOT rank severity, judge on-brand, or greenlight a change - a local vision model reads pixels well but ranks badly, so keep the judgment on the calling model. Modes: 'see' (full structural report), 'emptystate' (populated-vs-degraded data check), 'legibility' (readabil…
| Parameter | Type | Description |
|---|---|---|
images * | array | Absolute path(s) to rendered PNG/JPG screenshot file(s) to look at |
context | string | One line: what this surface is meant to be |
mode | string | Reporting rubric (default: see) |
model | string | Vision model to use (default: qwen2.5vl:7b) |