Skip to main content
Glama

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.

CI Release Version License: MIT Node.js >= 22 RouterOS 7.x MCP Server Tools MikroMCP MCP server MCP Toplist

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.

AI assistant connected through MikroMCP to a small MikroTik fleet, with tool calls flowing through validation, audit, and RouterOS REST


Quick Start

That's the whole setup for a single-router stdio deployment. 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.


Related MCP server: RouterOS MCP Server

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

Claude Reviewed Router Configuration


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 .js extensions

  • Zod schemas with .strict(), idempotency and dryRun for write tools

  • MikroMCPError for 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.

Available Tools

140 tools
apply_planApply PlanA
Destructive

Execute write operations in order, stopping on first failure. Each step is snapshotted and journaled individually. Pass the planFingerprint from plan_changes so the plan is refused (PLAN_STATE_CHANGED) when the configuration it touches changed after the preview โ€” this check applies to every role. Non-admin identities also need a confirmationToken (same two-step flow as other destructive tools), itself bound to the state when issued. Undo individual steps via rollback_change with the returned journal IDs.

Inputs: steps (required), routerId, planFingerprint, confirmationToken.

apply_swos_configApply SwOS ConfigA
DestructiveIdempotent

Apply a switch config document (the format get_swos_config exports) to a SwOS switch. Plans every change against the switch first; dryRun defaults to true. Writes only the endpoints that change: the VLAN table grows first (new VLANs and members), then the per-port settings (VLAN, isolation, storm and flood control), port names/negotiation/enabled, LAG and SNMP, then the table shrinks (removed VLANs and members), then system โ€” so no port loses its VLAN mid-apply. Refuses management changes (address, allow-from) unless includeManagement is true, and any plan that would cut a linked port off (its untagged VLAN moved or dropped, a trunk losing tagged VLANs or becoming an access port, a forced VLAN, a port that starts filtering VLANs, the port disabled, renegotiating, isolated from another linked port or moved in or out of a LAG, every linked port dropped from allow_from_ports; only risks the plan introduces) unless acceptLockoutRisk is true. All six endpoints are snapshotted before a real apply, so rollback_change restores the previous state; the result names any endpoint whose snapshot failed, and says so when none was recorded. A document that moves management to another VLAN (allow_from_vlan) and changes a port's VLAN settings or the VLAN table's membership at the same time is refused, because that cannot be written in a safe order (sys.b goes last and cuts the session): apply the VLAN changes first, then the move. snmp.community may reference only the secrets bound to the switch (its secrets list in routers.yaml); a switch without a list may reference none.

Inputs: config (required), dryRun, routerId, pruneVlans, +3 more.

bandwidth_testBandwidth TestA
Read-only

Run a RouterOS bandwidth test from the router to a remote host running a RouterOS btest server. Returns TX and RX throughput in Mbps. Duration capped at 20 seconds. Saturates the link โ€” not auto-retried.

Inputs: address (required), duration, protocol, routerId, +1 more.

bulk_executeBulk ExecuteA
Destructive

Fan out a single-router tool to many routers in parallel (up to concurrency), targeted by routerIds or tag. Write tools need two-step confirmation for every role: call without confirmationToken to get a fleet token, then re-call with it. Read-only tools fan out immediately. Writes snapshot+journal each router for rollback. Returns per-router results with succeeded/failed counts. To fan out a read-only tool, prefer bulk_read.

Inputs: params (required), toolName (required), tags, routerIds, +2 more.

bulk_readBulk ReadA
Read-onlyIdempotent

Fan out a read-only single-router tool (list_*, get_* and others annotated read-only) to many routers in parallel (up to concurrency), targeted by routerIds or tag. Unlike bulk_execute, the server refuses every write tool and the traffic-generating diagnostics (ping, traceroute, torch, bandwidth_test) with BULK_READ_TOOL_NOT_READ_ONLY, and never needs a confirmation token, snapshot or journal โ€” so an MCP client can allow bulk_read without allowing fleet-wide writes. Use bulk_execute for anything else. Returns per-router results with succeeded/failed counts.

Inputs: params (required), toolName (required), tags, routerIds, +1 more.

check_router_healthCheck Router HealthA
Read-onlyIdempotent

Probe a device: RouterOS routers via system/resource, SwOS switches via sys.b. Returns health status, firmware version, uptime, and (RouterOS only) CPU load and memory info. Unlike other tools, this never throws โ€” unreachable devices are reported as healthy=false.

Inputs: routerId.

create_backupCreate BackupA
Destructive

Create a binary configuration backup on a MikroTik router. The backup is saved as .backup on the router's filesystem. To encrypt it, prefer passwordSecret (a MIKROMCP_SECRET_ bound to the router in routers.yaml โ€” the password never reaches the conversation) over a literal password. Dry run checks that the secret resolves.

Inputs: name, dryRun, password, routerId, +2 more.

delete_fileDelete FileA
DestructiveIdempotent

Delete a file from the router filesystem by name. Idempotent: returns not_found gracefully if the file does not exist.

Inputs: name (required), dryRun, routerId, confirmationToken.

export_configExport ConfigA
DestructiveIdempotent

Export the router configuration as a RouterOS script. When no file is specified, returns the script text inline. When a file is specified, saves it as .rsc on the router's filesystem. Supports compact mode to show only non-default values.

Inputs: file, compact, routerId, confirmationToken.

fetch_urlFetch URLA
Destructive

Send an HTTP/HTTPS request from the router using /tool/fetch. Response body is returned inline (capped at 64 KB with [TRUNCATED] marker). Use outputFile to save to router filesystem instead. Not read-only: POSTs have side effects and outputFile writes to the router.

Inputs: url (required), method, httpData, routerId, +2 more.

get_container_configGet Container ConfigA
Read-onlyIdempotent

Read global container configuration: registry URL, RAM high-water mark, and veth interface.

Inputs: routerId.

get_dns_settingsGet DNS SettingsA
Read-onlyIdempotent

