M

Mikrotik Mcp

MCP server · by wiresage

Developer Tools Python v0.26.2.0

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

View source ↗ Generate config for multiple servers More servers

Install

registry version 0.26.2.0

Python
uvx mcp-server-mikrotik

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "mikrotik-mcp-wiresage": {
      "command": "uvx",
      "args": [
        "mcp-server-mikrotik"
      ],
      "env": {
        "MIKROTIK_PASSWORD": "<YOUR_MIKROTIK_PASSWORD>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • MIKROTIK_HOST — 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 — SSH username for the MikroTik router (single-device mode; default: admin)
  • MIKROTIK_PASSWORD secret — SSH password for the MikroTik router (single-device mode)
  • MIKROTIK_PORT — SSH port of the MikroTik router (single-device mode; default: 22)
  • MIKROTIK_KEY_FILENAME — Path to SSH private key file for key-based authentication (single-device mode)
  • MIKROTIK_READ_ONLY — 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 — 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 — Path to a YAML file listing multiple MikroTik devices (title, host, port, username, password, key_filename, tags, region). See docs/reference/inventory.

About this server

Distributed as Python, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

How do I install Mikrotik Mcp?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Mikrotik Mcp free to use?

The MCP server itself is free to install. The source is public on https://github.com/wiresage/mikrotik-mcp. Any third-party service it calls may require its own API key and account.

Which clients support Mikrotik Mcp?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/mikrotik-mcp-wiresage.svg)](https://mcpnav.net/server/mikrotik-mcp-wiresage/)

HTML

<a href="https://mcpnav.net/server/mikrotik-mcp-wiresage/"><img src="https://mcpnav.net/badge/mikrotik-mcp-wiresage.svg" alt="Listed on MCPNav" height="20"></a>