portainer-mcp-hygiene

portainer-mcp-hygiene is a skill for Claude Code, Codex from portainer/portainer-mcp. It costs 315 tokens per session (6,901 once invoked), scanned A, original, MIT.

A set of usage rules for working with Portainer's tools, which manage Docker and Kubernetes environments through a graphical platform's data interface.

In plain words
What is it for?
Use it when listing environments, inspecting stacks or Kubernetes resources, reading logs and statistics, or executing commands through Portainer.
Why use it?
It helps avoid oversized responses, select the relevant fields, resolve the correct environment, and interpret logs, status data, and proxy endpoints correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when listing environments, inspecting stacks or Kubernetes resources, reading logs and statistics, or executing commands through Portainer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/portainer/portainer-mcp/portainer-mcp-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add portainer/portainer-mcp --skill portainer-mcp-hygiene
Clone the repo
git clone --depth 1 https://github.com/portainer/portainer-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for portainer-mcp-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/portainer/portainer-mcp/portainer-mcp-hygiene/github.svg)](https://agentmods.dev/skills/portainer/portainer-mcp/portainer-mcp-hygiene)
Your own site
<a href="https://agentmods.dev/skills/portainer/portainer-mcp/portainer-mcp-hygiene"><img src="https://agentmods.dev/badge/skills/portainer/portainer-mcp/portainer-mcp-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for portainer-mcp-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/portainer/portainer-mcp/portainer-mcp-hygiene"><img src="https://agentmods.dev/badge/skills/portainer/portainer-mcp/portainer-mcp-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 315 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,901 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00315 $0.06901
Opus 5 $0.00158 $0.03451
Sonnet 5 $0.00063 $0.01380
Haiku 4.5 $0.00032 $0.00690

Measured 7d ago against content hash 48500b7fe737, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

portainer-mcp-hygiene scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/portainer-mcp-hygiene/SKILL.md · 391 lines

How it starts

The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Portainer MCP hygiene

The Portainer MCP server returns large JSON payloads by default — a list of environments with snapshots, a list of K8s pods with full status blocks, a stack with its complete manifest. Every tool the server exposes accepts an optional select (JMESPath) parameter applied server-side before the response reaches you. Responses are capped at ~50,000 chars; if you exceed the cap you get a truncation hint that names select and shows an example.

The cost of not projecting is real: 50K chars of dense JSON eats roughly 20K tokens out of your context for a question that usually needed a few hundred. Once truncation fires, you've wasted a round trip and the data past the cap is gone for that call. The default move on any list-shaped Portainer call is to pass select from the start.

Resolve the environment first

Both proxy tools take an environment_id, and the IDs aren't predictable — they're assigned in creation order, not "local = 1". So for any environment-scoped question, resolve the target first with one call:

EndpointList(select="[].{id:Id,name:Name,type:Type,status:Status}")

and use the ID whose name matches what the user means. Guessing the environment is a hard failure, not a silent one: a wrong ID makes the proxy raise an API request failed (HTTP 404) error rather than returning empty data — so a wrong environment is not a source of null projections. Two other things are, though: an unquoted dotted key (see the JMESPath notes below) and a field-name mismatch on the typed GetAllKubernetes* tools (see their note under Where the noise lives). So read an all-null result as a wrong-keys signal to investigate, not as proof the data is absent.

The default pattern

For any call that returns a list of objects, ship a JMESPath that keeps only the fields the user's question actually needs:

EndpointList(select="[].{id:Id,name:Name,type:Type,status:Status}")
docker_proxy(environment_id=N, path="/containers/json", select="[].{id:Id,name:Names[0],state:State,image:Image}")
kubernetes_proxy(environment_id=N, path="/api/v1/pods", select="items[].{name:metadata.name,ns:metadata.namespace,phase:status.phase,node:spec.nodeName}")

Read the full file on GitHub · 391 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +14 lines 48500b7fe737
  2. 12d ago First seen · 377 lines · 315 tokens per session scan A a87d6d02f2ce

Subscribe to this mod's changes

portainer-mcp-hygiene is a skill published in the GitHub repository portainer/portainer-mcp (229 stars, last pushed 9d ago), licensed MIT. It adds 315 tokens to every session and 6,901 once invoked, about $0.0016 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens

kubernetes

Kubernetes operations expert for kubectl, pods, deployments, and debugging.

RightNow-AI/openfang · 17 tokens

gentech-blockrun

GenTech Labs' integration patterns for BlockRun MCP from Hermes Agent. Covers daily usage patterns, cost-optimized workflows, multi-tool pipelines, and reliable error handling for BlockRun's full toolset.

BlockRunAI/blockrun-mcp · 46 tokens

node-logs

Retrieve logs from a Kubernetes node — systemd units (journalctl) or files under /var/log. Use when you need node-level evidence: containerd, kubelet, kernel/OOM, or anything the pod's own log cannot show. Three access paths in order: hostscript (SSH), nodescript (debug pod), and localscript against the kubelet log…

scitix/siclaw · 84 tokens