Skip to content
MCP server

Mikrotik

Read-only MCP server for inspecting MikroTik RouterOS routers via the RouterOS API

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted, API
Runs
Locally
Version
1.0.6
Listing updated
today

Similar MCP servers

About Mikrotik

Mikrotik is an open-source MCP server for cloud and infrastructure. It runs locally on your machine and is started by your AI client.

The README describes this server as a read-only bridge between AI clients and MikroTik routers. It connects to a router over the RouterOS API, either on plain TCP port 8728 or over SSL/TLS on 8729, and supports both the older login method and the one used in RouterOS releases from v6.43 onward.

Once connected, the server exposes interfaces, bridges, bridge ports and IP routes as MCP resources that can be read directly. Tools cover running a system report, fetching the output of any RouterOS /print path such as routes, interfaces or logs, and generating an AWR-style report that includes performance metrics, a security audit and recommendations.

The README frames it for network administrators who want an assistant to review router configuration, spot unused entries and flag firewall or routing risks. Credentials can be supplied through environment variables or entered later with the connect tool.

Install

Run in a terminal

claude mcp add mikrotik --env MK_PASSWORD='<MK_PASSWORD>' -- npx -y @marcelo-ochoa/server-mikrotik

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mikrotik": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mikrotik"
      ],
      "env": {
        "MK_PASSWORD": "<MK_PASSWORD>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mikrotik": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mikrotik"
      ],
      "env": {
        "MK_PASSWORD": "<MK_PASSWORD>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mikrotik": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mikrotik"
      ],
      "env": {
        "MK_PASSWORD": "<MK_PASSWORD>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mikrotik": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mikrotik"
      ],
      "env": {
        "MK_PASSWORD": "<MK_PASSWORD>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mikrotik": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mikrotik"
      ],
      "env": {
        "MK_PASSWORD": "<MK_PASSWORD>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MK_USERMikroTik username
  • MK_PASSWORDMikroTik password

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

mk-connect
Connects to a router using host, user, password and optional SSL flag.
mk-report
Generates a comprehensive system report including resources, health, routerboard info and traffic statistics.
mk-get
Returns a JSON array with the result of a RouterOS /print command for a given API path.
mk-awr
Generates an AWR-style performance and security report with recommendations.

What it does

Read-only router access
The server is documented as read-only, so it inspects router state through the RouterOS API without the stated purpose of changing configuration.
Resource browsing
Interfaces, bridges, bridge ports and IP routes are exposed as addressable MCP resources.
Generic print queries
The mk-get tool returns the result of any RouterOS /print path as a JSON array.
System report generation
The mk-report tool aggregates system resources, health, routerboard info and a one-time traffic sample.
AWR-style audit report
The mk-awr tool produces a performance and security audit with recommendations.
Plain and TLS connections
Connections work over TCP 8728 or SSL/TLS 8729, with optional startup arguments.

Good for

  • Reviewing a router's interfaces, bridges and routing table through an AI client
  • Finding unused address-list, filter, NAT or mangle entries on a MikroTik device
  • Pulling recent system log entries to troubleshoot a router
  • Generating a periodic health and security summary for a RouterOS device

Pricing

Open source

Open source; Apache 2.0 for new contributions, existing code under MIT.

Mikrotik FAQ

Can this server change router configuration?

The README describes it as a read-only implementation, so it is documented for inspection rather than configuration changes.

Which connection ports are supported?

The README states plain TCP on port 8728 and SSL/TLS on port 8729.

Which RouterOS versions are supported?

It supports login on RouterOS versions both before and after v6.43, according to the README.

How are credentials provided?

Through the MK_USER and MK_PASSWORD environment variables, or by using the mk-connect tool after startup.

Is Mikrotik free?

Yes. Mikrotik is open source, so you can use and self-host it for free.

How do I add Mikrotik to Claude Code?

Run this command in your terminal: claude mcp add mikrotik --env MK_PASSWORD='<MK_PASSWORD>' -- npx -y @marcelo-ochoa/server-mikrotik

What are the best alternatives to Mikrotik?

The closest alternatives to Mikrotik are MikroMCP, OpenWrt MCP, Juniper Routing Director MCP Server, arr-mcp and Komodo MCP Server.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers