UniFi Internal API Server
БесплатноНе проверенProvides 170+ tools to manage UniFi networks via the internal controller API, enabling AI assistants to perform full network management including clients, devic
Описание
Provides 170+ tools to manage UniFi networks via the internal controller API, enabling AI assistants to perform full network management including clients, devices, WLANs, firewall, and more.
README
An MCP (Model Context Protocol) server that exposes the internal UniFi Controller API — the same API the web UI uses — as tools for AI assistants.
This wraps the cookie-authenticated controller endpoints documented in the Art-of-WiFi/UniFi-API-client PHP library, providing ~170 tools for managing UniFi networks.
Features
- Full controller access: Clients, devices, WLANs, networks, firewall, statistics, events, admins, firmware, backups, DNS, RADIUS, DPI, hotspot/vouchers, and more
- Cookie-based authentication: Uses the same session auth as the UniFi web UI
- UniFi OS support: Works with UDM, UDR, UCG, and legacy standalone controllers
- Readonly safety mode: Write operations blocked by default — enable explicitly
- 170+ tools across 19 categories
Quick Start
- Clone this repository
- Copy
.env.exampleto.envand fill in your controller details - Run:
uv run unifi-internal-api-mcp
Configuration
| Variable | Description | Default |
|---|---|---|
UNIFI_HOST |
Controller URL (e.g. https://192.168.1.1) |
required |
UNIFI_USERNAME |
Controller username | |
UNIFI_PASSWORD |
Controller password | |
UNIFI_TOKEN |
Pre-authenticated TOKEN cookie (alternative to username/password) | |
UNIFI_SITE |
Site name | default |
UNIFI_IS_UNIFI_OS |
UniFi OS controller (UDM/UDR/UCG) | true |
UNIFI_READONLY |
Block all write operations | true |
UNIFI_SSL_VERIFY |
Verify SSL certificates | false |
Authentication
Option 1: Username/password — for self-hosted controllers without 2FA:
UNIFI_USERNAME=admin
UNIFI_PASSWORD=your-password
Option 2: Browser token — for cloud-hosted (ui.com) or 2FA-enabled controllers:
- Log into your controller in a browser
- Open DevTools (Cmd+Option+I) > Application > Cookies
- Copy the
TOKENcookie value
UNIFI_TOKEN=eyJhbGciOiJIUzI1NiIs...
The token expires after ~30 days. When using a token, the server won't log out (so your browser session stays valid).
Tool Categories
| Module | Tools | Description |
|---|---|---|
system |
15 | Sysinfo, health, dashboard, settings, device states |
sites |
13 | Site management, settings (country, SNMP, NTP, etc.) |
clients |
20 | Client management, guest auth, block/unblock |
devices |
23 | Device adoption, restart, locate, radio settings |
hotspot |
9 | Vouchers, hotspot operators, guest login |
wlans |
8 | WLAN configuration, MAC filters |
networks |
4 | Network CRUD |
firewall |
5 | Firewall groups and rules |
statistics |
22 | 5min/hourly/daily/monthly stats, speedtest, IPS |
events |
4 | Events and alarms |
admins |
8 | Admin management and permissions |
firmware |
10 | Firmware updates, rolling upgrades |
backups |
3 | Backup generation and export |
dns |
3 | DNS records (v2 API) |
radius |
5 | RADIUS profiles and accounts |
tags |
5 | Device tags |
dpi |
5 | DPI stats, port forwarding, system log |
user_groups |
4 | User groups (bandwidth profiles) |
ap_groups |
4 | AP groups (v2 API) |
MCP Client Configuration
Add to your MCP client config (e.g. Claude Desktop):
{
"mcpServers": {
"unifi-internal": {
"command": "uv",
"args": ["run", "--directory", "/path/to/unifi_internal_api_mcp", "unifi-internal-api-mcp"],
"env": {
"UNIFI_HOST": "https://your-controller-url",
"UNIFI_TOKEN": "eyJhbGciOiJIUzI1NiIs...",
"UNIFI_SITE": "default",
"UNIFI_READONLY": "true"
}
}
}
}
Установка UniFi Internal API Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/sevaepsteyn/unifi_internal_api_mcpFAQ
UniFi Internal API Server MCP бесплатный?
Да, UniFi Internal API Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для UniFi Internal API Server?
Нет, UniFi Internal API Server работает без API-ключей и переменных окружения.
UniFi Internal API Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить UniFi Internal API Server в Claude Desktop, Claude Code или Cursor?
Открой UniFi Internal API Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare UniFi Internal API Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
