s2 netbox mcp for VS Code
io.github.j-maff/s2-netbox-mcp
MCP server for LenelS2 S2 NetBox access control via the NBAPI. Read-only by default.
client:VS Code
transport:stdio
runtime:npm
Install s2 netbox mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "netbox-base-url",
"description": "NETBOX_BASE_URL",
"password": true
},
{
"type": "promptString",
"id": "netbox-username",
"description": "NETBOX_USERNAME",
"password": true
},
{
"type": "promptString",
"id": "netbox-password",
"description": "NETBOX_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "netbox-enable-writes",
"description": "NETBOX_ENABLE_WRITES",
"password": true
},
{
"type": "promptString",
"id": "netbox-enable-destructive",
"description": "NETBOX_ENABLE_DESTRUCTIVE",
"password": true
}
],
"servers": {
"s2-netbox-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"s2-netbox-mcp"
],
"env": {
"NETBOX_BASE_URL": "${input:netbox-base-url}",
"NETBOX_USERNAME": "${input:netbox-username}",
"NETBOX_PASSWORD": "${input:netbox-password}",
"NETBOX_ENABLE_WRITES": "${input:netbox-enable-writes}",
"NETBOX_ENABLE_DESTRUCTIVE": "${input:netbox-enable-destructive}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs