Skip to main content
Glama
pkovitan

MikroTik MCP Server

by pkovitan

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

  • readonly

    • registers only read tools

    • read tools auto-connect on first use when the router is already defined in env

    • safest mode for AI agents

  • safe-write

    • registers all read tools

    • registers only a small safe write subset:

      • add_router

      • connect_router

      • backup_config

  • full

    • registers 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

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 acceptance

Security Guidance

For AI agents:

  1. Prefer readonly mode by default.

  2. Use safe-write only when backup/connect workflows are required.

  3. Use full only 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

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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