Skip to content
VS Code

MikroTik RouterOS for VS Code

io.github.stefanknol/mikrotik-mcp

MikroTik RouterOS over the binary API, addressing rules by real .id not list position.

client:VS Code transport:stdio runtime:pypi

Install MikroTik RouterOS in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mikrotik-host",
      "description": "MIKROTIK_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mikrotik-username",
      "description": "MIKROTIK_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mikrotik-password",
      "description": "MIKROTIK_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mikrotik-port",
      "description": "MIKROTIK_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mikrotik-tls",
      "description": "MIKROTIK_TLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mikrotik-tls-fingerprint",
      "description": "MIKROTIK_TLS_FINGERPRINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mikrotik-timeout",
      "description": "MIKROTIK_TIMEOUT",
      "password": true
    }
  ],
  "servers": {
    "mikrotik-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mikrotik-mcp"
      ],
      "env": {
        "MIKROTIK_HOST": "${input:mikrotik-host}",
        "MIKROTIK_USERNAME": "${input:mikrotik-username}",
        "MIKROTIK_PASSWORD": "${input:mikrotik-password}",
        "MIKROTIK_PORT": "${input:mikrotik-port}",
        "MIKROTIK_TLS": "${input:mikrotik-tls}",
        "MIKROTIK_TLS_FINGERPRINT": "${input:mikrotik-tls-fingerprint}",
        "MIKROTIK_TIMEOUT": "${input:mikrotik-timeout}"
      }
    }
  }
}

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

MikroTik RouterOS in other clients