add-ollama-tool

Expose local Ollama models to container agents via MCP tools.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Expose local Ollama models to the container agent via an MCP server to enable on-host, private inference.

Core Features & Use Cases

  • Exposes Ollama MCP tools: ollama_list_models and ollama_generate to the agent runtime.
  • Enables secure, local model inference from within container agents, with host isolation and simple host discovery.
  • Use case: run summarization and translation tasks locally without sending data to external servers.

Quick Start

Apply this skill to enable Ollama MCP integration in NanoClaw.

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 to container agents for private inference?

To expose local Ollama models to container agents, you can use a stdio MCP server integration. This enables on-host, private inference for tasks like summarization and translation without sending data to external servers.

Can I run local model summarization tasks inside isolated containers using MCP?

Yes, you can run local model summarization tasks inside isolated containers using MCP. This setup provides host isolation and simple host discovery while keeping data private during on-host inference.

What MCP tools are available for integrating Ollama with agent swarms?

The available MCP tools for integrating Ollama with agent swarms are ollama_list_models and ollama_generate. These tools allow agents to discover available local models and execute inference tasks directly.

Do I need to configure OLLAMA_HOST to use Ollama MCP tools in container agents?

Yes, you need to configure OLLAMA_HOST when using Ollama MCP tools in container agents. The stdio MCP server uses this configurable host setting to enable simple host discovery and secure local model inference.

Does this approach support code reasoning tasks without sending data to external servers?

Yes, this approach supports code reasoning tasks without sending data to external servers. By exposing Ollama models via an MCP server, container agents can perform fast, private in-host model tasks securely.

What are the limitations of using local Ollama models for agent inference in containers?

Using local Ollama models for agent inference in containers requires on-host availability and proper OLLAMA_HOST configuration. Performance depends on local hardware resources, and inference is limited to the models installed locally.