Read DNS resolver configuration: upstream servers, cache size, cache TTL, and whether remote DNS requests are allowed.

Inputs: routerId.

get_file_contentGet File ContentA
Read-onlyIdempotent

Read a text file's contents from a MikroTik router. Only suitable for text files โ€” binary files will return garbled content.

Inputs: name (required), routerId.

get_logGet LogA
Read-onlyIdempotent

Read and filter the system log from a MikroTik router. Supports filtering by topic, message prefix, and a time window (last N minutes) measured against the router's own clock. Entries with unparseable timestamps are included conservatively.

Inputs: limit, offset, prefix, topics, +2 more.

get_ntp_settingsGet NTP SettingsA
Read-onlyIdempotent

Retrieve NTP client settings from a MikroTik router.

Inputs: routerId.

get_ovpn_serverGet OpenVPN ServerA
Read-onlyIdempotent

Get the OpenVPN server configuration on a MikroTik router. Throws NOT_FOUND if the OpenVPN package is not installed.

Inputs: routerId.

get_snmp_settingsGet SNMP SettingsA
Read-onlyIdempotent

Retrieve SNMP settings from a MikroTik router.

Inputs: routerId.

get_swos_configGet SwOS ConfigA
Read-onlyIdempotent

Export a SwOS switch's configuration as one YAML document: system settings (including management access), every port's name, enabled state and VLAN settings, the VLAN table (full SwOS) and SNMP. The SNMP community is never exported. The document is the input format of apply_swos_config, so it doubles as a backup you can read and diff.

Inputs: routerId.

get_swos_endpointGet SwOS EndpointA
Read-onlyIdempotent

Fetch and decode a single SwOS '.b' endpoint (link.b, sys.b, poe.b, lacp.b, rstp.b, snmp.b, fwd.b, vlan.b, stats.b, sfp.b, host.b, acl.b, ...) as structured data. Unknown keys are preserved under '_raw'.

Inputs: endpoint (required), routerId.

get_swos_statusGet SwOS StatusA
Read-onlyIdempotent

Retrieve status from a MikroTik SwOS switch (SwOS or SwOS Lite): identity, model, firmware, uptime, per-port link state/speed/duplex, PoE mode/state/power, and SFP modules.

Inputs: include, routerId.

get_system_clockGet System ClockA
Read-onlyIdempotent

Read the current date, time, and timezone from a MikroTik router. Focused single-purpose alternative to the clock section in get_system_status.

Inputs: routerId.

get_system_statusGet System StatusA
Read-onlyIdempotent

Retrieve system status information from a MikroTik router including resource usage, identity, license, routerboard details, health sensors, and clock.

Inputs: routerId, sections.

get_upgrade_statusGet Upgrade StatusA
Read-onlyIdempotent

Read the current RouterOS package upgrade status and routerboard firmware versions. Shows installed version, latest available version, update channel, and firmware upgrade availability.

Inputs: routerId.

list_address_list_entriesList Address List EntriesA
Read-onlyIdempotent

List firewall address list entries on a MikroTik router, IPv4 (family ip, the default) or IPv6 (family ipv6). Supports filtering by list name and address.

Inputs: list, family, address, routerId.

list_arp_entriesList ARP EntriesB
Read-onlyIdempotent

List ARP table entries on a MikroTik router.

Inputs: limit, address, routerId, interface, +1 more.

list_bgp_peersList BGP PeersA
Read-onlyIdempotent

List BGP sessions on a MikroTik router (RouterOS 7+). Returns state, remote AS, prefix counts, and uptime.

Inputs: state, routerId.

list_bridge_portsList Bridge PortsA
Read-onlyIdempotent

List bridge port entries (interface membership, PVID, STP role and status) on a MikroTik router. Supports filtering by bridge and interface, with pagination.

Inputs: limit, bridge, offset, routerId, +1 more.

list_bridgesList BridgesA
Read-onlyIdempotent

List bridge interfaces and their port members on a MikroTik router.

Inputs: limit, offset, routerId.

list_bridge_vlansList Bridge VLANsA
Read-onlyIdempotent

List the bridge VLAN table (interface/bridge/vlan) on a MikroTik router: per entry the bridge, vlan-ids, configured tagged/untagged ports, the current-tagged/current-untagged ports RouterOS actually applies, and whether it is dynamic. Filter by bridge and by a VLAN id (matched inside ranges and lists), with pagination.

Inputs: limit, bridge, offset, vlanId, +1 more.

list_certificatesList CertificatesB
Read-onlyIdempotent

List certificates on a MikroTik router.

Inputs: name, limit, expired, routerId.

list_connectionsList ConnectionsA
Read-onlyIdempotent

List active connection tracking entries from the router firewall table. Filters are applied client-side. Useful for diagnosing NAT and firewall behavior.

Inputs: limit, protocol, routerId, dstAddress, +1 more.

list_container_envsList Container EnvsA
Read-onlyIdempotent

List container environment variable entries, optionally filtered by container name.

Inputs: name, limit, routerId.

list_container_mountsList Container MountsA
Read-onlyIdempotent

List container volume mount definitions with source path, destination path, and mount name.

Inputs: name, limit, routerId.

list_containersList ContainersA
Read-onlyIdempotent

List RouterOS container instances with status, image, and network information.

Inputs: routerId.

list_dhcp_clientsList DHCP ClientsB
Read-onlyIdempotent

List DHCP client configurations on a MikroTik router. Shows which interfaces obtain their IP via DHCP, current status, and assigned address.

Inputs: limit, offset, status, routerId, +1 more.

list_dhcp_leasesList DHCP LeasesA
Read-onlyIdempotent

List DHCP leases on a MikroTik router with optional filtering by server, status, lease type (dynamic/static), and MAC address. Supports pagination.

Inputs: limit, offset, server, status, +3 more.

list_dhcp_serversList DHCP ServersA
Read-onlyIdempotent

List DHCP servers on a MikroTik router.

Inputs: limit, offset, routerId, interface.

list_dhcpv6_clientsList DHCPv6 ClientsA
Read-onlyIdempotent

List DHCPv6 clients on a MikroTik router: what each requests (address and/or prefix), its status, the delegated prefix and the pool it fills, and whether it adds a default route or uses the peer's DNS. Supports filtering by interface and status, with pagination.

Inputs: limit, offset, status, routerId, +1 more.

list_dns_entriesList DNS EntriesA
Read-onlyIdempotent

List static DNS entries on a MikroTik router with optional filtering by name and type.

Inputs: name, type, limit, offset, +1 more.

list_filesList FilesA
Read-onlyIdempotent

List files on a MikroTik router filesystem. Supports filtering by name and type.

Inputs: name, type, routerId.

list_firewall_rulesList Firewall RulesA
Read-onlyIdempotent

List firewall rules from the filter, nat or raw table on a MikroTik router, IPv4 (family ip, the default) or IPv6 (family ipv6), in evaluation order. Supports filtering by chain and disabled state, with pagination.

Inputs: chain, limit, table, family, +3 more.

list_interface_list_membersList Interface List MembersA
Read-onlyIdempotent

List interface list memberships (which interface belongs to which list, e.g. WAN/LAN) on a MikroTik router. Supports filtering by list and interface, with pagination.

Inputs: list, limit, offset, routerId, +1 more.

list_interface_listsList Interface ListsA
Read-onlyIdempotent

List all interface lists defined on the router.

Inputs: limit, routerId.

list_interfacesList InterfacesA
Read-onlyIdempotent

List network interfaces on a MikroTik router with optional filtering by type and status. Supports pagination and optional traffic counters.

Inputs: type, limit, offset, status, +3 more.

list_ip_addressesList IP AddressesA
Read-onlyIdempotent

List IPv4 addresses assigned to interfaces on a MikroTik router, including dynamic ones (DHCP client, PPP). Supports filtering by interface and disabled state, with pagination.

Inputs: limit, offset, disabled, routerId, +1 more.

list_ip_poolsList IP PoolsA
Read-onlyIdempotent

List IP address pools on a MikroTik router. Supports filtering by name and pagination.

Inputs: name, limit, offset, routerId.

list_ipsec_peersList IPSec PeersA
Read-onlyIdempotent

List IPSec peers on a MikroTik router.

Inputs: limit, address, routerId.

list_ipsec_policiesList IPSec PoliciesB
Read-onlyIdempotent

List IPSec policies on a MikroTik router.

Inputs: limit, routerId, dstAddress, srcAddress.

list_ip_servicesList IP ServicesA
Read-onlyIdempotent

List IP services on a MikroTik router (api, api-ssl, ssh, telnet, www, www-ssl, winbox, ftp) with their port numbers and enabled/disabled status.

Inputs: name, enabled, routerId.

list_ipv6_addressesList IPv6 AddressesA
Read-onlyIdempotent

List IPv6 addresses on a MikroTik router, including dynamic ones (link-local, SLAAC, DHCPv6). Shows EUI-64, router-advertisement and DHCPv6-PD pool settings. Supports filtering by interface and disabled state, with pagination.

Inputs: limit, offset, disabled, routerId, +1 more.

list_ipv6_neighborsList IPv6 NeighborsA
Read-onlyIdempotent

List the IPv6 neighbor table (the IPv6 counterpart of ARP) on a MikroTik router: address, MAC, interface, reachability state, and whether the neighbor is a router. Supports filtering by interface and status, with pagination.

Inputs: limit, offset, status, routerId, +1 more.

list_journalList Write JournalA
Read-onlyIdempotent

List recent entries from the server's write journal (write-journal.ndjson): every journaled write with its journalId, timestamp, tool, router, parameters (as redacted at write time), snapshot ids and outcome โ€” newest first. Read-only. Use it to recover a lost journalId for rollback_change, or to audit what was written when. Only entries with rollbackable: true can be rolled back โ€” dry runs and writes without snapshots (run_command, plan_changes) cannot.

Inputs: tool, limit, routerId.

list_log_actionsList Log ActionsA
Read-onlyIdempotent

List RouterOS logging action targets (system/logging/action) with optional type filter.

Inputs: type, limit, routerId.

list_log_rulesList Log RulesA
Read-onlyIdempotent

List RouterOS logging rules (system/logging) with optional topic substring and action exact-match filtering.

Inputs: limit, topics, routerId, logAction.

list_mangle_rulesList Mangle RulesA
Read-onlyIdempotent

List firewall mangle rules on a MikroTik router in evaluation order, IPv4 (family ip, the default) or IPv6 (family ipv6). Supports filtering by chain, action, and disabled state.

Inputs: chain, action, family, disabled, +1 more.

list_neighborsList NeighborsB
Read-onlyIdempotent

List discovered neighbors (CDP/LLDP/MNDP) on a MikroTik router.

Inputs: limit, routerId, interface.

list_netwatch_entriesList Netwatch EntriesB
Read-onlyIdempotent

List Netwatch monitoring entries on a MikroTik router.

Inputs: host, limit, status, routerId.

list_ospf_neighborsList OSPF NeighborsA
Read-onlyIdempotent

List OSPF neighbors on a MikroTik router (RouterOS 7+). Returns neighbor state, interface, DR/BDR, and uptime.

Inputs: state, routerId.

list_ovpn_clientsList OpenVPN ClientsA
Read-onlyIdempotent

List OpenVPN client interfaces on a MikroTik router. Shows name, remote server, and connection status.

Inputs: limit, offset, routerId.

list_packagesList PackagesA
Read-onlyIdempotent

List installed RouterOS packages with version and enabled status.

Inputs: name, routerId.

list_pppoe_clientsList PPPoE ClientsA
Read-onlyIdempotent

List PPPoE client interfaces on a MikroTik router. Shows name, parent interface, ISP username, and connection status.

Inputs: limit, offset, status, routerId, +1 more.

list_ppp_profilesList PPP ProfilesA
Read-onlyIdempotent

List PPP profiles including the built-in default and default-encryption profiles.

Inputs: name, limit, routerId.

list_queuesList QueuesA
Read-onlyIdempotent

List simple queues on a MikroTik router.

Inputs: limit, target, routerId.

list_routersList RoutersA
Read-onlyIdempotent

List the routers configured in the registry (routers.yaml): id, host, port, TLS status, tags, ROS version, and which is the default. Read-only reflection of local config โ€” no RouterOS API call, no credentials in the response. rosVersion is what routers.yaml states and may lag a router upgrade. Once get_system_status or check_router_health has reached a router, rosVersionSeen and rosVersionSeenAt show what it reported to this server (kept in memory, so empty after a restart or a host change); ask get_system_status for the live version. Use it to discover valid routerId values and tags for targeting other tools (including bulk_read and bulk_execute).

Inputs: tags.

list_routesList Static RoutesA
Read-onlyIdempotent

List routes on a MikroTik router (IPv4 by default, IPv6 with family=ipv6) with optional filtering by active status and dynamic status. Supports pagination.

Inputs: limit, family, offset, routerId, +2 more.

list_routing_rulesList Routing RulesA
Read-onlyIdempotent

List policy routing rules on a MikroTik router in evaluation order. Supports filtering by table and disabled state.

Inputs: table, disabled, routerId.

list_routing_tablesList Routing TablesA
Read-onlyIdempotent

List custom routing tables on a MikroTik router.

Inputs: routerId.

list_scheduled_jobsList Scheduled JobsA
Read-onlyIdempotent

List RouterOS scheduler entries on a MikroTik router with next-run time, interval, and disabled state.

Inputs: name, routerId.

list_scriptsList ScriptsA
Read-onlyIdempotent

List RouterOS scripts on a MikroTik router. Supports optional name filter.

Inputs: name, routerId.

list_swos_endpointsList SwOS EndpointsA
Read-onlyIdempotent

List the SwOS/SwOS Lite '.b' API endpoints supported by this server, with the decoded field names per endpoint. Read-only schema introspection โ€” no device call.

Inputs: routerId.

list_user_groupsList User GroupsA
Read-onlyIdempotent

List local user groups on a MikroTik router.

Inputs: limit, routerId.

list_usersList UsersA
Read-onlyIdempotent

List local users on a MikroTik router. Passwords are never returned.

Inputs: group, limit, routerId.

list_vrrp_instancesList VRRP InstancesA
Read-onlyIdempotent

List VRRP instances on a MikroTik router.

Inputs: limit, routerId, interface.

list_wifi_clientsList WiFi ClientsA
Read-onlyIdempotent

List currently connected WiFi clients (stations) with signal strength and transfer rates.

Inputs: limit, offset, routerId, interface.

list_wifi_interfacesList WiFi InterfacesA
Read-onlyIdempotent

List WiFi/wireless interfaces on a MikroTik router. Uses /interface/wifi on ROS 7.x, /interface/wireless on older versions.

Inputs: limit, offset, routerId.

list_wireguard_interfacesList WireGuard InterfacesA
Read-onlyIdempotent

List WireGuard interfaces and their status on a MikroTik router.

Inputs: limit, offset, routerId.

list_wireguard_peersList WireGuard PeersA
Read-onlyIdempotent

List WireGuard peers with last handshake time and transfer statistics.

Inputs: limit, offset, routerId, interface.

manage_address_list_entryManage Address List EntryA
DestructiveIdempotent

Add or remove a firewall address list entry, IPv4 (family ip, the default) or IPv6 (family ipv6). Idempotent by list name + address. Supports dry-run mode.

Inputs: list (required), action (required), address (required), dryRun, +5 more.

manage_bridgeManage Bridge InterfaceA
DestructiveIdempotent

Create, update, or remove a bridge interface on a MikroTik router. Idempotent: create returns already_exists if a bridge with the same name (and the requested vlanFiltering) exists, update returns no_change when nothing differs. update sets vlanFiltering, comment, disabled. Enabling vlanFiltering is the classic lock-out: before turning it on, verify the management VLAN, that the bridge itself is listed as tagged in list_bridge_vlans for every VLAN interface on the bridge, and that port PVIDs (list_bridge_ports) put the management port in the VLAN that reaches the router's address. Configure the VLAN table (manage_bridge_vlan) and PVIDs (manage_bridge_port) first and enable filtering last; dry-run first and read the warnings.

Inputs: name (required), action (required), dryRun, comment, +4 more.

manage_bridge_portManage Bridge PortA
DestructiveIdempotent

Add, update, or remove an interface as a bridge port on a MikroTik router, and set its VLAN-filtering port settings (pvid, frameTypes, ingressFiltering) on add or update. Idempotent: add returns already_exists if the port exists with the requested settings (CONFLICT if they differ; use update), update returns no_change when nothing differs and NOT_FOUND when the interface is not a port of that bridge. Results warn when the bridge has vlan-filtering off (the settings have no effect yet) or on (a PVID change on the management port can cut the session).

Inputs: action (required), bridge (required), interface (required), pvid, +5 more.

manage_bridge_vlanManage Bridge VLANA
DestructiveIdempotent

Add, update, or remove a bridge VLAN table entry (interface/bridge/vlan): which ports carry which VLANs tagged or untagged. Idempotent by bridge + vlanIds, compared as a set of ids (10,20 equals 20,10; 100-102 equals 100,101,102) with port lists compared order-insensitively: add returns already_exists when an equal entry exists and CONFLICT when it exists with different ports or overlaps another entry's VLANs; update returns no_change when nothing differs; update and remove return NOT_FOUND when no static entry has exactly those VLANs. Dynamic entries (created by RouterOS from PVIDs) are refused. A port listed as both tagged and untagged is rejected. Results warn when the bridge has vlan-filtering off (the entry has no effect until it is on) and when a change drops the bridge itself from a VLAN while filtering is on. Workflow: create the VLAN entries, set access-port PVIDs with manage_bridge_port, then enable vlan-filtering with manage_bridge last.

