MCP directory
MR

MikroTik RouterOS

by github.com/StefanKnol · v0.3.1 · updated Nov 12, 2026

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

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx mikrotik-mcp==0.3.1

Environment variables

  • MIKROTIK_HOSTrequired

    IP address or hostname of the router, e.g. 192.168.88.1

  • MIKROTIK_USERNAMErequired

    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_PASSWORDrequiredsecret

    Password for that user.

  • MIKROTIK_PORT

    API port: 8729 for api-ssl (default), 8728 for plaintext.

  • MIKROTIK_TLS

    Use the TLS API. Defaults to true; turning it off sends the router password over the network in the clear.

  • MIKROTIK_TLS_FINGERPRINT

    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.

  • MIKROTIK_TIMEOUT

    Connection timeout in seconds. Defaults to 10.

More MCP servers