mikrotik-mcp

v0.1.0
@reyhanfahlevi/mikrotik-mcp Checked 2 days ago Published 27 days ago

MikroTik RouterOS v7 Model Context Protocol (MCP) Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mikrotik_get_system_resource

Get MikroTik system resources including CPU load, memory usage, uptime, board name, and RouterOS version.

mikrotik_get_system_routerboard

Get MikroTik RouterBOARD hardware details, model, serial number, and firmware version.

mikrotik_get_system_identity

Get the MikroTik system identity / hostname.

mikrotik_list_interfaces

List all network interfaces on the MikroTik router along with their status (running, disabled), type, and basic stats.

ParameterTypeDescription
typestringOptional interface type filter (e.g. 'ether', 'bridge', 'vlan', 'wlan')

mikrotik_get_interface_details

Get detailed configuration and statistics for a specific interface by name or ID.

ParameterTypeDescription
nameOrId *stringThe interface name (e.g. 'ether1') or ID (e.g. '*1')

mikrotik_get_ip_addresses

List all IP addresses configured on the MikroTik router interfaces.

ParameterTypeDescription
interfaceNamestringOptional interface name filter (e.g. 'ether1', 'bridge')

mikrotik_get_ip_routes

List the routing table entries (static, connected, dynamic routes).

ParameterTypeDescription
activeOnlybooleanOnly show active routes if true

mikrotik_get_arp_table

Get the ARP (Address Resolution Protocol) table to view IP to MAC address mappings.

ParameterTypeDescription
interfaceNamestringFilter by specific interface
ipAddressstringFilter by specific IP address

mikrotik_get_dhcp_leases

List DHCP server leases including active client IP addresses, MAC addresses, hostnames, and expiration times.

ParameterTypeDescription
hostnamestringFilter leases by hostname (partial match)
statusstringFilter by status (e.g. 'bound', 'waiting', 'offered')

mikrotik_get_firewall_filter_rules

List firewall filter rules with hit counters (packets, bytes) and configuration.

ParameterTypeDescription
chainstringOptional chain filter (e.g. 'input', 'forward', 'output')

mikrotik_get_firewall_nat_rules

List firewall NAT rules (masquerade, dstnat, srcnat).

ParameterTypeDescription
chainstringOptional chain filter (e.g. 'srcnat', 'dstnat')

mikrotik_get_system_logs

Retrieve recent system log entries from the MikroTik router.

ParameterTypeDescription
limitnumberMaximum number of recent log entries to return (default: 50)
topicstringFilter logs containing a specific topic (e.g. 'error', 'firewall', 'dhcp', 'system', 'warning')