Server data from the Official MCP Registry
MikroTik MCP server for RouterOS and SwOS: typed tools, dry-run, RBAC, audit logs, rollback.
About
MikroTik MCP server for RouterOS and SwOS: typed tools, dry-run, RBAC, audit logs, rollback.
At a glance
- Runs
- On your computer, from the npm package mikromcp, which we verified belongs to this listing.
- Works with
- Claude Desktop, Claude Code, Grok Build (formerly Cursor), Windsurf, VS Code, Codex, Antigravity CLI, Gemini CLI, ChatGPT.
- Can access
- Connects to services on the internet
- Reads files on your computer
- Writes or changes files on your computer
- Runs commands on your computer
Security report
How we scoreSerious: Uses an outdated component (@modelcontextprotocol/sdk) with a known security hole
MikroMCP is a MikroTik RouterOS/SwOS management server with bearer-token auth, bcrypt-hashed tokens, RBAC, dry-run and confirmation gates, audit logging, and rate limiting on HTTP transport. Its permissions (network_http to router REST and SSH, env_vars for credentials, file_write for snapshots/journal/audit logs, shell_exec via guarded SSH run_command) are largely proportionate to a network automation purpose, though the write-capable tool surface against production routers warrants caution. The code reviewed shows no exfiltration or malicious patterns, and the flagged items are low-risk. Supply chain analysis found 20 known vulnerabilities in dependencies (0 critical, 11 high severity). Package verification found 1 issue.
9 files analyzed ยท 25 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: MIKROMCP_CONFIG_PATH
Environment variable: MIKROMCP_ROUTER_HOST
Environment variable: MIKROMCP_ROUTER_USER
Environment variable: MIKROMCP_ROUTER_PASS
Environment variable: MIKROMCP_STDIO_IDENTITY
Environment variable: MIKROMCP_LOG_LEVEL
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"mikromcp": {
"command": "npx",
"args": [
"-y",
"mikromcp@1.19.0"
],
"env": {
"MIKROMCP_LOG_LEVEL": "your-mikromcp-log-level-here",
"MIKROMCP_CONFIG_PATH": "your-mikromcp-config-path-here",
"MIKROMCP_ROUTER_HOST": "your-mikromcp-router-host-here",
"MIKROMCP_ROUTER_PASS": "your-mikromcp-router-pass-here",
"MIKROMCP_ROUTER_USER": "your-mikromcp-router-user-here",
"MIKROMCP_STDIO_IDENTITY": "your-mikromcp-stdio-identity-here"
}
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
MikroMCP โ MikroTik MCP Server
The MikroTik MCP server: AI-native network automation for MikroTik RouterOS and SwOS. MikroMCP exposes RouterOS routers and SwOS switches as a typed, auditable Model Context Protocol server so Claude, Cursor, Codex, and other MCP clients can inspect, diagnose, and safely operate MikroTik gear in natural language.
MikroMCP exists because raw router CLI access is the wrong abstraction for AI agents. RouterOS is powerful, but asking an LLM to improvise shell commands against production network gear is risky. MikroMCP gives agents a controlled tool surface: strict schemas, idempotent writes, dry-run previews, per-router circuit breakers, retry policies, RBAC, audit logs, snapshots, and rollback-aware change workflows.
In one sentence: MikroMCP turns MikroTik RouterOS into a production-minded MCP control plane for AI infrastructure, DevOps automation, and modern router management.

Quick Start
That's the whole setup for a single-router stdio deployment. To add more routers or SwOS switches later, run mikromcp device add (it asks for the device type, tests the connection and writes routers.yaml and .env for you); mikromcp device list and mikromcp device remove <id> manage what is there. Or skip the install and the config file: with one router, this block in claude_desktop_config.json is enough (other variables in Configuration):
{ "mcpServers": { "mikromcp": { "command": "npx", "args": ["-y", "mikromcp"],
"env": { "MIKROMCP_ROUTER_HOST": "192.168.88.1", "MIKROMCP_ROUTER_USER": "mcp", "MIKROMCP_ROUTER_PASS": "your-password" } } } }
For standalone binaries, Docker, HTTP/SSE mode, the RouterOS API prerequisites, and the full 15-minute walkthrough, see the Getting Started guide.
Feature Showcase
| Category | What MikroMCP covers |
|---|---|
| ๐งญ Router management | System status, clock, reboot, packages, files, scripts, scheduler jobs, containers |
| ๐ Network operations | Interfaces, VLANs, IPv4 and IPv6 addresses, IPv6 neighbors, DHCP leases, DHCPv6 clients, DNS static records, bridge ports and bridge VLAN filtering (VLAN table, PVIDs, lock-out warnings), WiFi clients |
| ๐ฅ Firewall and policy | Filter/NAT rules, mangle rules, address lists, route tables, routing rules |
| ๐ฐ๏ธ Routing visibility | IPv4 and IPv6 static routes, routing tables, BGP peers, OSPF neighbors |
| ๐ SwOS switches | Experimental. MikroTik SwOS and SwOS Lite switches (deviceType: "swos") over the reverse-engineered .b HTTP API: port links, PoE, SFP diagnostics, guarded whole-blob writes with a firmware-compatibility check, the whole switch config as one YAML document (export, dry-run, apply), backups and firmware upgrades |
| ๐ Secure access | HTTP bearer auth, bcrypt token hashes, RBAC, router/tool restrictions, confirmation tokens |
| ๐งช Diagnostics | Router-originated ping, traceroute, torch, log filtering, guarded SSH command execution |
| ๐ก๏ธ Change safety | Dry-run, idempotent writes, snapshots, write journal, plan_changes, apply_plan, rollback_change |
| โ๏ธ Production behavior | Retries for read tools, per-router circuit breakers, correlation IDs, structured logs, audit logs |
| ๐ค AI-agent fit | Human-readable responses plus structured JSON content for reasoning, chaining, and automation; server advertises an instructions string on MCP initialize so clients self-configure; optional routerId resolved via MIKROMCP_DEFAULT_ROUTER for single-router setups; usage skill for safe, guided tool use in Claude Code |
| ๐งฉ MCP compatibility | stdio for desktop clients, Streamable HTTP and legacy SSE for remote or service-style clients |
140 typed tools in total โ browse the full catalog with parameters, defaults, and copy-paste example prompts in Available Tools.
Demo
Usage
Review by Claude

Real-World Usage Examples
Router Inspection
Use MikroMCP to inspect core-01. Summarize system resources, RouterOS version,
running interfaces, active routes, DNS settings, and recent warning/error logs.
Flag anything that looks operationally risky.
Firewall Management
List firewall filter and NAT rules on edge-01. Identify disabled rules,
overlapping port forwards, broad accept rules, and anything without comments.
Do not change anything yet.
Safe Static Route Change
Dry-run a route on core-01 for 10.20.0.0/16 via 192.168.88.1 in the main table.
Show the exact planned diff and tell me whether an existing route conflicts.
WireGuard Operations
Show WireGuard peers on branch-02. Sort by last handshake age and flag peers
that have not handshaken recently or have no transfer counters.
Interface Diagnostics
Check interface health on edge-01, then run ping and traceroute from the router
to 1.1.1.1. If packet loss is present, use torch on the WAN interface for a
short traffic snapshot.
Plan / Apply / Rollback Workflow
Create a change plan that adds a DNS record and a firewall address-list entry
on edge-01. Use dry-run first, explain the plan, then wait for approval before
applying anything.
Why MikroMCP Is Useful For AI Agents
MCP gives LLMs a standard way to call tools. MikroMCP makes RouterOS a high-quality MCP target by turning network operations into well-described, machine-readable, permission-aware actions.
AI assistants can use MikroMCP to:
- Investigate router state without memorizing RouterOS command syntax.
- Chain tool calls across interfaces, routes, firewall rules, logs, and diagnostics.
- Return both operator-friendly summaries and structured JSON for follow-up reasoning.
- Preview changes before mutation and explain exactly what would happen.
- Respect tool-level authorization, router scoping, maintenance windows, and confirmation gates.
FAQ
What is MikroMCP?
MikroMCP is an open-source Model Context Protocol (MCP) server that exposes MikroTik RouterOS as 140 typed, auditable tools โ letting AI assistants inspect, diagnose, and safely operate routers in natural language instead of improvising CLI commands.
MikroMCP vs RouterOS API
The RouterOS REST/API exposes raw endpoints. MikroMCP wraps them in schema-validated, idempotent, dry-run-able tools with RBAC, audit logging, snapshots, and rollback โ the safety layer an LLM needs before it touches production gear.
MikroMCP vs SSH automation
Instead of brittle SSH scripts that screen-scrape CLI output, MikroMCP returns structured, typed results with confirmation gates and per-router circuit breakers. SSH is used only where REST can't reach โ ping and guarded run_command.
MikroMCP for Claude Code
MikroMCP speaks MCP over stdio and HTTP/SSE, so Claude Code and Claude Desktop drive RouterOS directly. Pair it with the bundled usage skill for safe, guided workflows.
MikroMCP for Codex
Codex connects to MikroMCP over the standard MCP protocol โ see Connecting to AI Assistants.
MikroMCP for Cursor
Cursor connects to MikroMCP as an MCP server (stdio or HTTP) to inspect and manage MikroTik routers without leaving the editor.
MikroMCP for OpenClaw
Any MCP-compatible client โ OpenClaw included โ can use MikroMCP; configure it as a stdio or HTTP MCP server.
RouterOS AI Automation Guide
Start with Getting Started to install and connect, then use the usage skill and Available Tools to automate RouterOS safely with an AI assistant.
Best MCP Servers for Network Engineers
MikroMCP is purpose-built for MikroTik/RouterOS operations with production-grade safety โ dry-run, rollback, audit, and RBAC โ making it a strong MCP choice for network engineers adopting AI tooling.
Documentation
The README stays intentionally short. Everything below is documented in depth in the wiki:
| Resource | Use it for |
|---|---|
| Getting Started | Install (npm, binary, Docker), configure, and connect in 15 minutes |
| RouterOS API Setup | Enable the REST API, create a user, TLS and firewall |
| Configuration | Router registry, credentials, all environment variables |
| Running | Run commands, HTTP/SSE transport, troubleshooting |
| Connecting to Claude Desktop | Register MikroMCP in Claude Desktop |
| Connecting to AI Assistants | Claude Code, Cursor, Codex, HTTP/Docker/systemd |
| Using the Skill | Install the MikroMCP usage skill so your assistant drives the tools safely |
| Available Tools | All 140 tools โ parameters and example prompts |
| Architecture | System layers, request pipeline, auth model |
| Error Handling | Error categories, retry engine, circuit breaker |
| Security | Threat model, hardening checklist, vulnerability reporting |
| Development | Project structure, tests, MCP Inspector workflow |
| Contributing | Adding tools, coding conventions, PR checklist |
| Roadmap ยท ROADMAP.md | Shipped milestones and guiding principles |
Contributing
Issues, bug reports, tool requests, documentation improvements, and pull requests are welcome.
Good first contributions:
- Add a read-only tool for an uncovered RouterOS surface.
- Add screenshots, demo GIFs, or topology diagrams.
- Expand tests around RouterOS response normalization and idempotency edge cases.
- Help validate RouterOS version compatibility across real MikroTik devices and CHR.
Development standards:
- TypeScript strict mode, ESM imports with
.jsextensions - Zod schemas with
.strict(), idempotency anddryRunfor write tools MikroMCPErrorfor domain errors, focused Vitest coverage for every tool
Please open an issue before large changes so maintainers can align on scope.
Acknowledgements
- @f0086 โ SwOS / SwOS Lite switch support (v1.9.0), which took MikroMCP beyond RouterOS for the first time.
- @karamble โ full SwOS support (v1.14.0): the full-SwOS dialect, whole-switch config apply, backups, firmware upgrades, password changes and switch-bound secrets.
Security
MikroMCP controls real network devices โ treat it like an operations system: least-privilege RouterOS users, verified TLS (or pinned fingerprints), credentials only in ~/.mikromcp/.env, scoped RBAC identities, and audit logging for shared use. The full hardening checklist and vulnerability-reporting process are on the Security page.
Community And Support
- โญ Star the repository if MikroMCP helps your MikroTik or MCP workflow.
- ๐ด Fork it to add RouterOS surfaces your network depends on.
- ๐งต Open an issue for bugs, feature requests, compatibility notes, or documentation gaps.
License
MikroMCP is released under the MIT License.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Wayback Machine
Freeby Mearman ยท Developer Tools
MCP server and CLI tool for interacting with the Wayback Machine without API keys
Gateway
Freeby PanosSalt ยท Developer Tools
Multi-tenant MCP platform with OAuth 2.1, Entra SSO, RBAC and audit logging.
Wireshark
Freeby bx33661 ยท Developer Tools
Professional network analysis with tshark. Security audits, deep-dives, and threat detection.
X64dbg
Freeby Bromoket ยท Developer Tools
MCP server for x64dbg debugger - 23 mega-tools for AI-powered reverse engineering and debugging
Miro Ai
Freeby Miroapp ยท Developer Tools
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
Cronometer
Freeby Cphoskins ยท Developer Tools
MCP server for Cronometer โ food logs, macros, fasting, biometrics, and recurring foods