Inputs: action (required), bridge (required), vlanIds (required), dryRun, +6 more.

manage_certificateManage CertificateC
Destructive

Remove, trust, or untrust a certificate. Idempotent: trust/untrust return early if already in the target state.

Inputs: name (required), action (required), dryRun, routerId, +1 more.

manage_containerManage ContainerA
DestructiveIdempotent

Create, start, stop, or remove a RouterOS container. create needs a pre-configured veth interface; start/stop are no-ops when already in the target state; remove throws NOT_FOUND when absent. Supports dry-run.

Inputs: name (required), action (required), dryRun, comment, +6 more.

manage_container_configManage Container ConfigB
DestructiveIdempotent

Update global container settings. Idempotent: returns no_change if nothing differs.

Inputs: dryRun, routerId, ramHighMb, registryUrl, +2 more.

manage_container_envManage Container EnvA
DestructiveIdempotent

Add or remove a container environment variable. Idempotent by name+key. add returns already_exists if the entry exists with the same value; throws CONFLICT if the value differs.

Inputs: key (required), name (required), action (required), value, +3 more.

manage_container_mountManage Container MountA
DestructiveIdempotent

Add or remove a container volume mount. Idempotent by name: add returns already_exists if the mount exists with matching src/dst; throws CONFLICT if name exists with different paths.

Inputs: name (required), action (required), dst, src, +3 more.

manage_dhcp_clientManage DHCP ClientA
DestructiveIdempotent

Add, remove, enable, or disable a DHCP client on an interface. Idempotent by interface name: add returns already_exists if a DHCP client is already configured on the same interface.

Inputs: action (required), interface (required), dryRun, comment, +5 more.

manage_dhcp_leaseManage DHCP LeaseA
DestructiveIdempotent

Convert a dynamic DHCP lease to static (make-static) or remove a lease. Idempotent by MAC address.

Inputs: action (required), macAddress (required), dryRun, routerId, +1 more.

manage_dhcp_serverManage DHCP ServerA
DestructiveIdempotent

Add, remove, enable, or disable a DHCP server. Idempotent by name: add returns already_exists if a server with the same name, interface, and address pool already exists.

Inputs: name (required), action (required), dryRun, comment, +5 more.

manage_dns_entryManage DNS EntryA
DestructiveIdempotent

Add or remove a static DNS entry, found by name (case-insensitive) and type. add returns already_exists if such a record already has the requested value and disabled state (and ttl/comment, when given), and throws CONFLICT if it differs; add never creates a second record with the same name and type. remove deletes the one matching record; when several share the name (round-robin), pass address/cname/text to pick one.

Inputs: name (required), action (required), ttl, text, +8 more.

manage_dns_settingsManage DNS SettingsB
DestructiveIdempotent

Update DNS resolver settings (upstream servers, cache size, cache TTL, allow-remote-requests). Idempotent: returns no_change if nothing differs.

Inputs: dryRun, servers, routerId, cacheSize, +4 more.

manage_firewall_ruleManage Firewall RuleA
DestructiveIdempotent

Add, remove, disable, enable, or move a firewall rule on a MikroTik router, in the filter, nat or raw table, IPv4 (family ip, the default) or IPv6 (family ipv6). Matches addresses, ports, protocol, interfaces, interface lists, and connection/NAT state; nat rules take toAddresses/toPorts (e.g. a dst-nat port forward), jump rules need jumpTarget, reject rules may set rejectWith. Uses comment as idempotency key for deduplication and identification: a repeated add returns already_exists only when the match, NAT targets, jump target, reject reply, and disabled state agree, otherwise CONFLICT (use enable/disable when only the disabled state differs). move takes ruleId and destination (a rule .id to place it before, or end) instead of chain/ruleAction/comment, and returns no_change when the rule is already there; dynamic rules cannot be moved. Supports dry-run mode. Every real write is guarded by a dead-man switch (autoRevertSeconds, default 60): a RouterOS scheduler job that undoes the change is armed first and removed only once the router answers a new REST connection afterwards, so a rule that locks out management reverts itself.

Inputs: action (required), chain, table, dryRun, +25 more.

manage_interface_listManage Interface ListA
DestructiveIdempotent

Add or remove an interface list. Idempotent by name. Removing a list that has members is blocked by RouterOS โ€” the error is surfaced as-is.

Inputs: name (required), action (required), dryRun, comment, +2 more.

manage_interface_list_memberManage Interface List MemberA
DestructiveIdempotent

Add or remove an interface from an interface list. Idempotent by list+interface composite key. add returns already_exists if the membership exists. remove returns not_found gracefully.

Inputs: list (required), action (required), interface (required), dryRun, +3 more.

manage_ip_addressManage IP AddressA
DestructiveIdempotent

Add, update, or remove an IP address on a MikroTik router interface. Performs idempotency checks for add operations and supports dry-run mode for all actions.

Inputs: action (required), address (required), interface (required), dryRun, +5 more.

manage_ip_poolManage IP PoolA
DestructiveIdempotent

Add or remove an IP address pool. Idempotent by name: add returns already_exists if a pool with the same name and ranges already exists.

Inputs: name (required), action (required), dryRun, ranges, +3 more.

manage_ipsec_peerManage IPSec PeerA
DestructiveIdempotent

Add, remove, enable, or disable an IPSec peer. Idempotent by name: add returns already_exists if a peer with the same name and address already exists.

Inputs: name (required), action (required), dryRun, address, +6 more.

manage_ipsec_policyManage IPSec PolicyA
DestructiveIdempotent

Add, remove, enable, or disable an IPSec policy. Idempotent by composite key (srcAddress + dstAddress + tunnel).

Inputs: action (required), dstAddress (required), srcAddress (required), level, +7 more.

manage_ip_serviceManage IP ServiceA
DestructiveIdempotent

Enable or disable a RouterOS IP service (api, api-ssl, ssh, telnet, www, www-ssl, winbox, ftp). Port number changes are intentionally not supported to prevent accidental lockout. MikroMCP reaches RouterOS through the REST API on www-ssl (or www for plaintext): disabling the service its connection uses cuts MikroMCP off from the router, including any later call to re-enable it.

Inputs: name (required), action (required), dryRun, routerId, +1 more.

manage_ipv6_addressManage IPv6 AddressA
DestructiveIdempotent

Add, update, or remove a static IPv6 address on a MikroTik router interface, including EUI-64 and DHCPv6-PD pool (fromPool) addresses. Idempotent by address and interface: an identical add returns already_exists, an update with nothing to change returns no_change. Addresses are compared in canonical form. Dynamic addresses are refused. Supports dry-run for all actions.

Inputs: action (required), address (required), interface (required), eui64, +8 more.

manage_log_actionManage Log ActionA
DestructiveIdempotent

Add or remove a RouterOS logging action target. Idempotent by name. add throws VALIDATION if type is missing; returns already_exists if name found. remove returns not_found gracefully. Supports dry-run.

Inputs: name (required), action (required), type, dryRun, +5 more.

manage_log_ruleManage Log RuleA
DestructiveIdempotent

Add, remove, enable, or disable a RouterOS logging rule. Idempotent by topics+logAction (add โ†’ already_exists on match; remove โ†’ not_found handled gracefully; enable/disable throw NOT_FOUND when absent). Supports dry-run.

Inputs: action (required), topics (required), logAction (required), dryRun, +3 more.

manage_mangle_ruleManage Mangle RuleA
DestructiveIdempotent

Add, remove, enable, disable, or move a firewall mangle rule, IPv4 (family ip, the default) or IPv6 (family ipv6). ruleAction sets the action; when it is omitted, a new* value implies its own (newRoutingMark โ†’ mark-routing), otherwise accept. Each new* value is accepted only under its action. Uses comment as idempotency key: a repeated add returns already_exists only when the chain, match fields, marks, DSCP, MSS, passthrough, and the given or implied action agree, otherwise CONFLICT. move takes ruleId and destination (a rule .id to place it before, or end) instead of comment, and returns no_change when the rule is already there; dynamic rules cannot be moved. Supports dry-run mode.

Inputs: action (required), chain, dryRun, family, +22 more.

manage_netwatch_entryManage Netwatch EntryA
DestructiveIdempotent

Add, remove, enable, or disable a Netwatch monitoring entry. Idempotent by host+port: add returns already_exists if an entry with the same host and port already exists.

Inputs: host (required), action (required), port, dryRun, +5 more.

manage_ntp_clientManage NTP ClientB
DestructiveIdempotent

Update NTP client settings on a MikroTik router. Idempotent: returns already_set if no changes are needed.

Inputs: mode, dryRun, enabled, servers, +3 more.

manage_ovpn_clientManage OpenVPN ClientA
DestructiveIdempotent

Add, update, or remove an OpenVPN client interface. Idempotent by name (already_exists on matching name+connectTo; CONFLICT on differing connectTo; no_change when an update differs in nothing). Password is always written when provided since RouterOS does not return it on GET.

Inputs: name (required), action (required), mode, port, +8 more.

manage_ovpn_serverManage OpenVPN ServerA
DestructiveIdempotent

Enable, disable, or configure the OpenVPN server (a per-router singleton). Throws NOT_FOUND if the OpenVPN package is not installed. The set action requires at least one configuration field.

Inputs: action (required), auth, mode, port, +6 more.

manage_packageManage PackageA
DestructiveIdempotent

Enable or disable a RouterOS package. Changes take effect only after a router reboot โ€” use the reboot tool to apply. Idempotent: no-op if already in the target state.

Inputs: name (required), action (required), dryRun, routerId, +1 more.

manage_pppoe_clientManage PPPoE ClientA
DestructiveIdempotent

Add, update, or remove a PPPoE client interface. Idempotent by name (already_exists on matching name+interface+user; CONFLICT on differing config; no_change when an update differs in nothing). Password is always written when provided since RouterOS does not return it on GET.

Inputs: name (required), action (required), user, dryRun, +7 more.

manage_ppp_profileManage PPP ProfileA
DestructiveIdempotent

Add, update, or remove a PPP profile. Idempotent by name. update returns no_change when requested values match. Built-in profiles (default, default-encryption) cannot be removed โ€” RouterOS blocks this and the error is surfaced.

Inputs: name (required), action (required), dryRun, comment, +7 more.

manage_queueManage QueueA
DestructiveIdempotent

Add, remove, enable, or disable a simple queue. Idempotent by name: add returns already_exists if a queue with the same name and target already exists.

Inputs: name (required), action (required), dryRun, target, +5 more.

manage_routeManage Static RouteA
DestructiveIdempotent

Add or remove a static route on a MikroTik router, IPv4 by default or IPv6 with family=ipv6 (link-local gateways as fe80::1%ether1). Performs idempotency checks for add operations and supports dry-run mode for all actions.

Inputs: action (required), gateway (required), dstAddress (required), dryRun, +7 more.

manage_routing_ruleManage Routing RuleA
DestructiveIdempotent

Add, remove, enable, or disable a policy routing rule. Idempotent by srcAddress+dstAddress+interface+table composite key; a repeated add with an explicit, different ruleAction is a CONFLICT. Supports dry-run mode.

Inputs: table (required), action (required), dryRun, priority, +6 more.

manage_routing_tableManage Routing TableA
DestructiveIdempotent

Create or remove a custom routing table. Idempotent by table name. Supports dry-run mode.

Inputs: name (required), action (required), fib, dryRun, +2 more.

manage_scheduled_jobManage Scheduled JobA
DestructiveIdempotent

Add, update, remove, enable, or disable a RouterOS scheduler entry. onEvent is arbitrary RouterOS script run with the router user's policies, so this tool is destructive. Idempotent by name. add throws CONFLICT if name exists; update throws NOT_FOUND if it does not. Supports dry-run.

Inputs: name (required), action (required), dryRun, comment, +6 more.

manage_scriptManage ScriptA
DestructiveIdempotent

Add, update, or remove a RouterOS script. Idempotent by name. add throws CONFLICT if the name already exists; update throws NOT_FOUND if it does not. Supports dry-run.

Inputs: name (required), action (required), dryRun, source, +4 more.

manage_upgradeManage UpgradeA
Destructive

Trigger a RouterOS package update check or install. 'check' queries the update server for new packages. 'install' downloads and applies the update โ€” the router will reboot automatically. Supports dry-run.

Inputs: action (required), dryRun, routerId, confirmationToken.

manage_userManage UserA
DestructiveIdempotent

Add, remove, enable, disable, or set the password for a local RouterOS user. Idempotent by name: add returns already_exists if a user with the same name and group already exists.

Inputs: name (required), action (required), group, dryRun, +5 more.

manage_user_groupManage User GroupA
DestructiveIdempotent

Add, update, or remove a local RouterOS user group. Idempotent by name: add returns already_exists if a group with the same name and policy already exists.

Inputs: name (required), action (required), skin, dryRun, +3 more.

manage_vlanManage VLAN InterfaceA
DestructiveIdempotent

Add, remove, enable, or disable a VLAN interface. Idempotent by name: add returns already_exists when a VLAN with matching name, vlan-id, and parent interface exists. Supports dry-run mode.

Inputs: name (required), action (required), mtu, dryRun, +6 more.

manage_vrrp_instanceManage VRRP InstanceA
DestructiveIdempotent

Add, remove, enable, or disable a VRRP instance. Idempotent by name: add returns already_exists if an instance with the same name, interface, and VRID already exists.

Inputs: name (required), action (required), vrid, dryRun, +7 more.

manage_wifi_interfaceManage WiFi InterfaceA
DestructiveIdempotent

Enable, disable, or update SSID settings on a WiFi interface. At least one of disabled or ssid must be provided.

Inputs: name (required), ssid, dryRun, disabled, +2 more.

manage_wireguard_interfaceManage WireGuard InterfaceA
DestructiveIdempotent

Add, remove, enable, or disable a WireGuard interface. Idempotent by name. RouterOS generates the private key on create โ€” it is never passed in. The public key is returned after creation.

Inputs: name (required), action (required), mtu, dryRun, +4 more.

manage_wireguard_peerManage WireGuard PeerA
DestructiveIdempotent

Add or remove a WireGuard peer. Add returns already_exists when the public key and explicitly requested endpoint/allowed addresses match; different settings produce CONFLICT without changing the peer. Omitted settings are left unchanged.

Inputs: action (required), interface (required), publicKey (required), dryRun, +5 more.

pingPingA
Read-onlyIdempotent

Send ICMP echo requests from the router to a target address. Returns per-packet RTT and summary statistics. 100% packet loss is a valid result, not an error.

Inputs: address (required), size, count, routerId, +1 more.

plan_changesPlan ChangesA
Idempotent

Preview a sequence of write operations: each step runs with dryRun=true against live state, returning affected paths and the predicted action per step. Also returns a planFingerprint binding the steps to the configuration they were previewed against; pass it to apply_plan to execute the same steps for real, refused if the router changed in between.

Inputs: steps (required), routerId.

rebootRebootA
Destructive

Trigger a controlled router reboot with an optional delay. delay=0 reboots immediately; delay>0 adds a one-shot "mikromcp-reboot" scheduler entry on the router (calling again replaces it; remove it to cancel). Supports dry-run. Use this tool instead of run_command for reboots โ€” run_command's deny list blocks /system reboot*.

Inputs: delay, dryRun, routerId, confirmationToken.

reload_configReload ConfigurationA
DestructiveIdempotent

Re-read routers.yaml and identities.yaml without restarting the server (the same as sending it SIGHUP) and report which routers and identities were added, removed or changed, by id and field name. Both files are checked first: if either is missing or invalid, nothing changes and the error names the problem. Pooled connections and circuit breakers of changed or removed routers are dropped, so the next call connects with the new settings. Cached identity tokens are cleared, so a revoked token stops working. In HTTP mode a file with readonly or operator identities is refused unless MIKROMCP_CONFIRMATION_SECRET is set. Needs an admin or superadmin identity. With dryRun it reports what would change and changes nothing. Server settings (MIKROMCP_* environment variables, the HTTP port) are not reloaded.

Inputs: dryRun, confirmationToken.

restore_swos_backupRestore SwOS BackupA
Destructive

Restore a backup.swb file from the server's SwOS folder onto the switch, as the web UI's Restore Backup does. The switch replaces its whole configuration and reboots, so it is unreachable for a while, and its address may change to the one in the backup. By default the current configuration is saved first. dryRun defaults to true.

Inputs: file (required), force, dryRun, routerId, +2 more.

rollback_changeRollback ChangeA
Destructive

Restore device state to before a write, identified by its journal ID. RouterOS: reads the before-snapshot, diffs against live state, and applies the reverse. SwOS: re-POSTs the exact pre-write '.b' blob. Use dryRun=true to preview. Requires MIKROMCP_DATA_DIR (defaults to data/).

Inputs: journalId (required), dryRun, routerId, confirmationToken.

run_commandRun CommandA
Destructive

Execute an arbitrary RouterOS console command via SSH. Guarded by an allow/deny policy (built-in deny list blocks destructive commands; tighten via cmdAllow in routers.yaml or MIKROMCP_CMD_ALLOW). Prefer dedicated tools (reboot, etc.) where available. Output capped at 4000 characters. dryRun checks the allow/deny policy only (the result says validated: policy, syntaxChecked: false): it does not check the syntax or what the command refers to, so a passing dry run does not show the command will work. Journaled for audit like every write (see list_journal), but never snapshotted: arbitrary commands touch unknown config sections, so it cannot be rolled back via rollback_change โ€” prefer a dedicated tool when one exists, and note the manual undo command in your own records.

Inputs: command (required), dryRun, routerId, confirmationToken.

run_scriptRun ScriptA
Destructive

Execute a named RouterOS script. Fire-and-forget โ€” the script runs asynchronously and its output is written to the router system log. Use get_log after calling this tool to see results.

Inputs: name (required), routerId, confirmationToken.

save_swos_backupSave SwOS BackupA

Download the switch's own configuration backup (backup.swb, the file the web UI's Save Backup produces) into the server's SwOS folder. The file is MikroTik's opaque format: it restores only through restore_swos_backup or the web UI, on the same model. A switch on factory defaults has nothing to save. Writes a file on the server (owner-only), so it is audited like a write.

Inputs: routerId.

set_swos_passwordSet SwOS PasswordA
Destructive

Change a SwOS switch's admin password, as the web UI's Password Change does. The new password comes from the server secret MIKROMCP_PASSWORD_, never from the conversation; the current one is the router's configured credential. Passwords are ASCII, at most 15 characters. After the change this call's client keeps working with the new password, but the server rebuilds the client from the router's configured credential ({PREFIX}_PASS) after any authentication failure or restart, so that variable must be updated right away. On SwOS Lite the switch does not answer the change; the result is confirmed by logging in with the new password. dryRun defaults to true.

Inputs: newPasswordSecret (required), dryRun, routerId, confirmationToken.

set_system_clockSet System ClockA
DestructiveIdempotent

Set the system date, time, and/or timezone on a MikroTik router. Idempotent: returns already_set if the values already match. Supports dry-run.

Inputs: date, time, dryRun, routerId, +2 more.

torchTorchA
Read-onlyIdempotent

Capture a real-time traffic snapshot on a router interface. RouterOS runs the capture for duration seconds; the tool returns the flows of the final update with their TX/RX rates in bits per second and packets per second. Not auto-retried.

Inputs: interface (required), duration, routerId, dstAddress, +1 more.

tracerouteTracerouteA
Read-onlyIdempotent

Trace the network path from the router to a target address. Returns an ordered hop list with RTT per hop. Timeouts and partial results are valid responses. Not auto-retried.

Inputs: address (required), count, maxHops, routerId.

upgrade_swos_firmwareUpgrade SwOS FirmwareA
DestructiveIdempotent

Upgrade a SwOS switch's firmware the way the web UI's Upgrade tab does. Resolves the latest stable version for the model from MikroTik's download server (or takes version), downloads swos--.bin over HTTPS into the server's SwOS folder (or uses file), checks it, then flashes it; the switch reboots. Refuses release candidates unless allowPrerelease is true. A switch still on its preinstalled backup firmware (a version ending in 'p', which cannot save configuration) counts as needing the upgrade. dryRun defaults to true.

Inputs: file, board, force, dryRun, +4 more.

upload_fileUpload FileA
DestructiveIdempotent

Upload a text file to a router, overwriting any existing file of the same name. Prefers SFTP (encrypted, over SSH) and falls back to plaintext FTP if SFTP is unavailable. Requires SSH (or FTP) access for the router user. RouterOS runs a file named *.auto.rsc as a script when it arrives over FTP. Dry-run tests connectivity only.

Inputs: name (required), content (required), dryRun, routerId, +1 more.

write_swos_blobWrite SwOS BlobA
DestructiveIdempotent

Mutate a SwOS '.b' endpoint on a MikroTik switch. The full endpoint blob is read, the given fields are merged in, and the entire blob is written back (the firmware only accepts whole-blob writes); untouched fields are re-sent byte-for-byte, and a field this firmware does not expose is refused rather than injected. dryRun defaults to true โ€” preview first. Every result reports whether the schema has been verified against the switch's firmware. The pre-write blob is snapshotted, so the change can be undone with rollback_change. Returns no_change when the values already match. A real write to sys.b that changes how the switch is reached (ip, static_ip, addr_acq, allow_from_*) is refused unless includeManagement is true, since it can cut this session; static_ip and addr_acq are stored settings that do not move the live address (ip) by themselves, and the result warns about both.

Inputs: fields (required), endpoint (required), dryRun, routerId, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    A3.5/5.0

    Scored across 140 tools

    Disambiguation4/5

    The server follows a strong read/write split per resource, and descriptions explicitly disambiguate near-neighbors like get_system_status vs get_system_clock and bulk_read vs bulk_execute. With 140 tools some boundaries blurโ€”e.g., write_swos_blob vs apply_swos_config vs restore_swos_backup, and generic run_command vs dedicated toolsโ€”but the tool set remains mostly distinguishable.

    Naming Consistency4/5

    Nearly every tool uses a predictable snake_case verb_noun convention (list_*, get_*, manage_*, set_*, apply_*, rollback_*), so related operations are easy to pair. A few deviations exist, such as single-word tools (reboot, ping, traceroute, torch, fetch_url) and the get_upgrade_status/manage_upgrade mismatch, but these are minor.

    Tool Count2/5

    At 140 tools, the surface is far larger than a well-scoped set; while the RouterOS/SwOS domain is broad, this volume strains tool selection and context. The set would be better split into narrower servers (e.g., RouterOS core, firewall, SwOS) or grouped submodules.

    Completeness3/5

    Coverage is extensive across interfaces, routing, firewall, DHCP, DNS, users, containers, files, logging, diagnostics, SwOS, plus plan/rollback and bulk operations. However, notable gaps remain: SNMP is read-only (get_snmp_settings with no manage_snmp_settings), several write tools only add/remove without update (manage_ip_pool, manage_route, manage_address_list_entry), and DHCPv6 server/relay, hotspot, PPPoE server, and IP cloud have no coverage.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A bridge between AI assistants and MikroTik RouterOS devices, allowing natural language interaction to manage network configurations including VLANs, firewalls, DNS settings, and more.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with MikroTik RouterOS devices through API and SSH connections, supporting network monitoring, configuration management, and diagnostics across multiple routers with automatic connection fallback.
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A comprehensive MCP server for network device management via SSH/Telnet. Supports multiple vendors such as Cisco IOS and BDCOM, enabling AI assistants to execute commands and manage routers, switches, and firewalls.
      4
      MIT