add-ollama-tool

Expose local Ollama models as MCP tools for container agents.

3|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/OfirGavish/NinjaClaw-Nano --skill add-ollama-tool-ofirgavish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-ollama-tool
Source: https://github.com/OfirGavish/NinjaClaw-Nano/tree/main/.copilot/skills/add-ollama-tool
Command: npx skills add https://github.com/OfirGavish/NinjaClaw-Nano --skill add-ollama-tool-ofirgavish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides an MCP server that exposes local Ollama models as tools for the container agent, enabling on-device model inference and reducing reliance on remote endpoints.

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

Quick Start

Install and enable Ollama MCP integration by applying the skill and restarting the agent to expose local models as tools.

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 agent tools?

This skill provides an MCP server that exposes local Ollama models as agent tools for container-based environments. It enables on-device model inference, allowing Docker agents to generate text without relying on remote endpoints.

Can I manage Ollama models and memory from inside a container agent?

Yes, you can manage Ollama models and memory from a container agent by enabling OLLAMA_ADMIN_TOOLS. This opt-in setting unlocks management tools to pull, delete, and inspect models, as well as list running models and memory usage.

Do I need Ollama installed on the host to use local models with a container agent?

Yes, you need Ollama installed and running on the host machine to use local models with a container agent. The container agent communicates with the host's Ollama instance to perform on-device inference and optional model management.

What Ollama model management features are available to MCP agents?

Available MCP agent features include listing installed models, generating responses, and optionally pulling or deleting models. Enabling admin tools also allows agents to view model details, list running models, and check memory usage.

Why use local Ollama models instead of remote endpoints for AI agent inference?

Using local Ollama models instead of remote endpoints for AI agent inference ensures on-device processing within container environments. This approach reduces reliance on external APIs, keeping model execution and data handling entirely local.