MikroTik MCP Server
Allows interaction with MikroTik RouterOS devices, providing tools for reading and writing configuration (depending on mode), managing routers, interfaces, firewall rules, DHCP, NAT, routes, users, wireless, and more. Supports multi-router setup.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MikroTik MCP Servershow system info for router rb4011"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MikroTik MCP Server
MCP server for MikroTik RouterOS with:
multi-router support
environment-based auto-load
split read/write architecture
selectable runtime modes:
readonly,safe-write,full
Current Architecture
Key modules:
Architecture notes:
Related MCP server: MikroMCP
Runtime Modes
readonlyregisters only read tools
read tools auto-connect on first use when the router is already defined in env
safest mode for AI agents
safe-writeregisters all read tools
registers only a small safe write subset:
add_routerconnect_routerbackup_config
fullregisters both read and write tools
Mode reference:
Multi-Router Setup
Recommended approach: set MIKROTIK_ROUTERS once and let the server auto-load routers every time it starts.
Example:
{
"rb4011": {
"host": "192.168.100.1",
"username": "admin",
"password": "change-me-4011",
"port": 8728
},
"rb2011": {
"host": "192.168.88.1",
"username": "admin",
"password": "change-me-2011",
"port": 8728
}
}More details:
Config Examples
default/full example:
read-only example:
safe-write example:
full-control example:
Installation
Setup guide:
Testing
Testing guide:
Quick commands:
python -m pytest -q
python -m pytest -q -m regression
python -m pytest -q -m scenario
python -m pytest -q -m acceptanceSecurity Guidance
For AI agents:
Prefer
readonlymode by default.Use
safe-writeonly when backup/connect workflows are required.Use
fullonly for supervised admin workflows.
Tool Coverage
Read surface includes:
routers
connectivity test
system info
interfaces
IP addresses
firewall rules
DHCP leases and DHCP info
logs, log topics, log summary
NAT rules
routes
users
wireless interfaces and registration
Write surface includes:
add router
connect router
add/remove IP
add/update/delete/move firewall rules
add route
update/delete NAT rules
backup config
run command
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pkovitan/mcp_mikrotik'
If you have feedback or need assistance with the MCP directory API, please join our Discord server