原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

UniFi RMCP

作者:dinglebear-ai版本 0.2.5i★ –i在你的电脑上运行
注册名称ai.dinglebear/runifi

安装

概览

作者提供的说明(英文原文)

Rust MCP server and CLI for UniFi Network controller operations.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:UNIFI_URL, UNIFI_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: UNIFI_URL, UNIFI_API_KEY, UNIFI_RMCP_VERSION, UNIFI_RMCP_REPO, UNIFI_RMCP_RELEASE_BASE_URL, RUST_LOG

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "runifi": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/runifi",
        "mcp"
      ],
      "env": {
        "UNIFI_URL": "your-value",
        "UNIFI_API_KEY": "your-value",
        "UNIFI_RMCP_VERSION": "your-value",
        "UNIFI_RMCP_REPO": "your-value",
        "UNIFI_RMCP_RELEASE_BASE_URL": "your-value",
        "RUST_LOG": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add runifi --env UNIFI_URL=your-value --env UNIFI_API_KEY=your-value --env UNIFI_RMCP_VERSION=your-value --env UNIFI_RMCP_REPO=your-value --env UNIFI_RMCP_RELEASE_BASE_URL=your-value --env RUST_LOG=your-value -- npx -y @dinglebear/runifi mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "runifi": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/runifi",
        "mcp"
      ],
      "env": {
        "UNIFI_URL": "your-value",
        "UNIFI_API_KEY": "your-value",
        "UNIFI_RMCP_VERSION": "your-value",
        "UNIFI_RMCP_REPO": "your-value",
        "UNIFI_RMCP_RELEASE_BASE_URL": "your-value",
        "RUST_LOG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "runifi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/runifi",
        "mcp"
      ],
      "env": {
        "UNIFI_URL": "your-value",
        "UNIFI_API_KEY": "your-value",
        "UNIFI_RMCP_VERSION": "your-value",
        "UNIFI_RMCP_REPO": "your-value",
        "UNIFI_RMCP_RELEASE_BASE_URL": "your-value",
        "RUST_LOG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • UNIFI_URL 必填 env
    UniFi Network controller base URL.
  • UNIFI_API_KEY 机密 必填 env
    UniFi API key.
  • UNIFI_RMCP_VERSION env
    Optional GitHub release tag override for the downloaded UniFi RMCP binary.
  • UNIFI_RMCP_REPO env
    Optional GitHub owner/repo override for release asset downloads.
  • UNIFI_RMCP_RELEASE_BASE_URL env
    Optional release download base URL override.
  • RUST_LOG env
    Tracing filter for UniFi RMCP logs.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 dinglebear.ai 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32464 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32464 个服务器的 21% 更新
  • 基础检查结果等于或优于此分类中其他 32464 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

UniFi RMCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:UNIFI_URL, UNIFI_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.5)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, yontu

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

yontu

作者:senrecep

Türkçe yazı denetimi: TDK kuralları, yapay zekâ izleri, metin türüne göre üslup.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

unifi-rmcp

UniFi Network client, device, WLAN, firewall, and health operations over MCP and CLI.

It exposes one MCP tool, unifi, plus the runifi CLI. Agents can inspect clients, devices, WiFi networks, health, alarms, events, controller sysinfo, and authenticated identity, and can use generated official_* / unifi_* actions when their MCP auth scope permits it.

30-second path: set UNIFI_URL and UNIFI_API_KEY, then run npx -y @dinglebear/runifi health --json -> start loopback HTTP with UNIFI_MCP_HOST=127.0.0.1 npx -y @dinglebear/runifi serve -> call tools/call with {"action":"health"}.

Status: operational RMCP upstream-client server. The preserved convenience actions are read-oriented; generated mutating actions require unifi:admin authorization. HTTP MCP supports loopback dev mode, static bearer tokens, and Google OAuth through lab-auth.

Not for: replacing the UniFi console, storing controller credentials for callers, bypassing UniFi permissions, generic HTTP proxying, multi-tenant isolation, or passing UniFi API keys through MCP tool arguments.

Contents

  • Naming
  • Capabilities And Boundaries
  • Install
  • Quickstart
  • Client Configuration
  • Runtime Surfaces
  • MCP Tool Reference
  • CLI Reference
  • Configuration
  • Authentication
  • Safety And Trust Model
  • Architecture
  • Distribution Contract
  • Development
  • Verification
  • Deployment
  • Troubleshooting
  • Related Servers
  • Documentation
  • License

Naming

