{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.mguttmann/the-real-unifi-mcp",
  "slug": "io.github.mguttmann.the-real-unifi-mcp",
  "title": "UniFi Site Manager and Network (unofficial)",
  "summary": "Unofficial MCP server for the UniFi Site Manager and Network cloud APIs, with a write-confirm guard.",
  "version": "0.4.0",
  "serverKey": "the-real-unifi-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.mguttmann.the-real-unifi-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.mguttmann.the-real-unifi-mcp/install.md",
  "trust": {
    "score": 87,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T20:12:45.102144938Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp@0.4.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add the-real-unifi-mcp -e 'UNIFI_API_KEY=<UNIFI_API_KEY>' -- npx -y the-real-unifi-mcp@0.4.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"the-real-unifi-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"the-real-unifi-mcp@0.4.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"UNIFI_API_KEY\": \"<UNIFI_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"the-real-unifi-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"the-real-unifi-mcp@0.4.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"UNIFI_API_KEY\": \"<UNIFI_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"UNIFI_API_KEY\",\n      \"id\": \"unifi-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"the-real-unifi-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"the-real-unifi-mcp@0.4.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"UNIFI_API_KEY\": \"${input:unifi-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.the-real-unifi-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"the-real-unifi-mcp@0.4.0\"]\nenv = { \"UNIFI_API_KEY\" = \"<UNIFI_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "UNIFI_API_KEY",
      "required": true,
      "secret": true,
      "description": "UniFi Site Manager API key with Network scope (unifi.ui.com, Settings > API). It controls your whole network: treat it like an admin password.",
      "help": "UniFi Site Manager API key with Network scope (unifi.ui.com, Settings > API). It controls your whole network: treat it like an admin password.",
      "placeholder": "<UNIFI_API_KEY>"
    },
    {
      "name": "UNIFI_CONFIRM_WRITES",
      "required": false,
      "secret": false,
      "description": "Write confirmation: destructive tools return a preview and run only when called again with confirm \"YES\". Only false, 0, no or off turn it off.",
      "help": "Write confirmation: destructive tools return a preview and run only when called again with confirm \"YES\". Only false, 0, no or off turn it off.",
      "default": "true",
      "placeholder": "true"
    },
    {
      "name": "UNIFI_API_BASE",
      "required": false,
      "secret": false,
      "description": "API base URL; this host receives the API key. https origin only (http only for loopback test stubs). Keep the default.",
      "help": "API base URL; this host receives the API key. https origin only (http only for loopback test stubs). Keep the default.",
      "default": "https://api.ui.com",
      "placeholder": "https://api.ui.com"
    },
    {
      "name": "UNIFI_TIMEOUT_MS",
      "required": false,
      "secret": false,
      "description": "Per-request timeout in milliseconds, covering response headers and body.",
      "help": "Per-request timeout in milliseconds, covering response headers and body.",
      "default": "30000",
      "placeholder": "30000"
    },
    {
      "name": "UNIFI_LOG_LEVEL",
      "required": false,
      "secret": false,
      "description": "Log level on stderr: debug, info, warn or error.",
      "help": "Log level on stderr: debug, info, warn or error.",
      "default": "info",
      "placeholder": "info"
    },
    {
      "name": "UNIFI_CONSOLE_ID",
      "required": false,
      "secret": false,
      "description": "Pins the UniFi console instead of discovering it (needed when the account has several consoles).",
      "help": "Pins the UniFi console instead of discovering it (needed when the account has several consoles).",
      "placeholder": "<UNIFI_CONSOLE_ID>"
    },
    {
      "name": "UNIFI_NETWORK_SITE_ID",
      "required": false,
      "secret": false,
      "description": "Pins the Network site instead of discovering it.",
      "help": "Pins the Network site instead of discovering it.",
      "placeholder": "<UNIFI_NETWORK_SITE_ID>"
    },
    {
      "name": "UNIFI_SITE_MANAGER_SITE_ID",
      "required": false,
      "secret": false,
      "description": "Pins the Site Manager site instead of discovering it.",
      "help": "Pins the Site Manager site instead of discovering it.",
      "placeholder": "<UNIFI_SITE_MANAGER_SITE_ID>"
    },
    {
      "name": "UNIFI_READ_ONLY",
      "required": false,
      "secret": false,
      "description": "Read-only mode: every write tool returns an error and sends no request; reads still work. Off by default.",
      "help": "Read-only mode: every write tool returns an error and sends no request; reads still work. Off by default.",
      "default": "false",
      "placeholder": "false"
    },
    {
      "name": "UNIFI_REDACT_SECRETS",
      "required": false,
      "secret": false,
      "description": "Masks passwords, WiFi passphrases, pre-shared keys and other secret fields in every tool result with (redacted); write tools refuse a body that contains that placeholder. Off by default.",
      "help": "Masks passwords, WiFi passphrases, pre-shared keys and other secret fields in every tool result with (redacted); write tools refuse a body that contains that placeholder. Off by default.",
      "default": "false",
      "placeholder": "false"
    },
    {
      "name": "UNIFI_MAX_RESULT_BYTES",
      "required": false,
      "secret": false,
      "description": "Cuts tool results longer than this many bytes and marks them as truncated. Unset or empty: 100000. 0, off or none: no cap.",
      "help": "Cuts tool results longer than this many bytes and marks them as truncated. Unset or empty: 100000. 0, off or none: no cap.",
      "default": "100000",
      "placeholder": "100000"
    }
  ],
  "expectedTools": [
    "unifi_raw_request",
    "unifi_sm_list_hosts",
    "unifi_sm_get_host",
    "unifi_sm_list_sites",
    "unifi_sm_list_devices",
    "unifi_sm_get_isp_metrics",
    "unifi_sm_query_isp_metrics",
    "unifi_sm_list_sdwan_configs",
    "unifi_sm_get_sdwan_config",
    "unifi_sm_get_sdwan_config_status",
    "unifi_sm_identity",
    "unifi_net_get_info",
    "unifi_net_list_sites",
    "unifi_net_list_devices",
    "unifi_net_get_device",
    "unifi_net_get_device_stats",
    "unifi_net_list_pending_devices",
    "unifi_net_adopt_devices",
    "unifi_net_device_action",
    "unifi_net_reboot_device",
    "unifi_net_port_action",
    "unifi_net_remove_device",
    "unifi_net_list_clients",
    "unifi_net_get_client",
    "unifi_net_client_action",
    "unifi_net_block_client",
    "unifi_net_unblock_client",
    "unifi_net_list_networks",
    "unifi_net_get_network",
    "unifi_net_get_network_references",
    "unifi_net_create_network",
    "unifi_net_update_network",
    "unifi_net_delete_network",
    "unifi_net_list_wifi",
    "unifi_net_get_wifi",
    "unifi_net_create_wifi",
    "unifi_net_update_wifi",
    "unifi_net_delete_wifi",
    "unifi_net_list_firewall_zones",
    "unifi_net_get_firewall_zone",
    "unifi_net_create_firewall_zone",
    "unifi_net_update_firewall_zone",
    "unifi_net_delete_firewall_zone",
    "unifi_net_list_firewall_policies",
    "unifi_net_get_firewall_policy",
    "unifi_net_create_firewall_policy",
    "unifi_net_update_firewall_policy",
    "unifi_net_patch_firewall_policy",
    "unifi_net_delete_firewall_policy",
    "unifi_net_get_firewall_policy_ordering",
    "unifi_net_reorder_firewall_policies",
    "unifi_net_list_acl_rules",
    "unifi_net_get_acl_rule",
    "unifi_net_create_acl_rule",
    "unifi_net_update_acl_rule",
    "unifi_net_delete_acl_rule",
    "unifi_net_get_acl_rule_ordering",
    "unifi_net_reorder_acl_rules",
    "unifi_net_list_dns_policies",
    "unifi_net_get_dns_policy",
    "unifi_net_create_dns_policy",
    "unifi_net_update_dns_policy",
    "unifi_net_delete_dns_policy",
    "unifi_net_list_traffic_lists",
    "unifi_net_get_traffic_list",
    "unifi_net_create_traffic_list",
    "unifi_net_update_traffic_list",
    "unifi_net_delete_traffic_list",
    "unifi_net_list_vouchers",
    "unifi_net_get_voucher",
    "unifi_net_create_vouchers",
    "unifi_net_delete_voucher",
    "unifi_net_delete_vouchers",
    "unifi_net_list_switch_stacks",
    "unifi_net_get_switch_stack",
    "unifi_net_list_mclag_domains",
    "unifi_net_get_mclag_domain",
    "unifi_net_list_lags",
    "unifi_net_get_lag",
    "unifi_net_list_wans",
    "unifi_net_list_site_to_site_vpn",
    "unifi_net_list_vpn_servers",
    "unifi_net_list_radius_profiles",
    "unifi_net_list_device_tags",
    "unifi_net_list_dpi_application_categories",
    "unifi_net_list_dpi_applications",
    "unifi_net_list_countries",
    "unifi_gen_listhosts",
    "unifi_gen_gethostbyid",
    "unifi_gen_listsites",
    "unifi_gen_listdevices",
    "unifi_gen_getispmetrics",
    "unifi_gen_queryispmetrics",
    "unifi_gen_listsdwanconfigs",
    "unifi_gen_getsdwanconfigbyid",
    "unifi_gen_getsdwanconfigstatus",
    "unifi_gen_getinfo",
    "unifi_gen_getsiteoverviewpage",
    "unifi_gen_getadopteddeviceoverviewpage",
    "unifi_gen_getadopteddevicedetails",
    "unifi_gen_getadopteddevicelateststatistics",
    "unifi_gen_getpendingdevicepage",
    "unifi_gen_adoptdevice",
    "unifi_gen_executeportaction",
    "unifi_gen_executeadopteddeviceaction",
    "unifi_gen_removedevice",
    "unifi_gen_getconnectedclientoverviewpage",
    "unifi_gen_getconnectedclientdetails",
    "unifi_gen_executeconnectedclientaction",
    "unifi_gen_getnetworksoverviewpage",
    "unifi_gen_getnetworkdetails",
    "unifi_gen_getnetworkreferences",
    "unifi_gen_createnetwork",
    "unifi_gen_updatenetwork",
    "unifi_gen_deletenetwork",
    "unifi_gen_getwifibroadcastpage",
    "unifi_gen_getwifibroadcastdetails",
    "unifi_gen_createwifibroadcast",
    "unifi_gen_updatewifibroadcast",
    "unifi_gen_deletewifibroadcast",
    "unifi_gen_getvouchers",
    "unifi_gen_getvoucher",
    "unifi_gen_createvouchers",
    "unifi_gen_deletevouchers",
    "unifi_gen_deletevoucher",
    "unifi_gen_getfirewallzones",
    "unifi_gen_getfirewallzone",
    "unifi_gen_createfirewallzone",
    "unifi_gen_updatefirewallzone",
    "unifi_gen_deletefirewallzone",
    "unifi_gen_getfirewallpolicies",
    "unifi_gen_getfirewallpolicy",
    "unifi_gen_createfirewallpolicy",
    "unifi_gen_updatefirewallpolicy",
    "unifi_gen_patchfirewallpolicy",
    "unifi_gen_deletefirewallpolicy",
    "unifi_gen_getfirewallpolicyordering",
    "unifi_gen_updatefirewallpolicyordering",
    "unifi_gen_getaclrulepage",
    "unifi_gen_getaclrule",
    "unifi_gen_createaclrule",
    "unifi_gen_updateaclrule",
    "unifi_gen_deleteaclrule",
    "unifi_gen_getaclruleordering",
    "unifi_gen_updateaclruleordering",
    "unifi_gen_getswitchstackpage",
    "unifi_gen_getswitchstack",
    "unifi_gen_getmclagdomainpage",
    "unifi_gen_getmclagdomain",
    "unifi_gen_getlagpage",
    "unifi_gen_getlag",
    "unifi_gen_getdnspolicypage",
    "unifi_gen_getdnspolicy",
    "unifi_gen_creatednspolicy",
    "unifi_gen_updatednspolicy",
    "unifi_gen_deletednspolicy",
    "unifi_gen_gettrafficmatchinglists",
    "unifi_gen_gettrafficmatchinglist",
    "unifi_gen_createtrafficmatchinglist",
    "unifi_gen_updatetrafficmatchinglist",
    "unifi_gen_deletetrafficmatchinglist",
    "unifi_gen_getwansoverviewpage",
    "unifi_gen_getsitetositevpntunnelpage",
    "unifi_gen_getvpnserverpage",
    "unifi_gen_getradiusprofileoverviewpage",
    "unifi_gen_getdevicetagpage",
    "unifi_gen_getdpiapplicationcategories",
    "unifi_gen_getdpiapplications",
    "unifi_gen_getcountries"
  ],
  "agentSteps": [
    "Ask the user for: UNIFI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: unifi_raw_request, unifi_sm_list_hosts, unifi_sm_get_host, unifi_sm_list_sites, unifi_sm_list_devices, unifi_sm_get_isp_metrics, unifi_sm_query_isp_metrics, unifi_sm_list_sdwan_configs, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T20:12:45.102144938Z"
}
