Mikrotik MCP logo

Mikrotik MCP

Manage MikroTik RouterOS backups, exports, DHCP, and DNS through MCP tools exposed over SSH.

Install Mikrotik MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mikrotik-mcp": {
      "command": "uvx",
      "args": [
        "mcp-server-mikrotik"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

mikrotik-mcp connects AI assistants to MikroTik RouterOS devices over SSH for configuration and file-management tasks. It provides tools for backups, configuration exports and imports, DHCP administration, and DNS settings and records. Use it when an agent needs to inspect or change router configuration through natural-language MCP requests, including operations that may reboot the device.

Use cases

  • Create and inspect MikroTik backups
  • Export RouterOS configuration sections
  • Configure DHCP servers, pools, and networks
  • Manage DNS settings and static records
  • Import or restore router configuration files

Key features

  • MikroTik RouterOS administration over SSH
  • Backup, restore, export, and import operations
  • Base64 file upload and download
  • DHCP server, lease, pool, and network management
  • DNS settings, static records, and cache inspection
  • Sensitive-value control for configuration exports

Tools212

What Mikrotik MCP lets your agent do. Expand a tool for its parameters.

Verified live~34.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

13/13 checks healthy over the last 61d

What it can do

From the 212 tools this server returned when we ran it; 212 declare their own safety hints.

Can delete or modify data · 30Writes files · 1Handles credentials · 10Makes network requests · 4Read-only tools · 181
Network at startup2 connections
Files written at startup23

Observed 2026-10-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · mcp-server-mikrotik (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars320Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed212Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Mikrotik MCP works

What mikrotik-mcp does

mikrotik-mcp gives MCP-compatible AI assistants access to MikroTik RouterOS administration tasks. Its capabilities cover device backups, configuration export and import, file operations, DHCP management, and DNS configuration. Configuration sections can be exported from paths such as ip address, interface vlan, ip firewall filter, ip firewall nat, and queue simple.

The server is suited to workflows where an agent needs to inspect router state, create configuration artifacts, adjust network services, or apply an existing RouterOS script. It can work with multiple MikroTik devices through the project’s fleet inventory capability.

How it works

Requests arrive through MCP and are executed against MikroTik devices over SSH. Backup and export files can be transferred as base64-encoded content: the server can download files from a device and upload files for restore operations. RouterOS configuration exports may use RSC, JSON, or XML formats.

Configuration-section exports accept a RouterOS path without its leading slash. Sensitive values can be excluded from section output; enabling sensitive output appends RouterOS’s show-sensitive behavior. Changes that import a configuration script execute the supplied .rsc file on the device.

Tools and capabilities

Backup and file operations include:

  • Create and list system backups.
  • Inspect backup-file details.
  • Create configuration exports in RSC, JSON, or XML format.
  • Export individual RouterOS configuration sections.
  • Download, upload, and remove files on the device.
  • Restore a system backup or import a RouterOS configuration script.

DHCP tools can create, inspect, update, and remove DHCP servers, networks, and address pools. They also list IPv4 leases and DHCPv6 bindings. Lease and binding queries support filters, with substring matching for some address and identity fields and exact matching for several RouterOS status and lifetime fields.

DNS tools can read and set DNS server configuration, manage static DNS entries, enable or disable those entries, and inspect the DNS cache. Static records support names or regular expressions; RouterOS does not accept both for the same entry.

Limitations and notes

Restoring a system backup triggers a device reboot, so it is a disruptive operation. Uploaded restore files must be supplied as base64-encoded content, and downloaded files are returned in that form.

DHCP pool ranges use hyphen-separated ranges, with multiple ranges separated by commas. DHCP lease durations use RouterOS-style values such as 1d, 12h, or 30m. When clearing certain DHCP network fields, the corresponding list can be empty; the domain can be cleared with an empty string.

Because the tools can modify router configuration, apply imports, remove files, and reboot a device, review generated operations before execution and ensure the connected RouterOS account has appropriate access.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mikrotik MCP

mikrotik-mcp is an MCP server that connects AI assistants to MikroTik RouterOS devices over SSH. Its main tools manage backups and configuration files, export RouterOS sections, configure DHCP services, and inspect or update DNS settings and static records through natural-language MCP requests.

Use the project’s installation guide to set up mikrotik-mcp for your MCP client and MikroTik device. The server is intended to connect to RouterOS over SSH, so the target device and account must be reachable and authorized for the requested operations.

Yes, mikrotik-mcp can upload a base64-encoded backup file and restore it on the MikroTik device. Restoring a system backup triggers a reboot, so schedule the operation with the device’s expected interruption in mind.

Yes, mikrotik-mcp has a Claude Desktop integration guide and demonstration. Configure the server in Claude Desktop, then use its MCP tools for supported MikroTik backup, export, DHCP, DNS, and file operations.

Use the export-section capability with a RouterOS path such as `ip firewall filter` or `ip firewall nat`. The tool can omit sensitive values by default behavior controlled through its sensitive-output option, and the result is returned as a RouterOS export script.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMikrotik MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mikrotik-mcp?style=directory)](https://allmcps.com/mcp/mikrotik-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mikrotik-mcp"><img src="https://allmcps.com/api/badge/mikrotik-mcp?style=directory" alt="Mikrotik MCP on AllMCPs" /></a>