add-ollama-tool

Expose local Ollama models as tools via an MCP server.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/stevengonsalvez/nanoclaw-standalone --skill add-ollama-tool-stevengonsalvez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-ollama-tool
Source: https://github.com/stevengonsalvez/nanoclaw-standalone/tree/main/.claude/skills/add-ollama-tool
Command: npx skills add https://github.com/stevengonsalvez/nanoclaw-standalone --skill add-ollama-tool-stevengonsalvez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables a container-based agent to access local Ollama models via an MCP server, avoiding remote dependencies and preserving isolation.

Core Features & Use Cases

  • Core tools (always available):
    • ollama_list_models — list installed Ollama models with name, size, and family
    • ollama_generate — send a prompt to a specified model and return the response
  • Management tools (opt-in via OLLAMA_ADMIN_TOOLS=true):
    • ollama_pull_model — pull (download) a model from the Ollama registry
    • ollama_delete_model — delete a locally installed model to free disk space
    • ollama_show_model — show model details: modelfile, parameters, and architecture info
    • ollama_list_running — list models currently loaded in memory with memory usage and processor type
  • Use case: Run local in-container inference with fast turnaround for chat tasks or embedded assistants.

Quick Start

Enable Ollama MCP integration to expose local models for in-container inference.

Frequently Asked Questions about add-ollama-tool

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose local Ollama models as tools for a container agent?

Exposing local Ollama models to a container agent requires an Ollama installation on the host, a configured MCP environment, and optionally setting OLLAMA_ADMIN_TOOLS and OLLAMA_HOST to enable administrative management functions.

Can I manage the local Ollama model library from inside a container agent?

Yes, you can manage the Ollama model library from a container agent by enabling OLLAMA_ADMIN_TOOLS, which exposes functions to pull, delete, show details, and list running models with memory usage metrics.

What's the best way to run local in-container inference without remote dependencies?

Running local in-container inference without remote dependencies is best achieved through an Ollama MCP integration, which provides fast turnaround for chat tasks or embedded assistants by keeping everything local.

Does an Ollama MCP server require administrative tools enabled to generate responses?

An Ollama MCP server does not require administrative tools enabled to generate responses; the core tools for listing installed models and generating prompts are always available without setting OLLAMA_ADMIN_TOOLS.

Why use local Ollama models instead of remote API inference for a container agent?

Using local Ollama models instead of remote API inference for a container agent avoids remote dependencies and preserves isolation, ensuring fast turnaround for chat tasks or embedded assistants without external network calls.