MCP server for Ollama — provides tools for text generation, chat, vision, embeddings, model management, and benchmarking against local or remote Ollama instances
ollama-mcp demonstrates solid tool design with consistent naming (verb_noun pattern), comprehensive descriptions (100-250 chars typical), and well-structured JSON schemas. All 16 tools have explicit descriptions and input schemas with typed parameters. However, 4 tools (embed, benchmark, compare_models, swap_model, copy_model, delete_model) lack visible descriptions in the provided source, and output schemas are not documented. Error handling includes recovery hints (modelNotFoundHint, emptyResponseHint) but lacks structured error categorization. Parameter descriptions are generally strong but some tools omit optional parameter constraints (e.g., temperature range 0.0-2.0 stated in description but not as schema bounds). No tool annotations (readOnlyHint, destructiveHint) despite clear risk classifications in metadata.
Multi-turn chat against an Ollama model. Pass an array of role/content messages; returns the assistant's next reply. Caller manages history (server is stateless). Use this instead of `generate` when you have prior conversation turns or need explicit role separation.
Run a one-shot text completion against an Ollama model. Use this for quick prompts when you don't need a multi-turn conversation. Returns the model's response as text. Blocks until complete (no streaming).
6 tools (embed, benchmark, compare_models, swap_model, copy_model, delete_model) lack visible descriptions and schemas in source code.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk classifications in metadata (READ_ONLY, WRITE, DESTRUCTIVE, REVERSIBLE). LLMs cannot infer safety properties without explicit hints.
Output schemas not documented. Tools return structured responses (e.g., generate returns text, list_models returns array of model objects) but LLMs cannot see the response schema to plan downstream calls or extract fields.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 53 | 2026-07-28+ | v2 |
List configured Ollama hosts. Use this when you need to know what host aliases are available before calling other tools.
List models installed on an Ollama host. Returns name, size, family, and quantization for each. Cheap call.
Total bytes occupied by all installed models on a host, plus a per-family breakdown. Useful for answering 'how much disk are my models using?' or 'do I have room to pull a 70B?' Cheaper than running list_models and summing manually.
Show detailed metadata for a model on an Ollama host: parameters, template, system prompt, quantization, family. License text is omitted by default (set include_license=true to include).
Download a model onto an Ollama host. WARNING: long-running — large models can take 5-15 minutes. This call blocks until the pull completes; some MCP clients may have request timeouts.
List models currently loaded in VRAM on an Ollama host. Returns each model's size_vram, context_length, expires_at — plus a vram_total_gb sum across all loaded models, and a friendly note when nothing's loaded.
Evict a model from VRAM without deleting it from disk. Useful when you need to swap models on a single-GPU host. Reports whether the model was actually loaded — calling unload on a cold model returns a 'was not loaded' message rather than false success. Implementation: calls /api/generate with keep_alive=0.
Run multimodal generation: pass an image and a prompt, get back a text response. Requires a vision-capable model (e.g. gemma4:26b, llama3.2-vision, qwen2.5-vl). Provide either image_path (server reads + encodes) or image_base64.
Numeric parameter constraints (temperature 0.0-2.0, max_tokens > 0) stated in descriptions but not enforced in JSON Schema (no minimum/maximum bounds). LLMs may pass invalid values; validation happens at runtime.
Error handling provides recovery hints (modelNotFoundHint, emptyResponseHint) but lacks structured error categorization (retryable vs user-fixable vs fatal). Agents cannot reliably decide whether to retry, ask user, or abort.