add-ollama-tool

Installation
SKILL.md

Add Ollama Integration

This skill adds a stdio-based MCP server that exposes local Ollama models as tools for the container agent. Claude remains the orchestrator but can offload work to local models served by the Ollama daemon on the host, and can optionally manage the model library directly. Ollama runs locally and is keyless — there are no credentials to thread; the only configuration is the daemon's base URL.

Core tools (always available):

  • ollama_list_models — list installed models with name, size, and family (GET /api/tags)
  • ollama_generate — send a prompt to a specified model and return the response (POST /api/generate)

Management tools (opt-in via OLLAMA_ADMIN_TOOLS=true):

  • ollama_pull_model — pull (download) a model from the Ollama registry (POST /api/pull)
  • ollama_delete_model — delete a locally installed model to free disk space (DELETE /api/delete)
  • ollama_show_model — show model details: modelfile, parameters, and architecture info (POST /api/show)
  • ollama_list_running — list models currently loaded in memory with memory usage and processor type (GET /api/ps)

The skill ships the MCP server source (and its tests) in this folder and copies them into the agent-runner tree at install time, then registers the server in index.ts and forwards host env vars in container-runner.ts. Registering the server is enough to expose its tools — the agent's allow-pattern (mcp__ollama__*) is derived from the registered server name.

Phase 1: Pre-flight

Check if already applied

Installs
27
GitHub Stars
30.7K
First Seen
Mar 12, 2026
add-ollama-tool — nanocoai/nanoclaw