Skip to main content

Mikrotik MCP

io.github.wiresage/mikrotik-mcp

v0.29.8.0Updated Nov 22, 2026stdio · PyPI

MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add mikrotik-mcp -- uvx mcp-server-mikrotik==0.29.8.0

Configuration

9 settings.

  • MIKROTIK_PASSWORD
    Env var· optional· secret
    SSH password for the MikroTik router (single-device mode)
  • MIKROTIK_INVENTORY
    Env var· optional· secret
    Inline multi-device inventory as a YAML (or JSON) list; takes precedence over MIKROTIK_INVENTORY_FILE and the single-device variables. Holds credentials.
  • MIKROTIK_HOST
    Env var· optional
    IP address or hostname of the MikroTik router (single-device mode; default: 127.0.0.1). Not needed when an inventory is configured.
  • MIKROTIK_USERNAME
    Env var· optional
    SSH username for the MikroTik router (single-device mode; default: admin)
  • MIKROTIK_PORT
    Env var· optional
    SSH port of the MikroTik router (single-device mode; default: 22)
  • MIKROTIK_KEY_FILENAME
    Env var· optional
    Path to SSH private key file for key-based authentication (single-device mode)
Show 3 more
  • MIKROTIK_READ_ONLY
    Env var· optional
    When true, expose only tools that do not modify RouterOS or its file store. Use a read-only RouterOS account as defence in depth.
  • MIKROTIK_SENSITIVE_HIDING
    Env var· optional
    When true, redact recognized credentials and private key material from tool results, MCP notifications, and logs, and omit tools that return opaque sensitive payloads.
  • MIKROTIK_INVENTORY_FILE
    Env var· optional
    Path to a YAML file listing multiple MikroTik devices (title, host, port, username, password, key_filename, tags, region). See docs/reference/devices/inventory.md.

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