This server is read-only and does not modify router configurations. It supports both plain TCP (8728) and secure SSL/TLS (8729) connections.
Features
- Connection Management: Connect and authenticate with MikroTik routers
- Resource Monitoring: Dynamic access to interfaces, bridges, and routing tables via MCP resources
- Protocol Support: Works with both plain TCP (8728) and secure SSL/TLS (8729)
- Modern & Legacy Login: Supports RouterOS versions prior to and after v6.43
- Security Auditing: Automatic Workload Repository (AWR) style reports with performance metrics and security recommendations
Installation
Configuration
Environment Variables
MK_USER: MikroTik username (required if providing host at startup)MK_PASSWORD: MikroTik password (required if providing host at startup)
Startup Arguments
host: (Optional) IP address of the routersecure: (Optional) Use SSL/TLS. Default isfalse
MK_USER and MK_PASSWORD.
Claude Desktop Setup
Arguments and environment variables are optional. You can connect later using the
mk-connect tool.Resources
The server exposes MikroTik entities as MCP resources for direct inspection:Interfaces
mikrotik://interface/ether1
Bridges
mikrotik://bridge/bridge1
Bridge Ports
mikrotik://bridge/bridge1/ether2
IP Routes
mikrotik://route/400AF317
Internal IDs are used for routing entries.
Tools
mk-connect
Connects to a router. Parameters:host: IP address of the routeruser: Usernamepassword: Passwordsecure: (Optional) Use SSL/TLS. Default isfalse
mk-report
Generates a comprehensive system report. Aggregates system resources, health, routerboard info, and interface traffic statistics (usingmonitor-traffic once).
Parameters: None
mk-get
Returns a JSON array with the result of a MikroTik API/print command.
Parameters:
sentence: The API path (e.g.,/ip/route,/interface,/log)
The server automatically ensures the path starts with
/ and ends with /print.mk-awr
Generates an Automatic Workload Repository (AWR) style report for MikroTik. Includes performance metrics, security audit, and recommendations. Parameters: NonePrompts
The server provides several pre-defined prompts for common tasks:- mk-connect: Connect to MikroTik: Helps you establish a connection to your router
- mk-report: System Report: Requests a full system status and traffic report
- mk-get-route: Routing Table: Specifically asks for the current IP routing table
- mk-get-interface: List Interfaces: Specifically asks for all configured interfaces
- mk-get-log: View Logs: Requests the latest system log entries
- mk-awr: Security Audit: Initiates a full performance and security audit of the router
Security Audit Features
Usemk-get with the following API paths to find potential security risks and unused entities:
interfaceip/addressip/routeip/route/rulesip/firewall/address-listip/firewall/filterip/firewall/natip/firewall/mangle