Skip to content
VS Code

unifi mcp server for VS Code

io.github.enuno/unifi-mcp-server

An MCP server that leverages official UniFi API

client:VS Code transport:stdio runtime:npm

Install unifi mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "unifi-host",
      "description": "UNIFI_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-username",
      "description": "UNIFI_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-password",
      "description": "UNIFI_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-port",
      "description": "UNIFI_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-verify-ssl",
      "description": "UNIFI_VERIFY_SSL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "unifi-site",
      "description": "UNIFI_SITE",
      "password": true
    }
  ],
  "servers": {
    "unifi-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "unifi-mcp-server"
      ],
      "env": {
        "UNIFI_HOST": "${input:unifi-host}",
        "UNIFI_USERNAME": "${input:unifi-username}",
        "UNIFI_PASSWORD": "${input:unifi-password}",
        "UNIFI_PORT": "${input:unifi-port}",
        "UNIFI_VERIFY_SSL": "${input:unifi-verify-ssl}",
        "UNIFI_SITE": "${input:unifi-site}"
      }
    }
  }
}

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

unifi mcp server in other clients