Skip to main content

MikroTik RouterOS

io.github.StefanKnol/mikrotik-mcp

v0.3.1Updated Nov 12, 2026stdio · PyPI

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

Install

Needs 1 secret. Replace 3 placeholders with your own values.

Run in your terminal. Replace 3 placeholders.

claude mcp add mikrotik-mcp -e 'MIKROTIK_HOST=<your-mikrotik-host>' -e 'MIKROTIK_USERNAME=<your-mikrotik-username>' -e 'MIKROTIK_PASSWORD=<your-mikrotik-password>' -- uvx mikrotik-mcp==0.3.1

Configuration

7 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • MIKROTIK_PASSWORD
    Env var· required· secret
    Password for that user.
  • MIKROTIK_HOST
    Env var· required
    IP address or hostname of the router, e.g. 192.168.88.1
  • MIKROTIK_USERNAME
    Env var· required
    RouterOS user. Use a dedicated account rather than admin; its group must carry the `api` policy, and a group without it is rejected with the same error as a wrong password.
  • MIKROTIK_PORT
    Env var· optional
    API port: 8729 for api-ssl (default), 8728 for plaintext.
  • MIKROTIK_TLS
    Env var· optional
    Use the TLS API. Defaults to true; turning it off sends the router password over the network in the clear.
  • MIKROTIK_TLS_FINGERPRINT
    Env var· optional
    SHA-256 of the router certificate. MikroTik's API-SSL certificate is self-signed, so pinning this is what makes the connection authenticated rather than merely encrypted.
Show 1 more
  • MIKROTIK_TIMEOUT
    Env var· optional
    Connection timeout in seconds. Defaults to 10.

Listed in the official MCP Registry since Nov 12, 2026. Mirrored daily; last checked Nov 26, 2026.