add-ollama-tool
Skill by nanocoai
Adds an Ollama MCP server so the container agent can call local models and optionally manage the Ollama model library. Built for NanoClaw users who run Ollama on their host.
Install add-ollama-tool
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.claude/skills && cp -r /tmp/nanoclaw/.claude/skills/add-ollama-tool ~/.claude/skills/add-ollama-toolRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/nanoclaw/.claude/skills/add-ollama-tool ~/.gemini/antigravity-cli/skills/add-ollama-toolAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill adds a stdio-based MCP server that exposes local Ollama models as tools for the container agent in NanoClaw. Claude stays the orchestrator and can offload work to models served by the Ollama daemon on the host. Two core tools are always available: listing installed models and generating a response from a chosen model.
Library management is opt-in through the OLLAMA_ADMIN_TOOLS environment variable. When enabled, the agent can pull, delete, inspect and list running models. Ollama is local and keyless, so the only configuration is the daemon base URL. It suits NanoClaw users who want local model inference from their agent.
Written from the project's SKILL.md and checked against it.
What it can do
- ollama_list_modelsLists installed models with name, size, and family.
- ollama_generateSends a prompt to a specified model and returns the response.
- ollama_pull_modelPulls (downloads) a model from the Ollama registry. Requires OLLAMA_ADMIN_TOOLS=true.
- ollama_delete_modelDeletes a locally installed model to free disk space. Requires OLLAMA_ADMIN_TOOLS=true.
- ollama_show_modelShows model details such as modelfile, parameters, and architecture info. Requires OLLAMA_ADMIN_TOOLS=true.
- ollama_list_runningLists models currently loaded in memory with memory usage and processor type. Requires OLLAMA_ADMIN_TOOLS=true.
What you need
- Ollama installed with its daemon running on the host
- At least one Ollama model pulled
- Docker, for the NanoClaw container build
- A NanoClaw project to install into
Try asking
- use ollama to tell me the capital of France
- pull the gemma3:1b model
- which ollama models are currently loaded in memory?
Good to know
- Management tools are only exposed when OLLAMA_ADMIN_TOOLS=true is set.
- ollama_pull_model uses stream: false and blocks until the pull completes, so large models can take several minutes.
- The first response from a model can be slower while Ollama loads it into memory.
- The MCP server's request behavior is not covered by the skill's automated tests and must be checked manually.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-ollama-tool/SKILL.md, .claude/skills/add-ollama-tool/ollama-env.ts, .claude/skills/add-ollama-tool/ollama-mcp-stdio.ts, .claude/skills/add-ollama-tool/ollama-registration.test.ts, .claude/skills/add-ollama-tool/ollama-wiring.test.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
REMOVE.md2 KB -
SKILL.md12 KB -
ollama-env.ts958 B -
ollama-mcp-stdio.ts14 KB -
ollama-registration.test.ts2 KB
Show all 6 files
-
ollama-wiring.test.ts2 KB
Alternatives to add-ollama-tool
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
add-ollama-tool: common questions
Does the Ollama integration need an API key?
No. The source says Ollama runs locally and is keyless, so there are no credentials to set. The only configuration is the daemon's base URL.
Can the agent delete models or download new ones?
Only if OLLAMA_ADMIN_TOOLS=true is set. Without it, the agent can only list installed models and generate responses.
Why does the agent try to run an ollama CLI instead of the tools?
The source says this happens when the MCP server was not copied, not registered in index.ts, or the container was not rebuilt. Registration is the only step the agent's tool access depends on.
How do I install add-ollama-tool?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-ollama-tool free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is add-ollama-tool safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-ollama-tool?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
