unifi-mcp-server: Skill for Claude Code

.agents/skills/unifi-mcp-tool-builder/SKILL.md

unifi-mcp-tool-builder is a skill for Claude Code from enuno/unifi-mcp-server. It costs 49 tokens per session (6,054 once invoked), scanned A, original, Apache-2.0.

A development guide for adding new MCP tools to the UniFi MCP Server. MCP tools are functions that let AI assistants interact with software; here, they expose features of a UniFi Network Controller.

In plain words
What is it for?
Use it to research and plan a new UniFi feature, choose its supported API mode, implement the tool, and add the required tests and documentation.
Why use it?
It gives developers a project-specific process for adding features while following existing API, testing, and code-structure rules. TDD, or test-driven development, means writing tests before or alongside the implementation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is enuno/unifi-mcp-server's own configuration. It tells Claude Code how to work on unifi-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unifi-mcp-server configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/generate_agent_card.py.

Part of the unifi-mcp-server plugin — 36 skills, 17 commands, 4 agents, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to enuno/unifi-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/enuno/unifi-mcp-server/main/.agents/skills/unifi-mcp-tool-builder/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/enuno/unifi-mcp-server

Made for: Claude Code.

Or install unifi-mcp-server, the plugin that ships this one along with the rest of its 36 skills, 17 commands, 4 agents, 2 MCP servers.

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 unifi-mcp-tool-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-mcp-tool-builder/github.svg)](https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-mcp-tool-builder)
Your own site
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-mcp-tool-builder"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-mcp-tool-builder/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 unifi-mcp-tool-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-mcp-tool-builder"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-mcp-tool-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,054 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 728
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00049 $0.06054
Opus 5.5 $0.00020 $0.02422
Sonnet 5.5 $0.00010 $0.01211
Haiku 4.5 $0.00005 $0.00605

Measured 2d ago against content hash 0c3addb768f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unifi-mcp-tool-builder 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 2d 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.

.agents/skills/unifi-mcp-tool-builder/SKILL.md · 770 lines

How it starts

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

UniFi MCP Tool Builder

Overview

This skill guides you through adding new MCP tools to the existing UniFi MCP Server. Unlike building an MCP server from scratch, this focuses on extending the current implementation with new UniFi Network Controller functionality while maintaining the project's quality standards.

Project Context:

  • Existing Tools: 366 MCP tools in local mode. The live count is what the registry reports; this figure is checked by tests/unit/test_skill_tool_references.py, so the test fails if it drifts.
  • Test Coverage: the unit suite is the gate. Run pytest tests/unit/ -q --cov=src --cov-fail-under=80 from the repository root; the coverage gate is 80%. The exact test count changes with every change, so read it from that run rather than from this file.
  • Architecture: FastMCP + Pydantic v2 + async/await patterns
  • API Support: Local gateway (full), Cloud V1/EA (limited)
  • Quality Standards: 80% minimum test coverage, TDD required

Process

Phase 1: Research and Planning

1.1 Understand the Tool Request

Before implementation, clarify:

  • What UniFi feature/endpoint needs to be exposed?
  • Which API mode supports it (local, cloud-v1, cloud-ea)?
  • What workflow does this enable for AI agents?
  • How does this fit into existing tool categories?

Tool Categories in UniFi MCP Server:

  1. Device Management (list, control, upgrade)
  2. Client Management (block, unblock, statistics)
  3. Network Configuration (VLANs, subnets, DHCP)
  4. Firewall & Security (rules, zones, ACLs)
  5. WiFi/SSID Management (create, configure, statistics)
  6. QoS & Traffic (profiles, flows, DPI)
  7. Backup & Restore (automated backups, restore)
  8. Site Management (multi-site, aggregation)
  9. Topology & Monitoring (network maps, health)

1.2 Study UniFi API Documentation

Load UniFi API reference:

# Read the comprehensive UniFi API documentation
Read: docs/UNIFI_API.md

This document contains verified endpoints for UniFi Network v10.0.156+.

Read the full file on GitHub · 770 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed 0c3addb768f8
  2. 8d ago Changed e4e69081cfde
  3. 9d ago Changed 0e52379b82ae
  4. 11d ago Changed 9cd752fefd67
  5. 1mo ago Changed · +95 lines 29a8929670a6
  6. 1mo ago Changed 5538e7c3819a
  7. 1mo ago Changed · +4 lines 5920199355e5
  8. 1mo ago Changed · -188 lines 51c3cae95a5b
  9. 3mo ago First seen · 859 lines · 49 tokens per session scan A 9542c4bbda2a

Subscribe to this mod's changes

unifi-mcp-tool-builder is a skill published in the GitHub repository enuno/unifi-mcp-server (395 stars, last pushed today), licensed Apache-2.0. It adds 49 tokens to every session and 6,054 once invoked, about $0.0002 per session on Opus 5.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

unifi-mcp-tool-builder compared with skills from other repositories

unifi-mcp-tool-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unifi-mcp-tool-builderenuno/unifi-mcp-serverSkill395todayApache-2.0A49Claude Code
django-tddhashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A32Claude Code, Codex
old-coder-apiAmazingAng/old-coderSkill7697d agoMITA106Claude Code, Codex
nw-fp-domain-modelingnWave-ai/nWaveSkill63612d agoMITA23Claude Code
nw-architectural-styles-tradeoffsnWave-ai/nWaveSkill63612d agoMITA37Claude Code
nw-fp-hexagonal-architecturenWave-ai/nWaveSkill63612d agoMITA24Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63612d agoMITA38Claude Code