~alter mcp-ollama

v0.2.1
io.github.true-alter/mcp-ollama Checked 16 hours ago Published 3 months ago

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

ParameterTypeDescription
prompt *stringThe prompt / task for the local model
max_tokensnumberMax tokens to generate (default: 2048)
modelstringOllama model to use (default: hermes3:8b)
systemstringSystem prompt to set context/role (optional)
temperaturenumberSampling 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.

ParameterTypeDescription
content *stringThe text to summarise
focusstringWhat to focus on in the summary (e.g., 'security issues', 'API changes', 'key decisions')
formatstringOutput format (default: bullets)
max_tokensnumberMax tokens to generate (default: 1024)
modelstringOllama 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.

ParameterTypeDescription
content *stringThe text to analyse
task *stringWhat to extract or analyse (e.g., 'extract all API endpoints mentioned', 'classify the sentiment', 'list all named entities')
modelstringOllama model to use (default: hermes3:8b)
output_formatstringDesired 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.

ParameterTypeDescription
context *stringThe context/input the draft should be based on (e.g., diff output, function code, change description)
task *stringWhat to draft (e.g., 'commit message for these changes', 'docstring for this function')
modelstringOllama model to use (default: hermes3:8b)
stylestringStyle 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).

ParameterTypeDescription
code *stringSource code to work with - a function, class, module, or diff
language *stringProgramming language (e.g., 'python', 'typescript')
task *stringWhat 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…
contextstringAdditional context: file path, project conventions, what the function is used for, etc.
modelstringOllama 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.

ParameterTypeDescription
diff *stringThe git diff output
task *stringWhat to generate: commit-message, pr-description, changelog (categorised entries), summary (what changed), impact (what might break)
modelstringOllama model to use (default: hermes3:8b)
stylestringStyle 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.

ParameterTypeDescription
input *stringThe input code or text to transform
transform *stringWhat 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…
languagestringTarget programming language
modelstringOllama 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').

ParameterTypeDescription
model *stringModel 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…

ParameterTypeDescription
images *arrayAbsolute path(s) to rendered PNG/JPG screenshot file(s) to look at
contextstringOne line: what this surface is meant to be
modestringReporting rubric (default: see)
modelstringVision model to use (default: qwen2.5vl:7b)