SurfaceThis repo
Repositoryunifi-rmcp
Rust crateunifi-rmcp
Binary / CLIrunifi
npm package@dinglebear/runifi
npm binary aliasesunifi-rmcp, runifi
MCP toolunifi
Config home~/.unifi-rmcp on hosts, /data in containers
Env prefixesUNIFI_*, UNIFI_MCP_*, UNIFI_RMCP_* for npm launcher controls

The repo and npm package use the RMCP family name, while the shipped binary uses the short Rust CLI name runifi.

Capabilities And Boundaries

  • Read connected wireless and wired clients, network devices, WLAN configs, site health, active alarms, recent events, controller sysinfo, and current authenticated user.
  • Dispatch generated official_* actions for documented Network Integration API endpoints.
  • Dispatch model-backed unifi_* internal controller actions and hybrid aliases such as list_clients, list_devices, list_networks, list_wifi, and get_system_info.
  • Enforce unifi:read for read actions and unifi:admin for mutating actions in mounted HTTP MCP mode.
  • Provide setup, doctor, and endpoint-verification commands for local runtime checks.
This repo ownsUniFi ownsExplicitly out of scope
MCP/CLI projection, action registry, request validation, HTTP MCP auth policy, response shaping, generated action dispatch, setup checks, and endpoint verification.Controller state, site/device/client data, UniFi users, API key issuance, upstream authorization, and actual network mutations.Replacing the controller UI, credential brokerage, arbitrary HTTP proxying, long-lived polling, policy-as-code, multi-tenant sandboxing, and local gateway provisioning.

Install

PathCommandBest forNotes
npm / npxnpx -y @dinglebear/runifi --helpLocal MCP clients and quick trials.Downloads the matching runifi binary from GitHub Releases.
Release installer`curl -fsSL https://raw.githubusercontent.com/dinglebear-ai/runifi/main/scripts/install.sh \bash`Host installs without Node.Installs runifi for the current Linux host.
Docker / Composedocker compose up -dShared HTTP MCP deployments.Reads .env and exposes container port 40030.
Build from sourcecargo build --releaseDevelopment and audits.Produces target/release/runifi.
Pluginclaude plugin install plugins/unifiClaude Code local plugin setup from this checkout.Ships the skill and .mcp.json. No session hooks — plugin settings reach the server through .mcp.json's ${user_config.*} env block, so no manual setup step is needed.
npm / npx

Run the stdio MCP server or CLI without a manual binary install:

npx -y @dinglebear/runifi --help

npx -y @dinglebear/runifi mcp npx -y @dinglebear/runifi health --json

The npm package downloads runifi during postinstall. Override download behavior only when testing packaging:

VariablePurpose
UNIFI_RMCP_SKIP_DOWNLOAD=1Skip postinstall binary download.
UNIFI_RMCP_VERSION or UNIFI_RMCP_BINARY_VERSIONSelect the GitHub Release tag.
UNIFI_RMCP_REPOSelect the GitHub repo used for release downloads.
UNIFI_RMCP_RELEASE_BASE_URLSelect a custom release base URL.
Build From Source
git clone git@github.com:dinglebear-ai/runifi.git

cd runifi cargo build --release ./target/release/runifi --help

Minimum supported Rust version: 1.86. The Cargo workspace has three members: the root unifi-rmcp package, crates/unifi (reusable core), and xtask (dev tooling). All members inherit Rust edition 2024 and MSRV 1.97.1 from the workspace root.

Quickstart

1. Create A UniFi API Key

In UniFi OS, go to Settings -> Admins & Users -> API Keys, create a key, and copy it into UNIFI_API_KEY.

2. Configure The Controller
export UNIFI_URL=https://unifi.local

export UNIFI_API_KEY=... export UNIFI_SITE=default export UNIFI_SKIP_TLS_VERIFY=true

Set UNIFI_LEGACY=true only for older non-UDM controllers that do not use the /proxy/network path prefix.

3. Run A Safe CLI Call
npx -y @dinglebear/runifi health --json
4. Start Loopback HTTP MCP
UNIFI_MCP_HOST=127.0.0.1 npx -y @dinglebear/runifi serve

In another shell:

curl -sf http://127.0.0.1:40030/health
5. Make A First MCP Call
curl -s -X POST http://127.0.0.1:40030/mcp \

-H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"unifi","arguments":{"action":"health"}}}'

Client Configuration

Claude Code Stdio
{

"mcpServers": { "unifi": { "command": "npx", "args": ["-y", "unifi-rmcp", "mcp"], "env": { "UNIFI_URL": "https://unifi.local", "UNIFI_API_KEY": "...", "UNIFI_SITE": "default", "UNIFI_SKIP_TLS_VERIFY": "true" } } } }

Claude Code HTTP
{

"mcpServers": { "unifi": { "type": "http", "url": "http://127.0.0.1:40030/mcp", "headers": { "Authorization": "Bearer ${UNIFI_MCP_TOKEN}" } } } }

Codex / Labby Gateway

Register UniFi through Labby as an HTTP upstream when sharing one long-running server, or run it directly as stdio for local-only use.

[mcp_servers.unifi]

command = "npx" args = ["-y", "unifi-rmcp", "mcp"]

Generic MCP JSON
{

"command": "runifi", "args": ["mcp"], "env": { "UNIFI_URL": "https://unifi.local", "UNIFI_API_KEY": "..." } }

Do not put UNIFI_API_KEY, OAuth secrets, passwords, SSH keys, or upstream bearer tokens in MCP tool arguments. Use env, config files, or the MCP client's secret storage. MCP callers never provide credentials, tokens, keys, or secrets as action arguments.

Runtime Surfaces

SurfaceStatusEntry pointPurpose
MCP stdioSupportedrunifi mcp, npx -y @dinglebear/runifi mcpLocal child-process MCP clients.
MCP HTTPSupportedrunifi serve, POST /mcpStreamable HTTP MCP for local or shared server deployments.
CLISupportedrunifi Scriptable parity and debugging.
PromptsSupportednetwork_summaryAgent prompt for UniFi status summaries.
ResourceSupportedMCP tool schema resourceClient-side schema discovery.
REST APINot shippedN/AUniFi already owns the REST APIs.
Web UINot shippedN/AUniFi already owns the controller UI.

MCP Tool Reference

One MCP tool is exposed: unifi. Pass the required action argument to select the operation. The action enum is generated from the inventories in data/, so the surface is large:

FamilyActionsMutating
official_*7836
unifi_*17587
Preserved convenience80
Hybrid aliases50
help10
Total267123

Counts are derived from data/unifi_official_network_v10_3_58.json and the runtime: true entries of data/unifi_internal_endpoint_models.json. crates/unifi/src/capabilities.rs is the source of truth at runtime.

Preserved Convenience Actions
ActionDescriptionRequired paramsOptional params
clientsConnected wireless and wired clients.nonenone
devicesNetwork devices: APs, switches, gateways.nonenone
wlansWiFi network configurations.nonenone
healthSite health summary.nonenone
alarmsActive alarms and alerts.nonenone
eventsRecent controller events.nonelimit
sysinfoController system information.nonenone
meAuthenticated UniFi identity.nonenone
helpBuilt-in action documentation.nonenone
Generated Action Families
FamilyDescriptionScope behavior
official_*Documented Network Integration API operations under /proxy/network/integration/v1.Read operations require unifi:read; mutating operations require unifi:admin.
unifi_*Model-backed internal controller-compatible actions under /proxy/network/api/s/{site} and /proxy/network/v2/api/site/{site}.Read operations require unifi:read; mutating operations require unifi:admin.
Hybrid aliaseslist_clients, list_devices, list_networks, list_wifi, get_system_info.Use internal actions by default, or official API when siteId or params.prefer="official" is supplied.

Endpoint coverage is tracked in docs/unifi_api_coverage.md; contract and safe live verification are documented in docs/unifi_endpoint_verification.md.

CLI Reference

The binary calls the same service layer as the MCP tool:

runifi clients [--json]

runifi devices [--json] runifi wlans [--json] runifi health [--json] runifi alarms [--json] runifi events [--limit N] [--json] runifi sysinfo [--json] runifi me [--json] runifi official_list_clients --param siteId= --json runifi official_create_network --param siteId= --body-json '{"name":"IoT"}' --json runifi list_clients --param siteId= --json runifi doctor [--json] runifi setup check [--json] runifi setup repair [--json] runifi setup install [--json] runifi setup plugin-hook [--no-repair] [--json]

Generated actions accept --param k=v, --body-json JSON, and --json.

setup plugin-hook maps CLAUDE_PLUGIN_OPTION_* env vars into UNIFI_*, refreshes the ~/.local/bin copy of the binary, and runs check + repair. It used to run automatically from a Claude Code SessionStart/ConfigChange hook; those hooks have been removed.

You do not need to run it to configure the plugin: plugins/unifi/.mcp.json maps your plugin settings into the server's environment directly via ${user_config.*}. Run it by hand only when you want the ~/.local/bin binary refresh or the preflight checks.

Configuration

Configuration loads from config.toml first, then UNIFI_* environment variables override it. Host install

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx