wiresage/mikrotik-mcp
MCP server for Mikrotik
f18bd46b8333mcp-server-mikrotik0.0.0 in pyproject.tomlio.github.wiresage/mikrotik-mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 88 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 of 248 tools, prompts and resources could not be followed through the code
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 8 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- HIGHTool
disable_interfaceruns SQL by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Connect it with a read-only database user
disable_interfacecan run any query it is given. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
disable_interface, switch them off. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 240 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
add_blackhole_route, add_bridge_vlan, add_default_route, add_dns_regexp, add_dns_static, add_ip_address and 212 moreNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files218 tools · add_blackhole_route, add_bridge_vlan, add_default_route +215
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (240: 240 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
disable_interfacetool Disables an interface on the MikroTik device.Filesoutside textRuns SQL
Disables an interface on the MikroTik device.
Notes:
name: exact interface name e.g. "ether1", "bridge", "pppoe-out1"(name computed at run time)tool
No description.
add_blackhole_routetool Adds a blackhole route.Filesoutside text
Adds a blackhole route.
Notes:
dst_address: CIDR e.g. "10.0.0.0/8"
distance: 1-255add_bridge_vlantool Adds an entry to the bridge VLAN table defining tagged/untagged port membership.Filesoutside text
Adds an entry to the bridge VLAN table defining tagged/untagged port membership.
Notes:
vlan_ids: single ID, comma list, or range e.g. "10", "10,20", "100-199"
tagged: comma-separated ports carrying these VLANs tagged e.g. "ether1,ether2"
untagged: comma-separated ports carrying these VLANs untaggedadd_default_routetool Adds a default route.Filesoutside text
Adds a default route.
add_dns_regexptool Adds a DNS regexp entry.Filesoutside text
Adds a DNS regexp entry.
add_dns_statictool Adds a static DNS entry.Filesoutside text
Adds a static DNS entry.
Notes:
regexp: a regular expression the name must match. A regexp entry has no name, so ``name`` is
ignored when ``regexp`` is given (RouterOS refuses both: "only name or regexp allowed").add_ip_addresstool Adds an IP address to an interface on the MikroTik device.Filesoutside text
Adds an IP address to an interface on the MikroTik device.
add_ipv6_addresstool Adds an IPv6 address to an interface on the MikroTik device.Filesoutside text
Adds an IPv6 address to an interface on the MikroTik device.
Notes:
address: IPv6 address with prefix length, e.g. "2001:db8::1/64" or
"fe80::1/64". When `from_pool` is used, supply the host part only,
e.g. "::1/64".
advertise: include this prefix in Router Advertisements (default no).
eui_64: derive the host part of the address from the interface MAC.
from_pool: name of an IPv6 pool to take the prefix from.
no_dad: skip Duplicate Address Detection.add_routetool Adds a route to the routing table.Filesoutside text
Adds a route to the routing table.
Notes:
dst_address: CIDR e.g. "0.0.0.0/0", "192.168.1.0/24"
routing_table: name of a table from /routing table, e.g. "via_ISP2";
defaults to "main". RouterOS 6 called this the routing mark.
check_gateway: "ping" or "arp"
distance: 1-255 (lower = higher priority)add_usertool Adds a user to MikroTik device.Filesoutside text
Adds a user to MikroTik device.
add_user_grouptool Adds a user group.Filesoutside text
Adds a user group.
add_wireguard_peertool Adds a WireGuard peer (with public key and allowed addresses) to an interface on the MikroTik device.Filesoutside text
Adds a WireGuard peer (with public key and allowed addresses) to an interface on the MikroTik device.
Notes:
allowed_address: CIDR, comma-separated for multiple e.g. "10.0.0.2/32" or "10.0.0.0/24,192.168.0.0/24"
endpoint_address: remote host IP or hostname e.g. "203.0.113.1"
persistent_keepalive: seconds as string e.g. "25"backup_infotool Gets detailed information about a backup file on the MikroTik device.Filesoutside text
Gets detailed information about a backup file on the MikroTik device.
check_route_pathtool Checks the route MikroTik would use to reach a destination.Filesoutside text
Checks the route MikroTik would use to reach a destination.
check_wireless_supporttool Checks if the device supports wireless and reports the RouterOS version and wireless interface type.Filesoutside text
Checks if the device supports wireless and reports the RouterOS version and wireless interface type.
clear_logstool Explains why MikroTik's in-memory log cannot be cleared on demand.
Explains why MikroTik's in-memory log cannot be cleared on demand.
commit_safe_modetool Commits all pending Safe Mode changes to persistent storage and exits Safe Mode.Filesoutside text
Commits all pending Safe Mode changes to persistent storage and exits Safe Mode.
create_address_list_entrytool Adds an entry to an IPv4 or IPv6 firewall address list.Filesoutside text
Adds an entry to an IPv4 or IPv6 firewall address list.
Notes:
address: an address or prefix; a hostname is also accepted and RouterOS
adds a dynamic child entry per resolved address.
timeout: RouterOS duration e.g. "1h". An entry with a timeout is
dynamic, so it does not survive a reboot.
list_name is matched exactly, including any leading or trailing spaces.create_backuptool Creates a system backup on the MikroTik device.Filesoutside text
Creates a system backup on the MikroTik device.
create_basic_firewall_setuptool Creates a basic firewall setup with common security rules on the MikroTik device.Filesoutside text
Creates a basic firewall setup with common security rules on the MikroTik device.
create_dhcp_networktool Creates a DHCP network configuration (gateway, DNS, domain, etc.) on the MikroTik device.Filesoutside text
Creates a DHCP network configuration (gateway, DNS, domain, etc.) on the MikroTik device.
create_dhcp_pooltool Creates a DHCP address pool with the given IP ranges on the MikroTik device.Filesoutside text
Creates a DHCP address pool with the given IP ranges on the MikroTik device.
Notes:
ranges: hyphen-separated range(s) e.g. "192.168.1.1-192.168.1.100"
Multiple ranges comma-separated: "10.0.0.1-10.0.0.50,10.0.0.100-10.0.0.120"create_dhcp_servertool Creates a DHCP server bound to the specified interface on the MikroTik device.Filesoutside text
Creates a DHCP server bound to the specified interface on the MikroTik device.
Notes:
lease_time: duration e.g. "1d", "12h", "30m", "1h30m"create_exporttool Creates a configuration export file (rsc/json/xml) on the MikroTik device.Filesoutside text
Creates a configuration export file (rsc/json/xml) on the MikroTik device.
create_filter_ruletool Creates a firewall filter rule in the specified chain on the MikroTik device.Filesoutside text
Creates a firewall filter rule in the specified chain on the MikroTik device.
Notes:
connection_state: comma-separated e.g. "established,related,new,invalid"
limit: RouterOS rate/burst string e.g. "10,5:packet" or "10/1s:packet"
tcp_flags: RouterOS flag expression e.g. "syn,!ack"
place_before: rule number or ID (*N) to insert before e.g. "0" or "*3"
in_interface_list/out_interface_list: name of an /interface list (e.g. "LAN", "WAN") rather than a single interfacecreate_ip_pooltool Creates an IP pool with the given address ranges on the MikroTik device.Filesoutside text
Creates an IP pool with the given address ranges on the MikroTik device.
Notes:
ranges: hyphen-separated range(s) e.g. "192.168.1.1-192.168.1.100"
Multiple ranges comma-separated: "10.0.0.1-10.0.0.50,10.0.0.100-10.0.0.120"create_ipv6_filter_ruletool Creates an IPv6 firewall filter rule on the MikroTik device.Filesoutside text
Creates an IPv6 firewall filter rule on the MikroTik device.
Notes:
protocol: IPv6 uses "icmpv6", not the IPv4 spelling "icmp".
jump_target: only used with action="jump".create_ipv6_raw_ruletool Creates an /ipv6 firewall raw rule (applied before connection tracking).
Creates an /ipv6 firewall raw rule (applied before connection tracking).
Notes:
chain: "prerouting" or "output", or a custom chain reached by jump.
jump_target: required with action="jump". address_list (+ optional address_list_timeout, e.g. "1d"):
required with add-src/dst-to-address-list. Prefix a matcher value with "!" to negate it.
protocol: IPv6 uses "icmpv6", not "icmp".
place_before: internal id ("*3") or print position ("0").create_nat_ruletool Creates a NAT rule (srcnat or dstnat) on the MikroTik device.Filesoutside text
Creates a NAT rule (srcnat or dstnat) on the MikroTik device.
Notes:
to_addresses: single IP or range e.g. "10.0.0.1" or "10.0.0.1-10.0.0.10"
to_ports: single port or range e.g. "8080" or "8080-8090"
place_before: rule number or ID (*N) to insert before e.g. "0" or "*3"create_queue_treetool Creates a hierarchical queue tree entry attached to a parent interface or queue.Filesoutside text
Creates a hierarchical queue tree entry attached to a parent interface or queue.
Notes:
max_limit / limit_at / burst_limit / burst_threshold: bandwidth e.g. "10M", "512k", "1G"
burst_time: duration e.g. "8s"
parent: interface name e.g. "ether1" or parent queue name
priority: 1 (highest) – 8 (lowest)create_queue_typetool Creates a queue type (qdisc). kind selects the discipline (cake, fq-codel, sfq, red, pcq, pfifo, bfifo); remaining params are per-discipline options.Filesoutside text
Creates a queue type (qdisc). kind selects the discipline (cake, fq-codel, sfq, red, pcq, pfifo, bfifo); remaining params are per-discipline options.
Notes:
pcq_rate: bandwidth per flow e.g. "1M", "512k"
pcq_classifier: comma-separated classifiers e.g. "src-address,dst-address"
cake_rtt: round-trip time e.g. "50ms", "100ms"
fq_codel_target / fq_codel_interval: time e.g. "5ms", "100ms"create_raw_ruletool Creates an /ip firewall raw rule (applied before connection tracking).
Creates an /ip firewall raw rule (applied before connection tracking).
Notes:
chain: "prerouting" or "output", or a custom chain reached by jump.
jump_target: required with action="jump". address_list (+ optional address_list_timeout, e.g. "1d"):
required with add-src/dst-to-address-list. Prefix a matcher value with "!" to negate it.
place_before: internal id ("*3") or print position ("0").create_simple_queuetool Creates a simple queue to rate-limit a target address or interface.Filesoutside text
Creates a simple queue to rate-limit a target address or interface.
Notes:
target: IP/CIDR or interface e.g. "192.168.1.0/24" or "ether1"
max_limit / limit_at / burst_limit / burst_threshold: upload/download bandwidth
as "UL/DL" e.g. "10M/10M", or single value e.g. "10M"
burst_time: duration e.g. "8s"
priority: 1 (highest) – 8 (lowest)create_vlan_interfacetool Creates a VLAN interface on the MikroTik device with the given VLAN ID and parent interface.Filesoutside text
Creates a VLAN interface on the MikroTik device with the given VLAN ID and parent interface.
create_wireguard_interfacetool Creates a WireGuard interface on the MikroTik device.Filesoutside text
Creates a WireGuard interface on the MikroTik device.
create_wireless_access_listtool Legacy function - different in RouterOS v7.xFilesoutside text
Legacy function - different in RouterOS v7.x
create_wireless_interfacetool Creates a wireless interface on the MikroTik device (auto-detects RouterOS v6/v7 syntax).Filesoutside text
Creates a wireless interface on the MikroTik device (auto-detects RouterOS v6/v7 syntax).
create_wireless_security_profiletool Legacy function - not supported in RouterOS v7.xFilesoutside text
Legacy function - not supported in RouterOS v7.x
disable_address_list_entrytool Disables an address list entry.Filesoutside text
Disables an address list entry.
disable_dns_statictool Disables a static DNS entry.Filesoutside text
Disables a static DNS entry.
disable_filter_ruletool Disables a firewall filter rule.Filesoutside text
Disables a firewall filter rule.
disable_ipv6_filter_ruletool Disables an IPv6 firewall filter rule.Filesoutside text
Disables an IPv6 firewall filter rule.
disable_ipv6_raw_ruletool Disables an /ipv6 firewall raw rule.
Disables an /ipv6 firewall raw rule.
disable_nat_ruletool Disables a NAT rule.Filesoutside text
Disables a NAT rule.
disable_queue_treetool Disables a queue tree.Filesoutside text
Disables a queue tree.
disable_raw_ruletool Disables an /ip firewall raw rule.
Disables an /ip firewall raw rule.
disable_routetool Disables a route.Filesoutside text
Disables a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"disable_simple_queuetool Disables a simple queue.Filesoutside text
Disables a simple queue.
disable_usertool Disables a user.Filesoutside text
Disables a user.
disable_wireguard_interfacetool Disables a WireGuard interface.Filesoutside text
Disables a WireGuard interface.
disable_wireguard_peertool Disables a WireGuard peer.Filesoutside text
Disables a WireGuard peer.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"disable_wireless_interfacetool Disables a wireless interface.Filesoutside text
Disables a wireless interface.
disconnect_usertool Disconnects an active user session.Filesoutside text
Disconnects an active user session.
download_filetool Downloads a backup or export file from the MikroTik device as base64-encoded content.Filesoutside text
Downloads a backup or export file from the MikroTik device as base64-encoded content.
enable_address_list_entrytool Enables an address list entry.Filesoutside text
Enables an address list entry.
enable_dns_statictool Enables a static DNS entry.Filesoutside text
Enables a static DNS entry.
enable_filter_ruletool Enables a firewall filter rule.Filesoutside text
Enables a firewall filter rule.
enable_interfacetool Enables an interface on the MikroTik device.Filesoutside text
Enables an interface on the MikroTik device.
Notes:
name: exact interface name e.g. "ether1", "bridge", "pppoe-out1"enable_ipv6_filter_ruletool Enables an IPv6 firewall filter rule.Filesoutside text
Enables an IPv6 firewall filter rule.
enable_ipv6_raw_ruletool Enables an /ipv6 firewall raw rule.
Enables an /ipv6 firewall raw rule.
enable_nat_ruletool Enables a NAT rule.Filesoutside text
Enables a NAT rule.
enable_queue_treetool Enables a queue tree.Filesoutside text
Enables a queue tree.
enable_raw_ruletool Enables an /ip firewall raw rule.
Enables an /ip firewall raw rule.
enable_routetool Enables a route.Filesoutside text
Enables a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"enable_safe_modetool Activates MikroTik Safe Mode; changes are held in memory and auto-reverted on disconnect until committed.Filesoutside text
Activates MikroTik Safe Mode; changes are held in memory and auto-reverted on disconnect until committed.
enable_simple_queuetool Enables a simple queue.Filesoutside text
Enables a simple queue.
enable_usertool Enables a user.Filesoutside text
Enables a user.
enable_wireguard_interfacetool Enables a WireGuard interface.Filesoutside text
Enables a WireGuard interface.
enable_wireguard_peertool Enables a WireGuard peer.Filesoutside text
Enables a WireGuard peer.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"enable_wireless_interfacetool Enables a wireless interface.Filesoutside text
Enables a wireless interface.
expand_ip_pooltool Expands an existing IP pool by appending additional address ranges.Filesoutside text
Expands an existing IP pool by appending additional address ranges.
Notes:
additional_ranges: hyphen-separated range(s) e.g. "192.168.1.101-192.168.1.150"
Multiple ranges comma-separated: "10.0.0.51-10.0.0.60,10.0.0.70-10.0.0.80"export_dns_configtool Exports DNS configuration to a file.Filesoutside text
Exports DNS configuration to a file.
export_logstool Exports logs to a .txt file on the MikroTik device with optional topic and time filters.Filesoutside text
Exports logs to a .txt file on the MikroTik device with optional topic and time filters.
export_sectiontool Returns a RouterOS configuration section as an export script.Filesoutside text
Returns a RouterOS configuration section as an export script.
Notes:
section: RouterOS path without leading slash e.g. "ip address", "interface vlan",
"ip firewall filter", "ip firewall nat", "queue simple"
hide_sensitive: keep secrets out of the output (False appends show-sensitive)export_user_configtool Exports user configuration to a file.Filesoutside text
Exports user configuration to a file.
flush_dns_cachetool Flushes the DNS cache.Filesoutside text
Flushes the DNS cache.
flush_route_cachetool Flushes the route cache.Filesoutside text
Flushes the route cache.
generate_wireguard_client_configtool Generates a wg0.conf client config string from the given keys and server endpoint. Does not communicate with the router.
Generates a wg0.conf client config string from the given keys and server endpoint. Does not communicate with the router.
get_active_userstool Gets currently active/logged-in users.Filesoutside text
Gets currently active/logged-in users.
get_address_list_entrytool Gets one address list entry by list name and address.Filesoutside text
Gets one address list entry by list name and address.
get_dhcp_servertool Gets detailed information about a specific DHCP server.Filesoutside text
Gets detailed information about a specific DHCP server.
get_dns_cachetool Gets the current DNS cache.Filesoutside text
Gets the current DNS cache.
get_dns_cache_statisticstool Gets DNS cache statistics.Filesoutside text
Gets DNS cache statistics.
get_dns_settingstool Gets current DNS configuration.Filesoutside text
Gets current DNS configuration.
get_dns_statictool Gets details of a specific static DNS entry.Filesoutside text
Gets details of a specific static DNS entry.
get_filter_ruletool Gets detailed information about a specific firewall filter rule.Filesoutside text
Gets detailed information about a specific firewall filter rule.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")get_interfacetool Gets detailed information about a specific interface by name.Filesoutside text
Gets detailed information about a specific interface by name.
Notes:
name: exact interface name e.g. "ether1", "bridge", "pppoe-out1", "wg0"get_ip_addresstool Gets detailed information about a specific IP address by ID or address value.Filesoutside text
Gets detailed information about a specific IP address by ID or address value.
get_ip_pooltool Gets detailed information about a specific IP pool including used address count.Filesoutside text
Gets detailed information about a specific IP pool including used address count.
get_ipsec_active_peerstool Lists the IPsec peers with a live IKE session, with uptime and counters.Filesoutside text
Lists the IPsec peers with a live IKE session, with uptime and counters.
Shows the parent (phase 1) side: `state`, `uptime`, `last-seen` and the
byte counters. A peer can sit here `established` while its child SAs
carry nothing — use `get_ipsec_installed_sa` to tell the difference.
Notes:
Both filters are exact matches.get_ipsec_installed_satool Lists the installed IPsec security associations (child/phase 2 SAs).Filesoutside text
Lists the installed IPsec security associations (child/phase 2 SAs).
The Flags legend is the point of this view. On RouterOS 7 it reads:
S - SEEN-TRAFFIC the SA has carried packets
H - HW-AEAD the cipher is running in hardware
E - ESP
`S` is the only field that separates an SA carrying traffic from one that
is merely installed. A remote end reporting the connection as up, or its
own byte counters growing, does not contradict a missing `S`: those count
what the far side sent, not what arrived.
Two things this does NOT tell you, both easy to get wrong:
- **A missing `S` can mean idle, not broken.** An SA nothing has used
looks exactly like one that is failing, and RouterOS withholds
`addtime` and `expires-in` until traffic appears, which makes it look
half installed. Put traffic over the selector before concluding
anything.
- **Per-SA counters do not map onto policies once a peer has several
child SAs.** Traffic picks among them, so one SA can carry the outbound
side of two policies while another sits frozen at the counter it had
minutes after install. Pairing SAs by hand — by install time, by
address, by lifetime — invents a structure that is not there. Watch
which counters move under traffic you control instead.
Notes:
Address filters are substring matches on the SA endpoints, which are the
tunnel endpoints (public addresses), not the encapsulated subnets.
Behind NAT-T the endpoints carry the port (`198.51.100.2:4500`), which
is why this is not an exact match: filtering on the bare address would
find nothing there and report no SAs while some exist.get_ipv6_addresstool Gets detailed information about a specific IPv6 address by ID or address value.Filesoutside text
Gets detailed information about a specific IPv6 address by ID or address value.
Notes:
address_id: a RouterOS internal id (e.g. "*1") or the address value
(e.g. "2001:db8::1/64").get_ipv6_filter_ruletool Gets detailed information about a specific IPv6 firewall filter rule.Filesoutside text
Gets detailed information about a specific IPv6 firewall filter rule.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").get_ipv6_raw_ruletool Gets detailed information about a specific /ipv6 firewall raw rule.
Gets detailed information about a specific /ipv6 firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").get_log_statisticstool Gets log entry counts by topic and severity from the MikroTik device.Filesoutside text
Gets log entry counts by topic and severity from the MikroTik device.
get_logstool Gets logs from the MikroTik device with optional topic, time, and message filters.Filesoutside text
Gets logs from the MikroTik device with optional topic, time, and message filters.
Notes:
topics: comma-separated, entry matches any of them e.g. "system,dhcp"
time_filter: RouterOS duration e.g. "30s", "5m", "1h", "2d"
message_filter: RouterOS regex matched against the message (case-sensitive)
limit: keep only the newest N entriesget_logs_by_severitytool Gets logs filtered by severity level (debug/info/warning/error/critical).Filesoutside text
Gets logs filtered by severity level (debug/info/warning/error/critical).
get_logs_by_topictool Gets logs for a specific topic/facility (system, dhcp, interface, firewall, etc.).Filesoutside text
Gets logs for a specific topic/facility (system, dhcp, interface, firewall, etc.).
get_nat_ruletool Gets detailed information about a specific NAT rule.Filesoutside text
Gets detailed information about a specific NAT rule.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"get_poe_monitortool Reads real-time Power-over-Ethernet (PoE) monitor data for one or moreFilesoutside text
Reads real-time Power-over-Ethernet (PoE) monitor data for one or more
ethernet interfaces — PoE-out status, voltage, current, and power.
Runs ``/interface ethernet poe monitor <interfaces> once``.
Notes:
interfaces: comma-separated ethernet interface name(s), e.g.
"ether1" or "ether9-ap,ether10-ap,ether11-ap,ether12-ap"get_poe_settingstool Gets the detailed PoE-out settings of a specific ethernet interfaceFilesoutside text
Gets the detailed PoE-out settings of a specific ethernet interface
(PoE-out mode, priority, voltage, low/high thresholds, …).
Runs ``/interface ethernet poe print detail where name=<name>``.
Notes:
name: exact ethernet interface name, e.g. "ether1"get_queue_treetool Gets detailed information about a specific queue tree.Filesoutside text
Gets detailed information about a specific queue tree.
get_queue_typetool Gets detailed information about a specific queue type.Filesoutside text
Gets detailed information about a specific queue type.
get_raw_ruletool Gets detailed information about a specific /ip firewall raw rule.
Gets detailed information about a specific /ip firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").get_routetool Gets detailed information about a specific route.Filesoutside text
Gets detailed information about a specific route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"get_route_cachetool Gets the route cache.Filesoutside text
Gets the route cache.
get_route_statisticstool Gets routing table statistics.Filesoutside text
Gets routing table statistics.
get_routing_tabletool Gets a specific routing table.Filesoutside text
Gets a specific routing table.
get_security_logstool Gets security-related log entries (logins, failures, blocked connections, etc.).Filesoutside text
Gets security-related log entries (logins, failures, blocked connections, etc.).
get_simple_queuetool Gets detailed information about a specific simple queue.Filesoutside text
Gets detailed information about a specific simple queue.
get_system_clocktool Reports the device clock, time zone and DST setting.Filesoutside text
Reports the device clock, time zone and DST setting.
Notes:
Log timestamps are only as trustworthy as this. A device without a
working time source dates its own evidence wrongly, which matters when
correlating an incident across sites.get_system_eventstool Gets system-related log events (login, reboot, config-change, etc.).Filesoutside text
Gets system-related log events (login, reboot, config-change, etc.).
get_system_healthtool Reports the board sensors: voltage, temperature, fan and PSU state.Filesoutside text
Reports the board sensors: voltage, temperature, fan and PSU state.
Notes:
Many boards carry no sensors at all and legitimately report nothing.
An empty answer here means "this model does not measure it", not "the
reading failed".get_system_package_updatetool Reports the installed RouterOS version against the latest on its channel.Filesoutside text
Reports the installed RouterOS version against the latest on its channel.
Notes:
This reads the stored result of the last check; it does not contact
MikroTik. `latest-version` can therefore be stale or empty on a device
that has never checked or cannot reach the update server.get_system_resourcetool Reports uptime, RouterOS version, board name, architecture, CPU and memory.Filesoutside text
Reports uptime, RouterOS version, board name, architecture, CPU and memory.
Notes:
`free-memory` against `total-memory` and `cpu-load` are the two numbers
worth reading before blaming the network for a slow device. On the
low-power boards a single packet-sniffing tool can saturate the CPU on
its own.get_system_routerboardtool Reports the model, serial number and bootloader firmware revision.Filesoutside text
Reports the model, serial number and bootloader firmware revision.
Notes:
`current-firmware` against `upgrade-firmware` is the RouterBOOT
bootloader, which is upgraded separately from RouterOS and is easy to
leave behind after a package upgrade.get_usertool Gets detailed information about a specific user.Filesoutside text
Gets detailed information about a specific user.
get_user_grouptool Gets detailed information about a specific user group.Filesoutside text
Gets detailed information about a specific user group.
get_vlan_interfacetool Gets detailed information about a specific VLAN interface.Filesoutside text
Gets detailed information about a specific VLAN interface.
get_wireguard_interfacetool Gets detailed information about a specific WireGuard interface.Filesoutside text
Gets detailed information about a specific WireGuard interface.
get_wireguard_peertool Gets detailed information about a specific WireGuard peer by ID.Filesoutside text
Gets detailed information about a specific WireGuard peer by ID.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"get_wireless_interfacetool Gets detailed information about a specific wireless interface.Filesoutside text
Gets detailed information about a specific wireless interface.
get_wireless_registration_tabletool Gets the wireless registration table (connected clients) from the MikroTik device.Filesoutside text
Gets the wireless registration table (connected clients) from the MikroTik device.
get_wireless_security_profiletool Legacy function - not supported in RouterOS v7.xFilesoutside text
Legacy function - not supported in RouterOS v7.x
import_configurationtool Imports and executes a RouterOS configuration script (.rsc file) on the device.Filesoutside text
Imports and executes a RouterOS configuration script (.rsc file) on the device.
list_address_list_entriestool Lists IPv4 or IPv6 firewall address list entries.Filesoutside text
Lists IPv4 or IPv6 firewall address list entries.
Notes:
list_filter: exact list name, including any trailing space.
address_filter/comment_filter: partial match.
static_only excludes the dynamic children a hostname entry creates.list_arp_entriestool Lists detailed IPv4 ARP entries.Filesoutside text
Lists detailed IPv4 ARP entries.
Notes:
Address and MAC filters are substring matches. Interface and status
filters are exact matches.list_backupstool Lists backup files on the MikroTik device.Filesoutside text
Lists backup files on the MikroTik device.
list_bridge_portstool Lists bridge ports on the MikroTik device, including each port's PVID.Filesoutside text
Lists bridge ports on the MikroTik device, including each port's PVID.
list_bridge_vlanstool Lists bridge VLAN table entries (tagged/untagged port membership per VLAN).Filesoutside text
Lists bridge VLAN table entries (tagged/untagged port membership per VLAN).
list_devicestool Lists the MikroTik devices this server manages.Filesoutside text
Lists the MikroTik devices this server manages.
Use this to discover which devices are available and what their titles are.
Every other tool takes an optional `device` argument that must be one of the
titles returned here. When only one device is configured, `device` may be
omitted and that device is used automatically.
Credentials are never returned.list_dhcp_leasestool Lists detailed IPv4 DHCP leases, optionally filtering active lease fields.Filesoutside text
Lists detailed IPv4 DHCP leases, optionally filtering active lease fields.
Notes:
Address and identity filters are substring matches. Server, status, and
lease time filters are exact matches against RouterOS `lease-time`.list_dhcp_serverstool Lists DHCP servers on the MikroTik device.Filesoutside text
Lists DHCP servers on the MikroTik device.
list_dhcpv6_bindingstool Lists detailed DHCPv6 bindings.Filesoutside text
Lists detailed DHCPv6 bindings.
Notes:
Address and DUID filters are substring matches. IAID, server, status,
and lease time filters are exact matches; lease time maps to `life-time`.list_dns_statictool Lists static DNS entries.Filesoutside text
Lists static DNS entries.
list_filter_rulestool Lists firewall filter rules on the MikroTik device.Filesoutside text
Lists firewall filter rules on the MikroTik device.
list_interfacestool Lists all interfaces on the MikroTik device (ethernet, bridge, WireGuard,Filesoutside text
Lists all interfaces on the MikroTik device (ethernet, bridge, WireGuard,
PPPoE, VLAN, WiFi, SFP, LTE, loopback, and any other type).
Notes:
type_filter: RouterOS interface type e.g. "ether", "bridge", "vlan",
"wg", "pppoe-out", "wifi", "lte", "loopback"
name_filter: partial name match e.g. "ether" matches ether1, ether2 …list_ip_addressestool Lists IP addresses on the MikroTik device.Filesoutside text
Lists IP addresses on the MikroTik device.
list_ip_pool_usedtool Lists currently used (allocated) addresses from IP pools.Filesoutside text
Lists currently used (allocated) addresses from IP pools.
list_ip_poolstool Lists IP pools on the MikroTik device.Filesoutside text
Lists IP pools on the MikroTik device.
list_ip_servicestool Lists the management services with their port and address restriction.Filesoutside text
Lists the management services with their port and address restriction.
Notes:
`name_filter` is a substring match (`winbox`, `ssh`, `api`, `www`,
`www-ssl`, `ftp`, `telnet`). `enabled_only=True` hides the disabled
ones, which is the list that actually describes exposure.
An empty `address` means unrestricted. Read that together with how the
device is reached: unrestricted on a router whose WAN holds a public
address means the service is published to the internet, whether or not
the port was changed from its default.
`ftp` deserves its own look: RouterOS also serves SFTP file transfers
through the SSH service to users whose group holds the `ftp` policy,
so the two are not the same control.list_ipsec_peerstool Lists the configured IPsec peers.Filesoutside text
Lists the configured IPsec peers.
Notes:
Filters are substring matches. Secrets live on `/ip ipsec identity`
and are not exposed by any tool in this server.list_ipsec_policiestool Lists the IPsec policies, with their phase 2 state.Filesoutside text
Lists the IPsec policies, with their phase 2 state.
The Flags legend distinguishes configured policies from the ones a peer
generated at runtime (`D` dynamic), and `ph2-state` says whether the
child SA is established. A policy whose selectors do not match the far
end's is the usual cause of a tunnel that comes up and passes nothing.
Notes:
`peer_filter` is a substring match on the peer name; the address
filters are substring matches on the policy selectors, which are the
encapsulated subnets, not the tunnel endpoints.list_ipsec_profilestool Lists the IPsec profiles (phase 1 proposal: DH group, hash, lifetime, DPD).Filesoutside text
Lists the IPsec profiles (phase 1 proposal: DH group, hash, lifetime, DPD).
Notes:
`lifetime` here is phase 1. It must be LONGER than the phase 2
lifetime on `/ip ipsec proposal`, so the child SA rekeys inside a
live parent SA; equal lifetimes tear the tunnel down on every
rekey. `dpd-interval` multiplied by `dpd-maximum-failures` is how
many seconds of silence the peer tolerates.list_ipsec_proposalstool Lists the IPsec proposals (phase 2: encryption, auth, PFS, lifetime).Filesoutside text
Lists the IPsec proposals (phase 2: encryption, auth, PFS, lifetime).
Notes:
Compare `lifetime` against the phase 1 lifetime on
`/ip ipsec profile`, and against whatever the far end proposes — a
cloud provider's own SA lifetime counts as a third value in that
comparison.list_ipv6_addressestool Lists IPv6 addresses on the MikroTik device.Filesoutside text
Lists IPv6 addresses on the MikroTik device.
Notes:
address_filter: partial match on the address, e.g. "2001:db8" or "fe80".
global_only: show only global (routable) addresses.
link_local_only: show only link-local (fe80::/10) addresses.list_ipv6_filter_rulestool Lists IPv6 firewall filter rules on the MikroTik device.Filesoutside text
Lists IPv6 firewall filter rules on the MikroTik device.
Notes:
protocol_filter: IPv6 uses "icmpv6", not the IPv4 spelling "icmp".
src_address_filter/dst_address_filter: partial match on the address,
e.g. "2001:db8" matches every rule whose address starts with it.list_ipv6_neighborstool Lists detailed IPv6 neighbor-discovery entries.Filesoutside text
Lists detailed IPv6 neighbor-discovery entries.
Notes:
Address and MAC filters are substring matches. Interface and status
filters are exact matches.list_ipv6_raw_rulestool Lists /ipv6 firewall raw rules on the MikroTik device.
Lists /ipv6 firewall raw rules on the MikroTik device.
Notes:
chain_filter, action_filter, protocol_filter: exact match. src/dst_address_filter, interface_filter
(interfaces and interface lists), comment_filter: substring match. stats=True shows byte/packet counters.list_nat_rulestool Lists NAT rules on the MikroTik device.Filesoutside text
Lists NAT rules on the MikroTik device.
list_netwatchtool Lists the netwatch probes with their live status and measurements.Filesoutside text
Lists the netwatch probes with their live status and measurements.
Configuration first, then a LIVE STATE block with `status`, `since` — the
timestamp of the last transition — and, on an ICMP probe, the last test's
numbers: `rtt-avg`, `loss-percent`, `failed-tests`. Match the two blocks
by `host`, or by the `.id` the live one carries.
Notes:
`host_filter` and `comment_filter` are substring matches; `status_filter`
and `type_filter` are exact. Pass `status_filter="down"` to list only
what is currently failing.
`include_source=False` (the default) omits `up-script`,
`down-script` and `test-script`, because a probe that alerts through a
webhook or an e-mail carries the token or the password inline. Set it
to True only when you intend to read those commands; the output is
redacted either way, but redaction is pattern-based and is not a
guarantee.
A probe with no `src-address` follows whichever WAN is active, so it
keeps reporting across a failover; one pinned to a source address
reports that path only. Which of the two you want depends on whether
you are watching the internet or a specific link.list_poetool Lists the Power-over-Ethernet (PoE) configuration of PoE-capableFilesoutside text
Lists the Power-over-Ethernet (PoE) configuration of PoE-capable
ethernet interfaces (PoE-out mode, priority).
Runs ``/interface ethernet poe print``.
Notes:
interface_filter: partial name match, e.g. "ether" matches ether1, ether2 …list_queue_treestool Lists queue trees on the MikroTik device.Filesoutside text
Lists queue trees on the MikroTik device.
list_queue_typestool Lists queue types on the MikroTik device.Filesoutside text
Lists queue types on the MikroTik device.
list_raw_rulestool Lists /ip firewall raw rules on the MikroTik device.
Lists /ip firewall raw rules on the MikroTik device.
Notes:
chain_filter, action_filter, protocol_filter: exact match. src/dst_address_filter, interface_filter
(interfaces and interface lists), comment_filter: substring match. stats=True shows byte/packet counters.list_routestool Lists routes in MikroTik routing table.Filesoutside text
Lists routes in MikroTik routing table.
list_schedulerstool Lists the scheduled tasks with their interval, next run and run count.Filesoutside text
Lists the scheduled tasks with their interval, next run and run count.
Notes:
`name_filter` is a substring match. Read `next-run` together with
`interval`: a scheduler whose `run-count` is not advancing is firing
into a script that errors out, which RouterOS does not surface here —
it shows up in the log under the `script` topic.
`include_source=False` (the default) omits `on-event`, because a
scheduler can carry commands inline, and those routinely hold a bot
token or a password inside a URL. Redaction only recognises labelled
secrets, so withholding the field is what keeps them off the wire. Set
it to True only when you intend to read the commands; the output is
redacted either way, but redaction is pattern-based and is not a
guarantee.list_scriptstool Lists the stored scripts: owner, policy, run count and last start.Filesoutside text
Lists the stored scripts: owner, policy, run count and last start.
Notes:
`include_source=False` (the default) omits the script body, because
bodies routinely hold credentials in clear text. Set it to True only
when you intend to read the code; the output is redacted either way,
but redaction is pattern-based and is not a guarantee.
`policy` is what the script may do when it runs, which can exceed what
the user who scheduled it may do interactively.list_simple_queuestool Lists simple queues on the MikroTik device.Filesoutside text
Lists simple queues on the MikroTik device.
list_system_packagestool Lists the installed RouterOS packages and which are disabled.Filesoutside text
Lists the installed RouterOS packages and which are disabled.
list_user_groupstool Lists user groups on MikroTik device.Filesoutside text
Lists user groups on MikroTik device.
list_user_ssh_keystool Lists SSH keys for a specific user.Filesoutside text
Lists SSH keys for a specific user.
list_userstool Lists users on MikroTik device.Filesoutside text
Lists users on MikroTik device.
list_vlan_interfacestool Lists VLAN interfaces on the MikroTik device.Filesoutside text
Lists VLAN interfaces on the MikroTik device.
list_wireguard_interfacestool Lists WireGuard interfaces on the MikroTik device.Filesoutside text
Lists WireGuard interfaces on the MikroTik device.
list_wireguard_peerstool Lists WireGuard peers on the MikroTik device.Filesoutside text
Lists WireGuard peers on the MikroTik device.
list_wireless_access_listtool Legacy function - different in RouterOS v7.xFilesoutside text
Legacy function - different in RouterOS v7.x
list_wireless_interfacestool Lists wireless interfaces on the MikroTik device.Filesoutside text
Lists wireless interfaces on the MikroTik device.
list_wireless_security_profilestool Legacy function - not supported in RouterOS v7.xFilesoutside text
Legacy function - not supported in RouterOS v7.x
monitor_logstool Watches for new log entries for a limited duration (max 60s) and returns them.Filesoutside text
Watches for new log entries for a limited duration (max 60s) and returns them.
Notes:
duration: seconds to wait for new entries, capped at 60move_filter_ruletool Moves a firewall filter rule to a different position in the chain.Filesoutside text
Moves a firewall filter rule to a different position in the chain.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")
destination: 0-based target position indexmove_ipv6_filter_ruletool Moves an IPv6 firewall filter rule to a different position in the chain.
Moves an IPv6 firewall filter rule to a different position in the chain.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").
destination: 0-based target position indexmove_ipv6_raw_ruletool Moves an /ipv6 firewall raw rule to a different position.
Moves an /ipv6 firewall raw rule to a different position.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
destination: 0-based target position index.move_nat_ruletool Moves a NAT rule to a different position in the chain.
Moves a NAT rule to a different position in the chain.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"
destination: 0-based target position indexmove_raw_ruletool Moves an /ip firewall raw rule to a different position.
Moves an /ip firewall raw rule to a different position.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
destination: 0-based target position index.pingtool Pings an IPv4/IPv6 address or host name from the router (needs the "test" policy).Filesoutside text
Pings an IPv4/IPv6 address or host name from the router (needs the "test" policy).
Notes:
interval: e.g. "200ms" or "1s". arp_ping=True sends ARP requests instead of ICMP and needs interface.
do_not_fragment with size finds the path MTU.profile_cputool Shows which RouterOS processes use the CPU, sampled over a few seconds.Filesoutside text
Shows which RouterOS processes use the CPU, sampled over a few seconds.
Notes:
cpu: "total" (default), "all" for one column per core, or a core number (a duration under 3 runs for 3).remove_address_list_entrytool Removes an address list entry by list name and address.Filesoutside text
Removes an address list entry by list name and address.
Notes:
Removing a hostname entry also clears the dynamic entries RouterOS
derived from it.remove_bridge_vlantool Removes an entry from the bridge VLAN table.Filesoutside text
Removes an entry from the bridge VLAN table.
Notes:
vlan_ids: must match the stored value exactly (it is a list property)remove_dhcp_networktool Removes a DHCP network configuration from the MikroTik device.Filesoutside text
Removes a DHCP network configuration from the MikroTik device.
remove_dhcp_servertool Removes a DHCP server from the MikroTik device.Filesoutside text
Removes a DHCP server from the MikroTik device.
remove_dns_statictool Removes a static DNS entry.Filesoutside text
Removes a static DNS entry.
remove_filetool Removes a file from the MikroTik device filesystem.Filesoutside text
Removes a file from the MikroTik device filesystem.
remove_filter_ruletool Removes a firewall filter rule from the MikroTik device.Filesoutside text
Removes a firewall filter rule from the MikroTik device.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")remove_ip_addresstool Removes an IP address from the MikroTik device by ID or address value.Filesoutside text
Removes an IP address from the MikroTik device by ID or address value.
remove_ip_pooltool Removes an IP pool from the MikroTik device (fails if pool is in use).Filesoutside text
Removes an IP pool from the MikroTik device (fails if pool is in use).
remove_ipv6_addresstool Removes an IPv6 address from the MikroTik device by ID or address value.Filesoutside text
Removes an IPv6 address from the MikroTik device by ID or address value.
Notes:
address_id: a RouterOS internal id (e.g. "*1"), print position ("0"),
or the address value (e.g. "2001:db8::1/64").remove_ipv6_filter_ruletool Removes an IPv6 firewall filter rule from the MikroTik device.Filesoutside text
Removes an IPv6 firewall filter rule from the MikroTik device.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").remove_ipv6_raw_ruletool Removes an /ipv6 firewall raw rule.
Removes an /ipv6 firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").remove_nat_ruletool Removes a NAT rule from the MikroTik device.Filesoutside text
Removes a NAT rule from the MikroTik device.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"remove_queue_treetool Removes a queue tree from the MikroTik device.Filesoutside text
Removes a queue tree from the MikroTik device.
remove_queue_typetool Removes a queue type from the MikroTik device.Filesoutside text
Removes a queue type from the MikroTik device.
remove_raw_ruletool Removes an /ip firewall raw rule.
Removes an /ip firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").remove_routetool Removes a route.Filesoutside text
Removes a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"remove_simple_queuetool Removes a simple queue from the MikroTik device.Filesoutside text
Removes a simple queue from the MikroTik device.
remove_usertool Removes a user.Filesoutside text
Removes a user.
remove_user_grouptool Removes a user group.Filesoutside text
Removes a user group.
remove_user_ssh_keytool Removes an SSH key.Filesoutside text
Removes an SSH key.
remove_vlan_interfacetool Removes a VLAN interface from the MikroTik device.Filesoutside text
Removes a VLAN interface from the MikroTik device.
remove_wireguard_interfacetool Removes a WireGuard interface from the MikroTik device.Filesoutside text
Removes a WireGuard interface from the MikroTik device.
remove_wireguard_peertool Removes a WireGuard peer from the MikroTik device.Filesoutside text
Removes a WireGuard peer from the MikroTik device.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"remove_wireless_access_list_entrytool Legacy function - different in RouterOS v7.xFilesoutside text
Legacy function - different in RouterOS v7.x
remove_wireless_interfacetool Removes a wireless interface from the MikroTik device.Filesoutside text
Removes a wireless interface from the MikroTik device.
remove_wireless_security_profiletool Legacy function - not supported in RouterOS v7.xFilesoutside text
Legacy function - not supported in RouterOS v7.x
restore_backuptool Restores a system backup on the MikroTik device; triggers a reboot.Filesoutside text
Restores a system backup on the MikroTik device; triggers a reboot.
rollback_safe_modetool Discards all pending Safe Mode changes by closing the SSH session, triggering automatic rollback.Filesoutside text
Discards all pending Safe Mode changes by closing the SSH session, triggering automatic rollback.
safe_mode_statustool Returns whether MikroTik Safe Mode is currently active.Filesoutside text
Returns whether MikroTik Safe Mode is currently active.
scan_wireless_networkstool Scans for nearby wireless networks using the specified interface.Filesoutside text
Scans for nearby wireless networks using the specified interface.
search_logstool Searches log messages for a literal term.Filesoutside text
Searches log messages for a literal term.
Notes:
search_term: treated literally (regex specials are escaped)
case_sensitive: RouterOS matching is case-sensitive; by default the
search emulates case-insensitivity with character classesset_dns_serverstool Sets DNS server configuration.Filesoutside text
Sets DNS server configuration.
set_user_ssh_keystool Sets SSH keys for a specific user.Filesoutside text
Sets SSH keys for a specific user.
set_wireless_passphrasetool Sets the WiFi passphrase directly on a RouterOS v7 wireless interface (/interface wifi or wifiwave2).Filesoutside text
Sets the WiFi passphrase directly on a RouterOS v7 wireless interface (/interface wifi or wifiwave2).
Notes:
authentication_types: comma-separated RouterOS auth types, e.g. "wpa2-psk,wpa3-psk"; unset keeps the current setting.set_wireless_security_profiletool Legacy function - not supported in RouterOS v7.xFilesoutside text
Legacy function - not supported in RouterOS v7.x
sniff_packetstool Captures packet headers for a few seconds with the quick packet sniffer (needs the "sniff" policy).Filesoutside text
Captures packet headers for a few seconds with the quick packet sniffer (needs the "sniff" policy).
Notes:
Shows headers only (interface, direction, MACs, addresses, protocol, size); nothing is saved on
the router. ip_address matches source or destination. port: "53", "80,443" or "1000-2000".test_dns_querytool Tests a DNS query.Filesoutside text
Tests a DNS query.
Notes:
type: accepted values are A/ipv4, AAAA/ipv6, any, any6torchtool Shows live traffic rates per flow on an interface for a few seconds (needs the "sniff" policy).Filesoutside text
Shows live traffic rates per flow on an interface for a few seconds (needs the "sniff" policy).
Notes:
Each filter both filters and breaks the table down by that field: "0.0.0.0/0" (or "::/0") lists
every address, "any" every protocol/port/VLAN/DSCP. With no filter, flows are broken down by
IPv4 src/dst address and IP protocol. Torch turns off fasttrack while it runs (higher CPU).
RouterOS prints its first frame after two seconds, so a duration under 3 runs for 3.traceroutetool Traces the route from the router to an IPv4/IPv6 address or host name (needs the "test" policy).Filesoutside text
Traces the route from the router to an IPv4/IPv6 address or host name (needs the "test" policy).
Notes:
count: probes per hop; the run takes roughly count x hops x timeout at worst.
timeout: per-probe timeout, e.g. "500ms" or "1s". port applies to protocol="udp".update_address_list_entrytool Updates an address list entry, located by its current list name and address.Filesoutside text
Updates an address list entry, located by its current list name and address.
Notes:
Pass "" to clear comment or timeout.
A change is confirmed on the device before success is reported.update_bridge_porttool Updates per-port VLAN settings (PVID, frame types, ingress filtering) on a bridge port.Filesoutside text
Updates per-port VLAN settings (PVID, frame types, ingress filtering) on a bridge port.
Notes:
interface: the port's interface name e.g. "ether2"; an interface can only
belong to one bridge, so it uniquely identifies the bridge port
pvid: VLAN ID assigned to untagged ingress traffic on this port
A change is confirmed on the device before success is reported.update_bridge_vlantool Updates an existing bridge VLAN table entry.Filesoutside text
Updates an existing bridge VLAN table entry.
Notes:
vlan_ids: must match the stored value exactly (it is a list property)
e.g. an entry created with "100-199" is matched by "100-199", not "150"
tagged/untagged: comma-separated port lists; pass "" to clear the list
Dynamic (D-flag) entries auto-created from PVIDs cannot be updated.
A change is confirmed on the device before success is reported.update_dhcp_networktool Updates fields on an existing DHCP network entry on the MikroTik device.Filesoutside text
Updates fields on an existing DHCP network entry on the MikroTik device.
Notes:
Pass an empty list for dns_servers/wins_servers/ntp_servers/dhcp_option
(or "" for domain) to clear that field.update_dns_statictool Updates a static DNS entry.Filesoutside text
Updates a static DNS entry.
update_filter_ruletool Updates an existing firewall filter rule on the MikroTik device.Filesoutside text
Updates an existing firewall filter rule on the MikroTik device.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")
connection_state: comma-separated e.g. "established,related"
limit: RouterOS rate string e.g. "10,5:packet"
tcp_flags: RouterOS flag expression e.g. "syn,!ack"
Pass "" to clear an optional field (e.g. src_address="").update_ip_pooltool Updates an existing IP pool's name, ranges, or next-pool reference.Filesoutside text
Updates an existing IP pool's name, ranges, or next-pool reference.
Notes:
ranges: hyphen-separated range(s) e.g. "192.168.1.1-192.168.1.100"
Multiple ranges comma-separated: "10.0.0.1-10.0.0.50,10.0.0.100-10.0.0.120"
Pass "" for next_pool to clear it.update_ipv6_filter_ruletool Updates an existing IPv6 firewall filter rule on the MikroTik device.Filesoutside text
Updates an existing IPv6 firewall filter rule on the MikroTik device.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").
Pass "" to clear an optional field (e.g. src_address="").update_ipv6_raw_ruletool Updates an existing /ipv6 firewall raw rule.
Updates an existing /ipv6 firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
Pass "" to clear an optional matcher (e.g. src_address="").update_nat_ruletool Updates an existing NAT rule on the MikroTik device.Filesoutside text
Updates an existing NAT rule on the MikroTik device.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"
to_addresses: single IP or range e.g. "10.0.0.1" or "10.0.0.1-10.0.0.10"
to_ports: single port or range e.g. "8080" or "8080-8090"
Pass "" to clear an optional field.update_queue_treetool Updates an existing queue tree entry (bandwidth limits, parent, priority, etc.).Filesoutside text
Updates an existing queue tree entry (bandwidth limits, parent, priority, etc.).
Notes:
max_limit / limit_at / burst_limit / burst_threshold: bandwidth e.g. "10M", "512k"
burst_time: duration e.g. "8s"
priority: 1 (highest) – 8 (lowest)update_queue_typetool Updates an existing queue type's discipline-specific settings.Filesoutside text
Updates an existing queue type's discipline-specific settings.
update_raw_ruletool Updates an existing /ip firewall raw rule.
Updates an existing /ip firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
Pass "" to clear an optional matcher (e.g. src_address="").update_routetool Updates a route.Filesoutside text
Updates a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"
dst_address: CIDR e.g. "192.168.1.0/24"
check_gateway: "ping" or "arp"
distance: 1-255
routing_table: name of a table from /routing table; "" moves the route
back to "main", since every RouterOS 7 route belongs to a table.
Pass "" to vrf_interface or pref_src to clear them.update_simple_queuetool Updates an existing simple queue's rate limits, target, or scheduling settings.Filesoutside text
Updates an existing simple queue's rate limits, target, or scheduling settings.
Notes:
target: IP/CIDR or interface e.g. "192.168.1.0/24" or "ether1"
max_limit / limit_at / burst_limit / burst_threshold: upload/download bandwidth
as "UL/DL" e.g. "10M/10M", or single value e.g. "10M"
burst_time: duration e.g. "8s"
priority: 1 (highest) – 8 (lowest)update_usertool Updates a user.Filesoutside text
Updates a user.
update_user_grouptool Updates a user group.Filesoutside text
Updates a user group.
update_vlan_interfacetool Updates an existing VLAN interface's settings on the MikroTik device.Filesoutside text
Updates an existing VLAN interface's settings on the MikroTik device.
update_wireguard_interfacetool Updates an existing WireGuard interface's settings on the MikroTik device.Filesoutside text
Updates an existing WireGuard interface's settings on the MikroTik device.
update_wireguard_peertool Updates an existing WireGuard peer's allowed addresses, endpoint, keepalive, or enabled state.Filesoutside text
Updates an existing WireGuard peer's allowed addresses, endpoint, keepalive, or enabled state.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"
allowed_address: CIDR, comma-separated e.g. "10.0.0.2/32" or "10.0.0.0/24,192.168.0.0/24"
persistent_keepalive: seconds as string e.g. "25"
Pass "" for endpoint_address or preshared_key to clear them.update_wireless_interfacetool Updates an existing wireless interface's settings (name, SSID, enabled state, etc.).Filesoutside text
Updates an existing wireless interface's settings (name, SSID, enabled state, etc.).
upload_filetool Uploads a base64-encoded file to the MikroTik device (for restore operations).
Uploads a base64-encoded file to the MikroTik device (for restore operations).
Text the model reads (242)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
(name computed at run time) tool
list_devices tool
Lists the MikroTik devices this server manages.
Use this to discover which devices are available and what their titles are.
Every other tool takes an optional `device` argument that must be one of the
titles returned here. When only one device is configured, `device` may be
omitted and that device is used automatically.
Credentials are never returned.safe_mode_status tool
Returns whether MikroTik Safe Mode is currently active.
enable_safe_mode tool
Activates MikroTik Safe Mode; changes are held in memory and auto-reverted on disconnect until committed.
commit_safe_mode tool
Commits all pending Safe Mode changes to persistent storage and exits Safe Mode.
rollback_safe_mode tool
Discards all pending Safe Mode changes by closing the SSH session, triggering automatic rollback.
create_dhcp_server tool
Creates a DHCP server bound to the specified interface on the MikroTik device.
Notes:
lease_time: duration e.g. "1d", "12h", "30m", "1h30m"list_dhcp_servers tool
Lists DHCP servers on the MikroTik device.
list_dhcp_leases tool
Lists detailed IPv4 DHCP leases, optionally filtering active lease fields.
Notes:
Address and identity filters are substring matches. Server, status, and
lease time filters are exact matches against RouterOS `lease-time`.list_dhcpv6_bindings tool
Lists detailed DHCPv6 bindings.
Notes:
Address and DUID filters are substring matches. IAID, server, status,
and lease time filters are exact matches; lease time maps to `life-time`.get_dhcp_server tool
Gets detailed information about a specific DHCP server.
create_dhcp_network tool
Creates a DHCP network configuration (gateway, DNS, domain, etc.) on the MikroTik device.
update_dhcp_network tool
Updates fields on an existing DHCP network entry on the MikroTik device.
Notes:
Pass an empty list for dns_servers/wins_servers/ntp_servers/dhcp_option
(or "" for domain) to clear that field.remove_dhcp_network tool
Removes a DHCP network configuration from the MikroTik device.
create_dhcp_pool tool
Creates a DHCP address pool with the given IP ranges on the MikroTik device.
Notes:
ranges: hyphen-separated range(s) e.g. "192.168.1.1-192.168.1.100"
Multiple ranges comma-separated: "10.0.0.1-10.0.0.50,10.0.0.100-10.0.0.120"remove_dhcp_server tool
Removes a DHCP server from the MikroTik device.
set_dns_servers tool
Sets DNS server configuration.
get_dns_settings tool
Gets current DNS configuration.
add_dns_static tool
Adds a static DNS entry.
Notes:
regexp: a regular expression the name must match. A regexp entry has no name, so ``name`` is
ignored when ``regexp`` is given (RouterOS refuses both: "only name or regexp allowed").list_dns_static tool
Lists static DNS entries.
get_dns_static tool
Gets details of a specific static DNS entry.
update_dns_static tool
Updates a static DNS entry.
remove_dns_static tool
Removes a static DNS entry.
enable_dns_static tool
Enables a static DNS entry.
disable_dns_static tool
Disables a static DNS entry.
get_dns_cache tool
Gets the current DNS cache.
flush_dns_cache tool
Flushes the DNS cache.
get_dns_cache_statistics tool
Gets DNS cache statistics.
add_dns_regexp tool
Adds a DNS regexp entry.
test_dns_query tool
Tests a DNS query.
Notes:
type: accepted values are A/ipv4, AAAA/ipv6, any, any6export_dns_config tool
Exports DNS configuration to a file.
create_address_list_entry tool
Adds an entry to an IPv4 or IPv6 firewall address list.
Notes:
address: an address or prefix; a hostname is also accepted and RouterOS
adds a dynamic child entry per resolved address.
timeout: RouterOS duration e.g. "1h". An entry with a timeout is
dynamic, so it does not survive a reboot.
list_name is matched exactly, including any leading or trailing spaces.list_address_list_entries tool
Lists IPv4 or IPv6 firewall address list entries.
Notes:
list_filter: exact list name, including any trailing space.
address_filter/comment_filter: partial match.
static_only excludes the dynamic children a hostname entry creates.get_address_list_entry tool
Gets one address list entry by list name and address.
update_address_list_entry tool
Updates an address list entry, located by its current list name and address.
Notes:
Pass "" to clear comment or timeout.
A change is confirmed on the device before success is reported.remove_address_list_entry tool
Removes an address list entry by list name and address.
Notes:
Removing a hostname entry also clears the dynamic entries RouterOS
derived from it.enable_address_list_entry tool
Enables an address list entry.
disable_address_list_entry tool
Disables an address list entry.
create_filter_rule tool
Creates a firewall filter rule in the specified chain on the MikroTik device.
Notes:
connection_state: comma-separated e.g. "established,related,new,invalid"
limit: RouterOS rate/burst string e.g. "10,5:packet" or "10/1s:packet"
tcp_flags: RouterOS flag expression e.g. "syn,!ack"
place_before: rule number or ID (*N) to insert before e.g. "0" or "*3"
in_interface_list/out_interface_list: name of an /interface list (e.g. "LAN", "WAN") rather than a single interfacelist_filter_rules tool
Lists firewall filter rules on the MikroTik device.
get_filter_rule tool
Gets detailed information about a specific firewall filter rule.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")update_filter_rule tool
Updates an existing firewall filter rule on the MikroTik device.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")
connection_state: comma-separated e.g. "established,related"
limit: RouterOS rate string e.g. "10,5:packet"
tcp_flags: RouterOS flag expression e.g. "syn,!ack"
Pass "" to clear an optional field (e.g. src_address="").remove_filter_rule tool
Removes a firewall filter rule from the MikroTik device.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")move_filter_rule tool
Moves a firewall filter rule to a different position in the chain.
Notes:
rule_id: positional number from list output (e.g. "12") or internal ID (e.g. "*1A")
destination: 0-based target position indexenable_filter_rule tool
Enables a firewall filter rule.
disable_filter_rule tool
Disables a firewall filter rule.
create_basic_firewall_setup tool
Creates a basic firewall setup with common security rules on the MikroTik device.
create_ipv6_filter_rule tool
Creates an IPv6 firewall filter rule on the MikroTik device.
Notes:
protocol: IPv6 uses "icmpv6", not the IPv4 spelling "icmp".
jump_target: only used with action="jump".list_ipv6_filter_rules tool
Lists IPv6 firewall filter rules on the MikroTik device.
Notes:
protocol_filter: IPv6 uses "icmpv6", not the IPv4 spelling "icmp".
src_address_filter/dst_address_filter: partial match on the address,
e.g. "2001:db8" matches every rule whose address starts with it.get_ipv6_filter_rule tool
Gets detailed information about a specific IPv6 firewall filter rule.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").update_ipv6_filter_rule tool
Updates an existing IPv6 firewall filter rule on the MikroTik device.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").
Pass "" to clear an optional field (e.g. src_address="").remove_ipv6_filter_rule tool
Removes an IPv6 firewall filter rule from the MikroTik device.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").move_ipv6_filter_rule tool
Moves an IPv6 firewall filter rule to a different position in the chain.
Notes:
rule_id: a RouterOS internal id ("*1") or a print position ("0").
destination: 0-based target position indexenable_ipv6_filter_rule tool
Enables an IPv6 firewall filter rule.
disable_ipv6_filter_rule tool
Disables an IPv6 firewall filter rule.
list_ipv6_raw_rules tool
Lists /ipv6 firewall raw rules on the MikroTik device.
Notes:
chain_filter, action_filter, protocol_filter: exact match. src/dst_address_filter, interface_filter
(interfaces and interface lists), comment_filter: substring match. stats=True shows byte/packet counters.get_ipv6_raw_rule tool
Gets detailed information about a specific /ipv6 firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").create_ipv6_raw_rule tool
Creates an /ipv6 firewall raw rule (applied before connection tracking).
Notes:
chain: "prerouting" or "output", or a custom chain reached by jump.
jump_target: required with action="jump". address_list (+ optional address_list_timeout, e.g. "1d"):
required with add-src/dst-to-address-list. Prefix a matcher value with "!" to negate it.
protocol: IPv6 uses "icmpv6", not "icmp".
place_before: internal id ("*3") or print position ("0").update_ipv6_raw_rule tool
Updates an existing /ipv6 firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
Pass "" to clear an optional matcher (e.g. src_address="").remove_ipv6_raw_rule tool
Removes an /ipv6 firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").move_ipv6_raw_rule tool
Moves an /ipv6 firewall raw rule to a different position.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
destination: 0-based target position index.enable_ipv6_raw_rule tool
Enables an /ipv6 firewall raw rule.
disable_ipv6_raw_rule tool
Disables an /ipv6 firewall raw rule.
create_nat_rule tool
Creates a NAT rule (srcnat or dstnat) on the MikroTik device.
Notes:
to_addresses: single IP or range e.g. "10.0.0.1" or "10.0.0.1-10.0.0.10"
to_ports: single port or range e.g. "8080" or "8080-8090"
place_before: rule number or ID (*N) to insert before e.g. "0" or "*3"list_nat_rules tool
Lists NAT rules on the MikroTik device.
get_nat_rule tool
Gets detailed information about a specific NAT rule.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"update_nat_rule tool
Updates an existing NAT rule on the MikroTik device.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"
to_addresses: single IP or range e.g. "10.0.0.1" or "10.0.0.1-10.0.0.10"
to_ports: single port or range e.g. "8080" or "8080-8090"
Pass "" to clear an optional field.remove_nat_rule tool
Removes a NAT rule from the MikroTik device.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"move_nat_rule tool
Moves a NAT rule to a different position in the chain.
Notes:
rule_id: use the ID from list output e.g. "*1" or "0"
destination: 0-based target position indexenable_nat_rule tool
Enables a NAT rule.
disable_nat_rule tool
Disables a NAT rule.
list_raw_rules tool
Lists /ip firewall raw rules on the MikroTik device.
Notes:
chain_filter, action_filter, protocol_filter: exact match. src/dst_address_filter, interface_filter
(interfaces and interface lists), comment_filter: substring match. stats=True shows byte/packet counters.get_raw_rule tool
Gets detailed information about a specific /ip firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").create_raw_rule tool
Creates an /ip firewall raw rule (applied before connection tracking).
Notes:
chain: "prerouting" or "output", or a custom chain reached by jump.
jump_target: required with action="jump". address_list (+ optional address_list_timeout, e.g. "1d"):
required with add-src/dst-to-address-list. Prefix a matcher value with "!" to negate it.
place_before: internal id ("*3") or print position ("0").update_raw_rule tool
Updates an existing /ip firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
Pass "" to clear an optional matcher (e.g. src_address="").remove_raw_rule tool
Removes an /ip firewall raw rule.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").move_raw_rule tool
Moves an /ip firewall raw rule to a different position.
Notes:
rule_id: a RouterOS internal id ("*1A") or a print position ("0").
destination: 0-based target position index.enable_raw_rule tool
Enables an /ip firewall raw rule.
disable_raw_rule tool
Disables an /ip firewall raw rule.
list_bridge_vlans tool
Lists bridge VLAN table entries (tagged/untagged port membership per VLAN).
add_bridge_vlan tool
Adds an entry to the bridge VLAN table defining tagged/untagged port membership.
Notes:
vlan_ids: single ID, comma list, or range e.g. "10", "10,20", "100-199"
tagged: comma-separated ports carrying these VLANs tagged e.g. "ether1,ether2"
untagged: comma-separated ports carrying these VLANs untaggedupdate_bridge_vlan tool
Updates an existing bridge VLAN table entry.
Notes:
vlan_ids: must match the stored value exactly (it is a list property)
e.g. an entry created with "100-199" is matched by "100-199", not "150"
tagged/untagged: comma-separated port lists; pass "" to clear the list
Dynamic (D-flag) entries auto-created from PVIDs cannot be updated.
A change is confirmed on the device before success is reported.remove_bridge_vlan tool
Removes an entry from the bridge VLAN table.
Notes:
vlan_ids: must match the stored value exactly (it is a list property)list_bridge_ports tool
Lists bridge ports on the MikroTik device, including each port's PVID.
update_bridge_port tool
Updates per-port VLAN settings (PVID, frame types, ingress filtering) on a bridge port.
Notes:
interface: the port's interface name e.g. "ether2"; an interface can only
belong to one bridge, so it uniquely identifies the bridge port
pvid: VLAN ID assigned to untagged ingress traffic on this port
A change is confirmed on the device before success is reported.list_interfaces tool
Lists all interfaces on the MikroTik device (ethernet, bridge, WireGuard,
PPPoE, VLAN, WiFi, SFP, LTE, loopback, and any other type).
Notes:
type_filter: RouterOS interface type e.g. "ether", "bridge", "vlan",
"wg", "pppoe-out", "wifi", "lte", "loopback"
name_filter: partial name match e.g. "ether" matches ether1, ether2 …get_interface tool
Gets detailed information about a specific interface by name.
Notes:
name: exact interface name e.g. "ether1", "bridge", "pppoe-out1", "wg0"enable_interface tool
Enables an interface on the MikroTik device.
Notes:
name: exact interface name e.g. "ether1", "bridge", "pppoe-out1"disable_interface tool
Disables an interface on the MikroTik device.
Notes:
name: exact interface name e.g. "ether1", "bridge", "pppoe-out1"get_poe_monitor tool
Reads real-time Power-over-Ethernet (PoE) monitor data for one or more
ethernet interfaces — PoE-out status, voltage, current, and power.
Runs ``/interface ethernet poe monitor <interfaces> once``.
Notes:
interfaces: comma-separated ethernet interface name(s), e.g.
"ether1" or "ether9-ap,ether10-ap,ether11-ap,ether12-ap"list_poe tool
Lists the Power-over-Ethernet (PoE) configuration of PoE-capable
ethernet interfaces (PoE-out mode, priority).
Runs ``/interface ethernet poe print``.
Notes:
interface_filter: partial name match, e.g. "ether" matches ether1, ether2 …get_poe_settings tool
Gets the detailed PoE-out settings of a specific ethernet interface
(PoE-out mode, priority, voltage, low/high thresholds, …).
Runs ``/interface ethernet poe print detail where name=<name>``.
Notes:
name: exact ethernet interface name, e.g. "ether1"create_vlan_interface tool
Creates a VLAN interface on the MikroTik device with the given VLAN ID and parent interface.
list_vlan_interfaces tool
Lists VLAN interfaces on the MikroTik device.
get_vlan_interface tool
Gets detailed information about a specific VLAN interface.
update_vlan_interface tool
Updates an existing VLAN interface's settings on the MikroTik device.
remove_vlan_interface tool
Removes a VLAN interface from the MikroTik device.
create_wireguard_interface tool
Creates a WireGuard interface on the MikroTik device.
list_wireguard_interfaces tool
Lists WireGuard interfaces on the MikroTik device.
get_wireguard_interface tool
Gets detailed information about a specific WireGuard interface.
update_wireguard_interface tool
Updates an existing WireGuard interface's settings on the MikroTik device.
remove_wireguard_interface tool
Removes a WireGuard interface from the MikroTik device.
enable_wireguard_interface tool
Enables a WireGuard interface.
disable_wireguard_interface tool
Disables a WireGuard interface.
add_wireguard_peer tool
Adds a WireGuard peer (with public key and allowed addresses) to an interface on the MikroTik device.
Notes:
allowed_address: CIDR, comma-separated for multiple e.g. "10.0.0.2/32" or "10.0.0.0/24,192.168.0.0/24"
endpoint_address: remote host IP or hostname e.g. "203.0.113.1"
persistent_keepalive: seconds as string e.g. "25"list_wireguard_peers tool
Lists WireGuard peers on the MikroTik device.
get_wireguard_peer tool
Gets detailed information about a specific WireGuard peer by ID.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"update_wireguard_peer tool
Updates an existing WireGuard peer's allowed addresses, endpoint, keepalive, or enabled state.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"
allowed_address: CIDR, comma-separated e.g. "10.0.0.2/32" or "10.0.0.0/24,192.168.0.0/24"
persistent_keepalive: seconds as string e.g. "25"
Pass "" for endpoint_address or preshared_key to clear them.remove_wireguard_peer tool
Removes a WireGuard peer from the MikroTik device.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"enable_wireguard_peer tool
Enables a WireGuard peer.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"disable_wireguard_peer tool
Disables a WireGuard peer.
Notes:
peer_id: "*N" or "N" from list output e.g. "*2"generate_wireguard_client_config tool
Generates a wg0.conf client config string from the given keys and server endpoint. Does not communicate with the router.
create_wireless_interface tool
Creates a wireless interface on the MikroTik device (auto-detects RouterOS v6/v7 syntax).
list_wireless_interfaces tool
Lists wireless interfaces on the MikroTik device.
get_wireless_interface tool
Gets detailed information about a specific wireless interface.
remove_wireless_interface tool
Removes a wireless interface from the MikroTik device.
enable_wireless_interface tool
Enables a wireless interface.
disable_wireless_interface tool
Disables a wireless interface.
scan_wireless_networks tool
Scans for nearby wireless networks using the specified interface.
get_wireless_registration_table tool
Gets the wireless registration table (connected clients) from the MikroTik device.
check_wireless_support tool
Checks if the device supports wireless and reports the RouterOS version and wireless interface type.
create_wireless_security_profile tool
Legacy function - not supported in RouterOS v7.x
list_wireless_security_profiles tool
Legacy function - not supported in RouterOS v7.x
get_wireless_security_profile tool
Legacy function - not supported in RouterOS v7.x
remove_wireless_security_profile tool
Legacy function - not supported in RouterOS v7.x
set_wireless_security_profile tool
Legacy function - not supported in RouterOS v7.x
create_wireless_access_list tool
Legacy function - different in RouterOS v7.x
list_wireless_access_list tool
Legacy function - different in RouterOS v7.x
remove_wireless_access_list_entry tool
Legacy function - different in RouterOS v7.x
update_wireless_interface tool
Updates an existing wireless interface's settings (name, SSID, enabled state, etc.).
set_wireless_passphrase tool
Sets the WiFi passphrase directly on a RouterOS v7 wireless interface (/interface wifi or wifiwave2).
Notes:
authentication_types: comma-separated RouterOS auth types, e.g. "wpa2-psk,wpa3-psk"; unset keeps the current setting.add_ip_address tool
Adds an IP address to an interface on the MikroTik device.
list_ip_addresses tool
Lists IP addresses on the MikroTik device.
get_ip_address tool
Gets detailed information about a specific IP address by ID or address value.
remove_ip_address tool
Removes an IP address from the MikroTik device by ID or address value.
add_ipv6_address tool
Adds an IPv6 address to an interface on the MikroTik device.
Notes:
address: IPv6 address with prefix length, e.g. "2001:db8::1/64" or
"fe80::1/64". When `from_pool` is used, supply the host part only,
e.g. "::1/64".
advertise: include this prefix in Router Advertisements (default no).
eui_64: derive the host part of the address from the interface MAC.
from_pool: name of an IPv6 pool to take the prefix from.
no_dad: skip Duplicate Address Detection.list_ipv6_addresses tool
Lists IPv6 addresses on the MikroTik device.
Notes:
address_filter: partial match on the address, e.g. "2001:db8" or "fe80".
global_only: show only global (routable) addresses.
link_local_only: show only link-local (fe80::/10) addresses.get_ipv6_address tool
Gets detailed information about a specific IPv6 address by ID or address value.
Notes:
address_id: a RouterOS internal id (e.g. "*1") or the address value
(e.g. "2001:db8::1/64").remove_ipv6_address tool
Removes an IPv6 address from the MikroTik device by ID or address value.
Notes:
address_id: a RouterOS internal id (e.g. "*1"), print position ("0"),
or the address value (e.g. "2001:db8::1/64").list_arp_entries tool
Lists detailed IPv4 ARP entries.
Notes:
Address and MAC filters are substring matches. Interface and status
filters are exact matches.list_ipv6_neighbors tool
Lists detailed IPv6 neighbor-discovery entries.
Notes:
Address and MAC filters are substring matches. Interface and status
filters are exact matches.create_ip_pool tool
Creates an IP pool with the given address ranges on the MikroTik device.
Notes:
ranges: hyphen-separated range(s) e.g. "192.168.1.1-192.168.1.100"
Multiple ranges comma-separated: "10.0.0.1-10.0.0.50,10.0.0.100-10.0.0.120"list_ip_pools tool
Lists IP pools on the MikroTik device.
get_ip_pool tool
Gets detailed information about a specific IP pool including used address count.
update_ip_pool tool
Updates an existing IP pool's name, ranges, or next-pool reference.
Notes:
ranges: hyphen-separated range(s) e.g. "192.168.1.1-192.168.1.100"
Multiple ranges comma-separated: "10.0.0.1-10.0.0.50,10.0.0.100-10.0.0.120"
Pass "" for next_pool to clear it.remove_ip_pool tool
Removes an IP pool from the MikroTik device (fails if pool is in use).
list_ip_pool_used tool
Lists currently used (allocated) addresses from IP pools.
expand_ip_pool tool
Expands an existing IP pool by appending additional address ranges.
Notes:
additional_ranges: hyphen-separated range(s) e.g. "192.168.1.101-192.168.1.150"
Multiple ranges comma-separated: "10.0.0.51-10.0.0.60,10.0.0.70-10.0.0.80"list_ip_services tool
Lists the management services with their port and address restriction.
Notes:
`name_filter` is a substring match (`winbox`, `ssh`, `api`, `www`,
`www-ssl`, `ftp`, `telnet`). `enabled_only=True` hides the disabled
ones, which is the list that actually describes exposure.
An empty `address` means unrestricted. Read that together with how the
device is reached: unrestricted on a router whose WAN holds a public
address means the service is published to the internet, whether or not
the port was changed from its default.
`ftp` deserves its own look: RouterOS also serves SFTP file transfers
through the SSH service to users whose group holds the `ftp` policy,
so the two are not the same control.ping tool
Pings an IPv4/IPv6 address or host name from the router (needs the "test" policy).
Notes:
interval: e.g. "200ms" or "1s". arp_ping=True sends ARP requests instead of ICMP and needs interface.
do_not_fragment with size finds the path MTU.traceroute tool
Traces the route from the router to an IPv4/IPv6 address or host name (needs the "test" policy).
Notes:
count: probes per hop; the run takes roughly count x hops x timeout at worst.
timeout: per-probe timeout, e.g. "500ms" or "1s". port applies to protocol="udp".torch tool
Shows live traffic rates per flow on an interface for a few seconds (needs the "sniff" policy).
Notes:
Each filter both filters and breaks the table down by that field: "0.0.0.0/0" (or "::/0") lists
every address, "any" every protocol/port/VLAN/DSCP. With no filter, flows are broken down by
IPv4 src/dst address and IP protocol. Torch turns off fasttrack while it runs (higher CPU).
RouterOS prints its first frame after two seconds, so a duration under 3 runs for 3.sniff_packets tool
Captures packet headers for a few seconds with the quick packet sniffer (needs the "sniff" policy).
Notes:
Shows headers only (interface, direction, MACs, addresses, protocol, size); nothing is saved on
the router. ip_address matches source or destination. port: "53", "80,443" or "1000-2000".profile_cpu tool
Shows which RouterOS processes use the CPU, sampled over a few seconds.
Notes:
cpu: "total" (default), "all" for one column per core, or a core number (a duration under 3 runs for 3).get_logs tool
Gets logs from the MikroTik device with optional topic, time, and message filters.
Notes:
topics: comma-separated, entry matches any of them e.g. "system,dhcp"
time_filter: RouterOS duration e.g. "30s", "5m", "1h", "2d"
message_filter: RouterOS regex matched against the message (case-sensitive)
limit: keep only the newest N entriesget_logs_by_severity tool
Gets logs filtered by severity level (debug/info/warning/error/critical).
get_logs_by_topic tool
Gets logs for a specific topic/facility (system, dhcp, interface, firewall, etc.).
search_logs tool
Searches log messages for a literal term.
Notes:
search_term: treated literally (regex specials are escaped)
case_sensitive: RouterOS matching is case-sensitive; by default the
search emulates case-insensitivity with character classesget_system_events tool
Gets system-related log events (login, reboot, config-change, etc.).
get_security_logs tool
Gets security-related log entries (logins, failures, blocked connections, etc.).
clear_logs tool
Explains why MikroTik's in-memory log cannot be cleared on demand.
get_log_statistics tool
Gets log entry counts by topic and severity from the MikroTik device.
export_logs tool
Exports logs to a .txt file on the MikroTik device with optional topic and time filters.
monitor_logs tool
Watches for new log entries for a limited duration (max 60s) and returns them.
Notes:
duration: seconds to wait for new entries, capped at 60list_netwatch tool
Lists the netwatch probes with their live status and measurements.
Configuration first, then a LIVE STATE block with `status`, `since` — the
timestamp of the last transition — and, on an ICMP probe, the last test's
numbers: `rtt-avg`, `loss-percent`, `failed-tests`. Match the two blocks
by `host`, or by the `.id` the live one carries.
Notes:
`host_filter` and `comment_filter` are substring matches; `status_filter`
and `type_filter` are exact. Pass `status_filter="down"` to list only
what is currently failing.
`include_source=False` (the default) omits `up-script`,
`down-script` and `test-script`, because a probe that alerts through a
webhook or an e-mail carries the token or the password inline. Set it
to True only when you intend to read those commands; the output is
redacted either way, but redaction is pattern-based and is not a
guarantee.
A probe with no `src-address` follows whichever WAN is active, so it
keeps reporting across a failover; one pinned to a source address
reports that path only. Which of the two you want depends on whether
you are watching the internet or a specific link.create_queue_type tool
Creates a queue type (qdisc). kind selects the discipline (cake, fq-codel, sfq, red, pcq, pfifo, bfifo); remaining params are per-discipline options.
Notes:
pcq_rate: bandwidth per flow e.g. "1M", "512k"
pcq_classifier: comma-separated classifiers e.g. "src-address,dst-address"
cake_rtt: round-trip time e.g. "50ms", "100ms"
fq_codel_target / fq_codel_interval: time e.g. "5ms", "100ms"list_queue_types tool
Lists queue types on the MikroTik device.
get_queue_type tool
Gets detailed information about a specific queue type.
update_queue_type tool
Updates an existing queue type's discipline-specific settings.
remove_queue_type tool
Removes a queue type from the MikroTik device.
create_queue_tree tool
Creates a hierarchical queue tree entry attached to a parent interface or queue.
Notes:
max_limit / limit_at / burst_limit / burst_threshold: bandwidth e.g. "10M", "512k", "1G"
burst_time: duration e.g. "8s"
parent: interface name e.g. "ether1" or parent queue name
priority: 1 (highest) – 8 (lowest)list_queue_trees tool
Lists queue trees on the MikroTik device.
get_queue_tree tool
Gets detailed information about a specific queue tree.
update_queue_tree tool
Updates an existing queue tree entry (bandwidth limits, parent, priority, etc.).
Notes:
max_limit / limit_at / burst_limit / burst_threshold: bandwidth e.g. "10M", "512k"
burst_time: duration e.g. "8s"
priority: 1 (highest) – 8 (lowest)remove_queue_tree tool
Removes a queue tree from the MikroTik device.
enable_queue_tree tool
Enables a queue tree.
disable_queue_tree tool
Disables a queue tree.
create_simple_queue tool
Creates a simple queue to rate-limit a target address or interface.
Notes:
target: IP/CIDR or interface e.g. "192.168.1.0/24" or "ether1"
max_limit / limit_at / burst_limit / burst_threshold: upload/download bandwidth
as "UL/DL" e.g. "10M/10M", or single value e.g. "10M"
burst_time: duration e.g. "8s"
priority: 1 (highest) – 8 (lowest)list_simple_queues tool
Lists simple queues on the MikroTik device.
get_simple_queue tool
Gets detailed information about a specific simple queue.
update_simple_queue tool
Updates an existing simple queue's rate limits, target, or scheduling settings.
Notes:
target: IP/CIDR or interface e.g. "192.168.1.0/24" or "ether1"
max_limit / limit_at / burst_limit / burst_threshold: upload/download bandwidth
as "UL/DL" e.g. "10M/10M", or single value e.g. "10M"
burst_time: duration e.g. "8s"
priority: 1 (highest) – 8 (lowest)remove_simple_queue tool
Removes a simple queue from the MikroTik device.
enable_simple_queue tool
Enables a simple queue.
disable_simple_queue tool
Disables a simple queue.
add_route tool
Adds a route to the routing table.
Notes:
dst_address: CIDR e.g. "0.0.0.0/0", "192.168.1.0/24"
routing_table: name of a table from /routing table, e.g. "via_ISP2";
defaults to "main". RouterOS 6 called this the routing mark.
check_gateway: "ping" or "arp"
distance: 1-255 (lower = higher priority)list_routes tool
Lists routes in MikroTik routing table.
get_route tool
Gets detailed information about a specific route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"update_route tool
Updates a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"
dst_address: CIDR e.g. "192.168.1.0/24"
check_gateway: "ping" or "arp"
distance: 1-255
routing_table: name of a table from /routing table; "" moves the route
back to "main", since every RouterOS 7 route belongs to a table.
Pass "" to vrf_interface or pref_src to clear them.remove_route tool
Removes a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"enable_route tool
Enables a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"disable_route tool
Disables a route.
Notes:
route_id: "*N" or "N" from list output e.g. "*3"get_routing_table tool
Gets a specific routing table.
check_route_path tool
Checks the route MikroTik would use to reach a destination.
get_route_cache tool
Gets the route cache.
flush_route_cache tool
Flushes the route cache.
add_default_route tool
Adds a default route.
add_blackhole_route tool
Adds a blackhole route.
Notes:
dst_address: CIDR e.g. "10.0.0.0/8"
distance: 1-255get_route_statistics tool
Gets routing table statistics.
create_backup tool
Creates a system backup on the MikroTik device.
list_backups tool
Lists backup files on the MikroTik device.
create_export tool
Creates a configuration export file (rsc/json/xml) on the MikroTik device.
export_section tool
Returns a RouterOS configuration section as an export script.
Notes:
section: RouterOS path without leading slash e.g. "ip address", "interface vlan",
"ip firewall filter", "ip firewall nat", "queue simple"
hide_sensitive: keep secrets out of the output (False appends show-sensitive)download_file tool
Downloads a backup or export file from the MikroTik device as base64-encoded content.
upload_file tool
Uploads a base64-encoded file to the MikroTik device (for restore operations).
restore_backup tool
Restores a system backup on the MikroTik device; triggers a reboot.
import_configuration tool
Imports and executes a RouterOS configuration script (.rsc file) on the device.
remove_file tool
Removes a file from the MikroTik device filesystem.
backup_info tool
Gets detailed information about a backup file on the MikroTik device.
get_system_resource tool
Reports uptime, RouterOS version, board name, architecture, CPU and memory.
Notes:
`free-memory` against `total-memory` and `cpu-load` are the two numbers
worth reading before blaming the network for a slow device. On the
low-power boards a single packet-sniffing tool can saturate the CPU on
its own.get_system_health tool
Reports the board sensors: voltage, temperature, fan and PSU state.
Notes:
Many boards carry no sensors at all and legitimately report nothing.
An empty answer here means "this model does not measure it", not "the
reading failed".get_system_clock tool
Reports the device clock, time zone and DST setting.
Notes:
Log timestamps are only as trustworthy as this. A device without a
working time source dates its own evidence wrongly, which matters when
correlating an incident across sites.get_system_routerboard tool
Reports the model, serial number and bootloader firmware revision.
Notes:
`current-firmware` against `upgrade-firmware` is the RouterBOOT
bootloader, which is upgraded separately from RouterOS and is easy to
leave behind after a package upgrade.list_system_packages tool
Lists the installed RouterOS packages and which are disabled.
get_system_package_update tool
Reports the installed RouterOS version against the latest on its channel.
Notes:
This reads the stored result of the last check; it does not contact
MikroTik. `latest-version` can therefore be stale or empty on a device
that has never checked or cannot reach the update server.list_schedulers tool
Lists the scheduled tasks with their interval, next run and run count.
Notes:
`name_filter` is a substring match. Read `next-run` together with
`interval`: a scheduler whose `run-count` is not advancing is firing
into a script that errors out, which RouterOS does not surface here —
it shows up in the log under the `script` topic.
`include_source=False` (the default) omits `on-event`, because a
scheduler can carry commands inline, and those routinely hold a bot
token or a password inside a URL. Redaction only recognises labelled
secrets, so withholding the field is what keeps them off the wire. Set
it to True only when you intend to read the commands; the output is
redacted either way, but redaction is pattern-based and is not a
guarantee.list_scripts tool
Lists the stored scripts: owner, policy, run count and last start.
Notes:
`include_source=False` (the default) omits the script body, because
bodies routinely hold credentials in clear text. Set it to True only
when you intend to read the code; the output is redacted either way,
but redaction is pattern-based and is not a guarantee.
`policy` is what the script may do when it runs, which can exceed what
the user who scheduled it may do interactively.add_user tool
Adds a user to MikroTik device.
list_users tool
Lists users on MikroTik device.
get_user tool
Gets detailed information about a specific user.
update_user tool
Updates a user.
remove_user tool
Removes a user.
disable_user tool
Disables a user.
enable_user tool
Enables a user.
add_user_group tool
Adds a user group.
list_user_groups tool
Lists user groups on MikroTik device.
get_user_group tool
Gets detailed information about a specific user group.
update_user_group tool
Updates a user group.
remove_user_group tool
Removes a user group.
get_active_users tool
Gets currently active/logged-in users.
disconnect_user tool
Disconnects an active user session.
export_user_config tool
Exports user configuration to a file.
set_user_ssh_keys tool
Sets SSH keys for a specific user.
list_user_ssh_keys tool
Lists SSH keys for a specific user.
remove_user_ssh_key tool
Removes an SSH key.
get_ipsec_installed_sa tool
Lists the installed IPsec security associations (child/phase 2 SAs).
The Flags legend is the point of this view. On RouterOS 7 it reads:
S - SEEN-TRAFFIC the SA has carried packets
H - HW-AEAD the cipher is running in hardware
E - ESP
`S` is the only field that separates an SA carrying traffic from one that
is merely installed. A remote end reporting the connection as up, or its
own byte counters growing, does not contradict a missing `S`: those count
what the far side sent, not what arrived.
Two things this does NOT tell you, both easy to get wrong:
- **A missing `S` can mean idle, not broken.** An SA nothing has used
looks exactly like one that is failing, and RouterOS withholds
`addtime` and `expires-in` until traffic appears, which makes it look
half installed. Put traffic over the selector before concluding
anything.
- **Per-SA counters do not map onto policies once a peer has several
child SAs.** Traffic picks among them, so one SA can carry the outbound
side of two policies while another sits frozen at the counter it had
minutes after install. Pairing SAs by hand — by install time, by
address, by lifetime — invents a structure that is not there. Watch
which counters move under traffic you control instead.
Notes:
Address filters are substring matches on the SA endpoints, which are the
tunnel endpoints (public addresses), not the encapsulated subnets.
Behind NAT-T the endpoints carry the port (`198.51.100.2:4500`), which
is why this is not an exact match: filtering on the bare address would
find nothing there and report no SAs while some exist.get_ipsec_active_peers tool
Lists the IPsec peers with a live IKE session, with uptime and counters.
Shows the parent (phase 1) side: `state`, `uptime`, `last-seen` and the
byte counters. A peer can sit here `established` while its child SAs
carry nothing — use `get_ipsec_installed_sa` to tell the difference.
Notes:
Both filters are exact matches.list_ipsec_peers tool
Lists the configured IPsec peers.
Notes:
Filters are substring matches. Secrets live on `/ip ipsec identity`
and are not exposed by any tool in this server.list_ipsec_policies tool
Lists the IPsec policies, with their phase 2 state.
The Flags legend distinguishes configured policies from the ones a peer
generated at runtime (`D` dynamic), and `ph2-state` says whether the
child SA is established. A policy whose selectors do not match the far
end's is the usual cause of a tunnel that comes up and passes nothing.
Notes:
`peer_filter` is a substring match on the peer name; the address
filters are substring matches on the policy selectors, which are the
encapsulated subnets, not the tunnel endpoints.list_ipsec_profiles tool
Lists the IPsec profiles (phase 1 proposal: DH group, hash, lifetime, DPD).
Notes:
`lifetime` here is phase 1. It must be LONGER than the phase 2
lifetime on `/ip ipsec proposal`, so the child SA rekeys inside a
live parent SA; equal lifetimes tear the tunnel down on every
rekey. `dpd-interval` multiplied by `dpd-maximum-failures` is how
many seconds of silence the peer tolerates.list_ipsec_proposals tool
Lists the IPsec proposals (phase 2: encryption, auth, PFS, lifetime).
Notes:
Compare `lifetime` against the phase 1 lifetime on
`/ip ipsec profile`, and against whatever the far end proposes — a
cloud provider's own SA lifetime counts as a third value in that
comparison.download_file tool
generate_wireguard_client_config tool
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQL1 finding the scanner could not decide; see the findings below
- Tools that start processesNot seen in the traced code of 240 capabilities; 239 more call code the scanner could not follow, where it may happen
- Tools that touch files218 of 240 capabilities touch files; 21 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 240 capabilities; 239 more call code the scanner could not follow, where it may happen
Where the code is: 240 handlers in 32 files at commit f18bd46b8333
src/mcp_mikrotik/configured_mcp_server.py(name computed at run time)src/mcp_mikrotik/scope/devices/inventory.pylist_devicessrc/mcp_mikrotik/scope/devices/safe_mode.pysafe_mode_status, enable_safe_mode, commit_safe_mode, rollback_safe_modesrc/mcp_mikrotik/scope/dhcp/dhcp.pycreate_dhcp_server, list_dhcp_servers, list_dhcp_leases, list_dhcpv6_bindings, get_dhcp_server, create_dhcp_network, update_dhcp_network, remove_dhcp_network, create_dhcp_pool, remove_dhcp_serversrc/mcp_mikrotik/scope/dns/dns.pyset_dns_servers, get_dns_settings, add_dns_static, list_dns_static, get_dns_static, update_dns_static, remove_dns_static, enable_dns_static, disable_dns_static, get_dns_cache, flush_dns_cache, get_dns_cache_statistics +3src/mcp_mikrotik/scope/firewall/address_list.pycreate_address_list_entry, list_address_list_entries, get_address_list_entry, update_address_list_entry, remove_address_list_entry, enable_address_list_entry, disable_address_list_entrysrc/mcp_mikrotik/scope/firewall/filter.pycreate_filter_rule, list_filter_rules, get_filter_rule, update_filter_rule, remove_filter_rule, move_filter_rule, enable_filter_rule, disable_filter_rule, create_basic_firewall_setupsrc/mcp_mikrotik/scope/firewall/ipv6_filter.pycreate_ipv6_filter_rule, list_ipv6_filter_rules, get_ipv6_filter_rule, update_ipv6_filter_rule, remove_ipv6_filter_rule, move_ipv6_filter_rule, enable_ipv6_filter_rule, disable_ipv6_filter_rulesrc/mcp_mikrotik/scope/firewall/ipv6_raw.pylist_ipv6_raw_rules, get_ipv6_raw_rule, create_ipv6_raw_rule, update_ipv6_raw_rule, remove_ipv6_raw_rule, move_ipv6_raw_rule, enable_ipv6_raw_rule, disable_ipv6_raw_rulesrc/mcp_mikrotik/scope/firewall/nat.pycreate_nat_rule, list_nat_rules, get_nat_rule, update_nat_rule, remove_nat_rule, move_nat_rule, enable_nat_rule, disable_nat_rulesrc/mcp_mikrotik/scope/firewall/raw.pylist_raw_rules, get_raw_rule, create_raw_rule, update_raw_rule, remove_raw_rule, move_raw_rule, enable_raw_rule, disable_raw_rulesrc/mcp_mikrotik/scope/interfaces/bridge.pylist_bridge_vlans, add_bridge_vlan, update_bridge_vlan, remove_bridge_vlan, list_bridge_ports, update_bridge_portsrc/mcp_mikrotik/scope/interfaces/generic.pylist_interfaces, get_interface, enable_interface, disable_interfacesrc/mcp_mikrotik/scope/interfaces/poe.pyget_poe_monitor, list_poe, get_poe_settingssrc/mcp_mikrotik/scope/interfaces/vlan.pycreate_vlan_interface, list_vlan_interfaces, get_vlan_interface, update_vlan_interface, remove_vlan_interfacesrc/mcp_mikrotik/scope/interfaces/wireguard.pycreate_wireguard_interface, list_wireguard_interfaces, get_wireguard_interface, update_wireguard_interface, remove_wireguard_interface, enable_wireguard_interface, disable_wireguard_interface, add_wireguard_peer, list_wireguard_peers, get_wireguard_peer, update_wireguard_peer, remove_wireguard_peer +3src/mcp_mikrotik/scope/interfaces/wireless.pycreate_wireless_interface, list_wireless_interfaces, get_wireless_interface, remove_wireless_interface, enable_wireless_interface, disable_wireless_interface, scan_wireless_networks, get_wireless_registration_table, check_wireless_support, create_wireless_security_profile, list_wireless_security_profiles, get_wireless_security_profile +7src/mcp_mikrotik/scope/ip/address.pyadd_ip_address, list_ip_addresses, get_ip_address, remove_ip_addresssrc/mcp_mikrotik/scope/ip/ipv6_address.pyadd_ipv6_address, list_ipv6_addresses, get_ipv6_address, remove_ipv6_addresssrc/mcp_mikrotik/scope/ip/neighbors.pylist_arp_entries, list_ipv6_neighborssrc/mcp_mikrotik/scope/ip/pool.pycreate_ip_pool, list_ip_pools, get_ip_pool, update_ip_pool, remove_ip_pool, list_ip_pool_used, expand_ip_poolsrc/mcp_mikrotik/scope/ip/services.pylist_ip_servicessrc/mcp_mikrotik/scope/monitoring/diagnostics.pyping, traceroute, torch, sniff_packets, profile_cpusrc/mcp_mikrotik/scope/monitoring/logs.pyget_logs, get_logs_by_severity, get_logs_by_topic, search_logs, get_system_events, get_security_logs, clear_logs, get_log_statistics, export_logs, monitor_logssrc/mcp_mikrotik/scope/monitoring/netwatch.pylist_netwatchsrc/mcp_mikrotik/scope/queue/queue.pycreate_queue_type, list_queue_types, get_queue_type, update_queue_type, remove_queue_type, create_queue_tree, list_queue_trees, get_queue_tree, update_queue_tree, remove_queue_tree, enable_queue_tree, disable_queue_tree +7src/mcp_mikrotik/scope/routing/routes.pyadd_route, list_routes, get_route, update_route, remove_route, enable_route, disable_route, get_routing_table, check_route_path, get_route_cache, flush_route_cache, add_default_route +2src/mcp_mikrotik/scope/system/backup.pycreate_backup, list_backups, create_export, export_section, download_file, upload_file, restore_backup, import_configuration, remove_file, backup_infosrc/mcp_mikrotik/scope/system/info.pyget_system_resource, get_system_health, get_system_clock, get_system_routerboard, list_system_packages, get_system_package_updatesrc/mcp_mikrotik/scope/system/scheduler.pylist_schedulers, list_scriptssrc/mcp_mikrotik/scope/users/users.pyadd_user, list_users, get_user, update_user, remove_user, disable_user, enable_user, add_user_group, list_user_groups, get_user_group, update_user_group, remove_user_group +6src/mcp_mikrotik/scope/vpn/ipsec.pyget_ipsec_installed_sa, get_ipsec_active_peers, list_ipsec_peers, list_ipsec_policies, list_ipsec_profiles, list_ipsec_proposals
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=2.0.0,<3.0.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 240 capabilities; 239 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (2 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=2.0.0,<3.0.0 |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-15 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.wiresage/mikrotik-mcp |
|---|---|
| Listed in | 4 catalogs (github_search, glama, mcp_registry, mcp_toplist) |
| License | MIT |
| Created | 2025-05-12 |
| Topics | ai ai-agents ai-assistant ai-tools llms mcp mcp-server mikrotik mikrotik-mcp model-context-protocol |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.