Skip to content
VS Code

unifi for VS Code

io.github.us-all/unifi

UniFi semantic-analysis MCP — fleet health, anomaly detection, cross-site analytics

client:VS Code transport:stdio runtime:npm

Install unifi in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "unifi-api-key",
      "description": "UNIFI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-api-url",
      "description": "UNIFI_API_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-api-key-owner",
      "description": "UNIFI_API_KEY_OWNER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-tools",
      "description": "UNIFI_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-disable",
      "description": "UNIFI_DISABLE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-local-url",
      "description": "UNIFI_LOCAL_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-local-user",
      "description": "UNIFI_LOCAL_USER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-local-pass",
      "description": "UNIFI_LOCAL_PASS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-local-site",
      "description": "UNIFI_LOCAL_SITE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-local-insecure",
      "description": "UNIFI_LOCAL_INSECURE",
      "password": true
    }
  ],
  "servers": {
    "unifi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@us-all/unifi-mcp"
      ],
      "env": {
        "UNIFI_API_KEY": "${input:unifi-api-key}",
        "UNIFI_API_URL": "${input:unifi-api-url}",
        "UNIFI_API_KEY_OWNER": "${input:unifi-api-key-owner}",
        "UNIFI_TOOLS": "${input:unifi-tools}",
        "UNIFI_DISABLE": "${input:unifi-disable}",
        "UNIFI_LOCAL_URL": "${input:unifi-local-url}",
        "UNIFI_LOCAL_USER": "${input:unifi-local-user}",
        "UNIFI_LOCAL_PASS": "${input:unifi-local-pass}",
        "UNIFI_LOCAL_SITE": "${input:unifi-local-site}",
        "UNIFI_LOCAL_INSECURE": "${input:unifi-local-insecure}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

unifi in other clients