unifi-code-mode-mcp

Search and execute UniFi controller API operations via sandboxed JavaScript.

2|Updated May 6, 2026
One-click install
npx skills add https://github.com/jmpijll/unifi-code-mode-mcp --skill unifi-code-mode-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unifi-code-mode-mcp
Source: https://github.com/jmpijll/unifi-code-mode-mcp/tree/main
Command: npx skills add https://github.com/jmpijll/unifi-code-mode-mcp --skill unifi-code-mode-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables efficient, flexible management of UniFi Network and Protect deployments by providing a search and execute interface for API calls.

Core Features & Use Cases

  • Catalog & Find API Operations: Search through thousands of UniFi API endpoints using natural keywords.
  • Script & Automate Calls: Write JavaScript snippets to perform batch operations, retrieve complex data, and manipulate device settings.
  • Use Case: Quickly locate the operation to reboot an access point and run it with a single JavaScript command, avoiding manual UI steps.

Quick Start

Use the unifi code-mode skill to list all sites on your controller with a simple search and run script.

Frequently Asked Questions about unifi-code-mode-mcp

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

FAQPage Schema
How do I automate UniFi controller API calls for network management?

You can automate UniFi controller API calls by writing JavaScript snippets in a sandboxed environment to perform batch operations, retrieve complex data, and manage device settings securely.

Can I search for UniFi Protect API endpoints using natural language keywords?

Yes, you can search through thousands of UniFi API endpoints using natural keywords to quickly locate specific operations for both UniFi Network and Protect deployments without manual UI steps.

Does the UniFi code-mode interface support cloud-managed and local controllers?

The UniFi code-mode interface supports both local and cloud-managed UniFi devices and services, ensuring secure per-tenant credential handling with minimal API surface exposure across deployments.

What is the best way to reboot a UniFi access point via API scripting?

The best way to reboot an access point is to locate the specific operation via keyword search and execute it with a single JavaScript command, avoiding manual controller UI steps.

How do I handle credentials when scripting UniFi API automation tasks?

UniFi API automation tasks ensure secure credential handling through per-tenant isolation, minimizing API surface exposure while executing scripts in a sandboxed JavaScript environment.