ollama-fleet-mcp
Provides tools for interacting with local Ollama instances across a fleet of hosts, enabling model listing, prompt generation, fleet health monitoring, multi-model comparison, smart routing to loaded models, and model pulling.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ollama-fleet-mcp check fleet health across all hosts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ollama-fleet-mcp
MCP server that exposes the local Ollama fleet (mac-studio, corsair, alien18) as tools for Claude Code.
Rewritten 2026-08-08 — the original was lost with the X10 Pro_A SSD; no backup or GitHub remote existed. This is a fresh implementation covering the same purpose (fleet-aware Ollama routing/inspection from inside Claude Code), not a recovery of the original code.
Tools
list_models(host=None)— installed models per host, or all hosts if omitted.generate(host, model, prompt, timeout_sec=120)— send a prompt to a specific host+model, return the response.fleet_health()— reachability, latency, and model count for every host.compare_models(prompt, targets)— send the same prompt to multiple{host, model}pairs in parallel, return responses side by side.smart_generate(model, prompt, timeout_sec=120)— routes to whichever host already hasmodelloaded in memory (checks/api/ps), falling back to any host that has it installed. Avoids cold-load latency.pull_model(host, model, timeout_sec=900)— pull/verify a model on a specific host.
Related MCP server: Ollama MCP Server
Hosts
Configured in hosts.json (Tailscale IPs):
{
"mac-studio": "http://100.68.94.14:11434",
"corsair": "http://100.94.117.48:11434",
"alien18": "http://100.87.2.47:11434"
}mac mini is intentionally excluded — its local Ollama is loopback-only, used internally by ollaroute/ollafifo/ollasecret, not a fleet compute node.
Run
uv run python main.pyRegister with Claude Code
claude mcp add ollama-fleet -s user -- uv run --directory ~/ollama-fleet-mcp python main.py-s user registers it at user scope, so it's available in every project, not just when your cwd happens to match wherever it was registered from.
Available Tools
6 toolscompare_modelsA
Send the same prompt to multiple host/model pairs in parallel and return responses side by side.
Args:
prompt: the prompt text to send to every target.
targets: list of {"host": ..., "model": ...} dicts, e.g.
[{"host": "corsair", "model": "qwen3:32b"}, {"host": "mac-studio", "model": "qwen3.6:27b-coding-mxfp8"}]
Inputs: prompt (required), targets (required).
fleet_healthA
Check reachability and model count for every host in the fleet.
Inputs: no named parameters.
generateA
Send a prompt to a specific model on a specific fleet host and return its response.
Args:
host: fleet host name (e.g. "mac-studio", "corsair", "alien18").
model: model name as reported by list_models (e.g. "qwen3:32b").
prompt: the prompt text to send.
timeout_sec: max seconds to wait for a response (default 120).
Inputs: host (required), model (required), prompt (required), timeout_sec.
list_modelsA
List installed Ollama models per fleet host.
Args:
host: optional host name (e.g. "corsair"). If omitted, lists all fleet hosts.
Inputs: host.
pull_modelA
Pull (download/verify) a model onto a specific fleet host.
Args:
host: fleet host name.
model: model name to pull (e.g. "qwen3:32b").
timeout_sec: max seconds to wait — large models can take a while (default 900).
Inputs: host (required), model (required), timeout_sec.
smart_generateA
Generate a response for model, routed to whichever fleet host already has it loaded
in memory (skips cold-load latency). Falls back to any host that has it installed but not
loaded, and errors if no host has the model at all.
Args:
model: model name (e.g. "qwen3:32b").
prompt: the prompt text to send.
timeout_sec: max seconds to wait for the generate call (default 120).
Inputs: model (required), prompt (required), timeout_sec.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have clearly distinct purposes: list_models for inventory, fleet_health for status, pull_model for downloading, compare_models for side-by-side comparison. However, generate and smart_generate both perform text generation and differ only in routing logic (explicit host vs auto-route), which could cause misselection.
Naming conventions are mixed: list_models and pull_model use verb_noun, generate is a bare verb, fleet_health is a noun phrase, smart_generate is adjective_verb. The names are readable but do not follow a single consistent pattern.
Six tools is a well-scoped set for an Ollama fleet management server, covering the essential operations of listing models, generating responses, checking health, comparing models, and pulling models without unnecessary bloat.
The tool surface covers the core workflows: inventory (list_models), generation (generate, smart_generate), comparison (compare_models), health monitoring (fleet_health), and model acquisition (pull_model). Missing operations like delete_model or model detail inspection are minor gaps that agents can work around.
Related MCP Connectors
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceExposes local Ollama as an MCP server so Claude can delegate drafting, summarization, translation, code review, error explanation, model listing, health checks, and file reading to local models via stdio or HTTP.1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceExposes the complete Ollama SDK as MCP tools so compatible AI assistants can manage models, generate text, chat, create embeddings, and use cloud web search/fetch. Supports local, cloud, and hybrid deployments for integrating local LLMs with applications like Claude Desktop and Cline.817 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceExposes the complete Ollama SDK as MCP tools, enabling MCP-compatible clients such as Claude Desktop and Cline to list, pull, create, and delete models, run chat and text generation, produce embeddings, and perform web search and fetch against local or cloud Ollama instances. It supports hybrid local-plus-cloud configurations with API-key authentication, automatic retries, and type-safe validation.817 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to manage, run, and interact with local or cloud LLM models through exposed tools for listing, pulling, generating, chatting, embeddings, and web search/fetch. Supports Claude Desktop, Cline, and hybrid local/cloud setups.817 npmAGPL 3.0