UniFi for VS Code
io.github.mattoddie/unifi-mcp
Manage a Ubiquiti UniFi network: devices, clients, WiFi, firewall and VPN. Read-only by default.
client:VS Code
transport:stdio
runtime:oci
Install UniFi in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mcp-transport",
"description": "MCP_TRANSPORT",
"password": true
},
{
"type": "promptString",
"id": "unifi-url",
"description": "UNIFI_URL",
"password": true
},
{
"type": "promptString",
"id": "unifi-api-key",
"description": "UNIFI_API_KEY",
"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-tls-fingerprint",
"description": "UNIFI_TLS_FINGERPRINT",
"password": true
},
{
"type": "promptString",
"id": "unifi-verify-ssl",
"description": "UNIFI_VERIFY_SSL",
"password": true
},
{
"type": "promptString",
"id": "unifi-site",
"description": "UNIFI_SITE",
"password": true
},
{
"type": "promptString",
"id": "unifi-allow-writes",
"description": "UNIFI_ALLOW_WRITES",
"password": true
},
{
"type": "promptString",
"id": "unifi-allow-deletes",
"description": "UNIFI_ALLOW_DELETES",
"password": true
},
{
"type": "promptString",
"id": "unifi-toolsets",
"description": "UNIFI_TOOLSETS",
"password": true
},
{
"type": "promptString",
"id": "unifi-audit-log",
"description": "UNIFI_AUDIT_LOG",
"password": true
}
],
"servers": {
"unifi-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/mattoddie/unifi-mcp:0.6.2"
],
"env": {
"MCP_TRANSPORT": "${input:mcp-transport}",
"UNIFI_URL": "${input:unifi-url}",
"UNIFI_API_KEY": "${input:unifi-api-key}",
"UNIFI_USERNAME": "${input:unifi-username}",
"UNIFI_PASSWORD": "${input:unifi-password}",
"UNIFI_TLS_FINGERPRINT": "${input:unifi-tls-fingerprint}",
"UNIFI_VERIFY_SSL": "${input:unifi-verify-ssl}",
"UNIFI_SITE": "${input:unifi-site}",
"UNIFI_ALLOW_WRITES": "${input:unifi-allow-writes}",
"UNIFI_ALLOW_DELETES": "${input:unifi-allow-deletes}",
"UNIFI_TOOLSETS": "${input:unifi-toolsets}",
"UNIFI_AUDIT_LOG": "${input:unifi-audit-log}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs