add-ollama-tool

Expose local Ollama models as tools via an MCP server.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill enables a stdio-based MCP server inside the agent container to expose local Ollama models as tools, allowing the container-backed agent to call local models and optionally manage the model library.

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, ollama_delete_model, ollama_show_model, ollama_list_running.
  • Use Case: The agent can perform local inference with Ollama models for fast, private code tasks without sending data to external services.

Quick Start

Enable the Ollama MCP server inside the container and optionally enable management tools, then restart the service.

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?

You can expose local Ollama models as tools by running a stdio-based MCP server inside the agent container, enabling the container-backed agent to call local models for low-latency inference.

Can I manage the Ollama model library directly from an agent container?

Yes, you can manage the model library by setting the OLLAMA_ADMIN_TOOLS flag to true, which enables opt-in management tools like ollama_pull_model and ollama_delete_model inside the agent.

What do I need to run local inference with Ollama models in a containerized environment?

Running local inference requires an Ollama runtime on the host, MCP integration in the agent runner, and a container environment to host the stdio-based MCP server.

What is the best way to perform private code tasks without sending data to external services?

Using a container agent with an exposed local Ollama model allows you to perform fast, private code tasks locally via the ollama_generate tool without sending data to external services.

How does the MCP server list installed Ollama models?

The MCP server uses the ollama_list_models tool to list installed Ollama models, returning the model name, size, and family information to the calling agent.

Are there limitations when using local Ollama models with container agents?

Local Ollama model usage depends on a host Ollama runtime and MCP integration, meaning functionality is limited if the container cannot access the host runtime or if management tools are not explicitly enabled.