← Back to directory
M

MikroMCP

Community
Manage MikroTik routers and switches through typed MCP tools.
Category
Dev Tools #61 of 751
Stars
★ 115 Very popular
Transport
stdio (local process) · Streamable HTTP · SSE
Runtime
Node.js 22+
Credentials
API key / credential required
License
MIT
Last commit
61FMRS · C

MikroMCP exposes MikroTik RouterOS and SwOS operations as MCP tools and includes several change-safety and auditing features. It is intended for users managing MikroTik equipment; SwOS support is experimental.

Strongest · Documentation 14/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
12/20
Maintenance
12/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 10/20
The README lists 140 typed tools, stdio/HTTP/SSE transports, retries, circuit breakers, and error-handling documentation, supporting a plausible happy path. The supplied material contains no verifiable CI workflows or committed tests, so the static calibration caps the score below 12; initialization, tool behavior, and failure paths remain unverified.
Security and permissions 12/20
The material describes RBAC, router and tool restrictions, confirmation tokens, audit logs, dry runs, rollback, and credential-handling guidance. However, the manifest says stdio defaults to a built-in superadmin when no identity is configured, and the evidence does not verify dangerous-operation confirmation boundaries, permission defaults, or full data flows. Security is therefore only partly supported. No red-line evidence appears in the supplied material.
Maintenance 12/20
The supplied facts show an MIT license, version 1.18.0, release badge, contribution guidance, and a security-reporting page; the repository is not archived and is reported to have 115 stars and no open issues. Commit history, release history, dependency updates, and security-response details are not verifiable here, so sustained maintenance is not established.
Documentation 14/20
The README gives a feature overview, several operational examples, a quick start, and a client configuration snippet, with links to layered configuration, security, tool-catalog, error-handling, and troubleshooting documentation. Tool parameters, limits, costs, and troubleshooting details are largely in linked material not supplied here, so their completeness cannot be verified.
Setup experience 13/20
The README provides an npm/npx single-router stdio configuration example and points to guides for binaries, Docker, and HTTP/SSE. The stated Node.js 22+ requirement and lack of evidence of an actual working connection leave runtime and configuration hurdles; the setup is relatively clear but unverified. Under static calibration, without verifiable CI and key-path tests, the score remains at or below 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the network

Best for

  • Network engineers and operators who need to inspect or manage MikroTik RouterOS devices through MCP.
  • Teams seeking network automation with typed tools, access controls, and audit capabilities.

Not for

  • Users who do not manage MikroTik RouterOS routers or SwOS switches.
  • Users who need general-purpose network device management or support for vendors not listed in the source.

Required permissions

  • The server needs connectivity to the target MikroTik device; a single-router setup can use RouterOS REST API host, username, and password settings.
  • Effective operations depend on the configured RouterOS user and MikroMCP RBAC identity; grant permissions appropriate to the intended actions.

Risks and side effects

  • The server can operate real network devices, and configuration changes may affect network availability.
  • SwOS support is marked experimental, and whole-switch configuration writes can have significant effects.
  • The README recommends least-privilege access, verified TLS or pinned fingerprints, and RBAC and audit logging for shared use.

Setup

Before you start

Runtime:Node.js 22+

MIKROMCP_ROUTER_PASS optionalsecret RouterOS REST API password for that router; obtain it from the router account configuration.
Other optional settings (5)
MIKROMCP_CONFIG_PATH optional Path to the router registry YAML file; defaults to ~/.mikromcp/routers.yaml.
MIKROMCP_ROUTER_HOST optional Address of a single router; obtain it from your MikroTik router configuration.
MIKROMCP_ROUTER_USER optional RouterOS REST API username for that router; obtain it from the router account configuration.
MIKROMCP_STDIO_IDENTITY optional Optional RBAC identity name for stdio transport; use a configured identity name.
MIKROMCP_LOG_LEVEL optional Optional log level: trace, debug, info, warn, or error.

Available through npm: configure the MCP client to run npx with arguments -y mikromcp, and set MIKROMCP_ROUTER_HOST, MIKROMCP_ROUTER_USER, and MIKROMCP_ROUTER_PASS. A router registry configuration is also supported. The server runs over stdio; the project also supports Streamable HTTP and legacy SSE transports.

claude_desktop_config.json
{"mcpServers":{"mikromcp":{"command":"npx","args":["-y","mikromcp"],"env":{"MIKROMCP_ROUTER_HOST":"192.168.88.1","MIKROMCP_ROUTER_USER":"mcp","MIKROMCP_ROUTER_PASS":"your-password"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "mikromcp": {
      "command": "npx",
      "args": [
        "-y",
        "mikromcp"
      ],
      "env": {
        "MIKROMCP_ROUTER_HOST": "192.168.88.1",
        "MIKROMCP_ROUTER_USER": "mcp",
        "MIKROMCP_ROUTER_PASS": "your-password"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.mikromcp]
command = "npx"
args = ["-y", "mikromcp"]

[mcp_servers.mikromcp.env]
MIKROMCP_ROUTER_HOST = "192.168.88.1"
MIKROMCP_ROUTER_USER = "mcp"
MIKROMCP_ROUTER_PASS = "your-password"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add mikromcp -e MIKROMCP_ROUTER_HOST=192.168.88.1 -e MIKROMCP_ROUTER_USER=mcp -e MIKROMCP_ROUTER_PASS=your-password -- npx -y mikromcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm MikroMCP tools appear in your MCP client's tool list. Ask for a router's system resources or interface status and check that the response contains device data.

Troubleshooting

  1. Check the router address, username, and password, and verify that the RouterOS REST API is enabled and reachable.
  2. Check that the router registry or environment variables match the deployment setup.
  3. Confirm that the client's configured transport matches the server's runtime mode.

Things to try

Once connected, you can ask your AI assistant things like:

  • Inspect core-01 and summarize its system resources, running interfaces, and active routes.
  • List the firewall filter and NAT rules on edge-01, flag potential issues, and make no changes.
  • Dry-run adding a static route to 10.20.0.0/16 on core-01 and explain the planned change.

Use cases

Inspect RouterOS system status, interfaces, routes, DNS settings, and logs.
Review firewall rules, DHCP leases, VLANs, and WiFi clients.
Preview planned network configuration changes and use supported rollback workflows.

Supported clients

Claude Desktop
Claude Code
Cursor
Codex
OpenClaw

Listed from the project's documentation, not tested by this site.

Overview

MikroMCP is an MCP server for MikroTik RouterOS routers and SwOS switches. It gives compatible AI clients tools to inspect, diagnose, and operate network devices. Features include typed tools, structured results, dry-run previews, RBAC, audit logs, snapshots, and rollback workflows. SwOS support is marked experimental.

Similar servers

Source revision 92629cf01e26 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mikromcp.svg)](https://followmcp.com/en/servers/mikromcp)