Back to MCP directory
publicPublicdnsLocal runtime

unifi-mcp-server

Unifi MCP服务器是一个用于与Unifi站点交互的服务工具,支持通过API进行配置和管理。

article

README

🚀 UniFi MCP 服务器

UniFi MCP 服务器用于与您的 UniFi 站点进行交互,为您的 UniFi 相关操作提供便捷的服务。

🚀 快速开始

配置示例

以下是在 VSCode 中进行 MCP 配置的示例:

"unifi-mcp-server": {
    "command": "uv",
    "args": [
        "--directory",
        "/absolute/path/to/unifi-mcp-server",
        "run",
        "main.py",
    ],
    "env": {
        "UNIFI_HOST": "<your-unifi-host>",
        "UNIFI_API_KEY": "<your-unifi-api-key>",
    }
}

📦 安装指南

开发环境安装步骤

  1. 安装 uv
  2. 执行命令 uv venv
  3. 执行命令 source .venv/bin/activate
  4. 执行命令 uv sync
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client