add-ollama-tool

Expose local Ollama models as MCP tools for NanoClaw agents.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Enables running local Ollama models inside the container agent by exposing an MCP server as tools, reducing cloud dependency and latency.

Core Features & Use Cases

  • Exposes ollama_list_models and ollama_generate as agent tools to query local models.
  • Enables fast, offline inference for summarization, translation, and general tasks using the host's Ollama instance.
  • Provides a straightforward setup path for local model experimentation within NanoClaw.

Quick Start

Enable Ollama integration and prompt the agent to call ollama_generate with a chosen model to answer a user task.

Frequently Asked Questions about add-ollama-tool

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

FAQPage Schema
How do I run local Ollama models inside a container agent?

To run local Ollama models inside a container agent, enable this MCP integration which exposes ollama_list_models and ollama_generate tools to query the host's Ollama instance for on-device inference.

Can I use a container agent for offline inference and reduce cloud dependency?

Yes, you can use a container agent for offline inference to reduce cloud dependency by routing queries through Ollama tools exposed via MCP, enabling fast, private summarization and translation tasks locally.

How do I connect a Docker container agent to a host Ollama instance?

You connect a Docker container agent to a host Ollama instance by overriding the OLLAMA_HOST environment variable, allowing the containerized agent to reach the host's local model serving endpoint.

Does the Ollama MCP integration support listing available local models?

Yes, the Ollama MCP integration supports listing available local models through the ollama_list_models tool, allowing the agent to query and select from models hosted on the Ollama instance.

What are the limitations of running local inference within NanoClaw?

Limitations of running local inference within NanoClaw include relying on the host Ollama instance's available models and hardware, requiring proper OLLAMA_HOST configuration for container connectivity.