Mikrotik MCP logo

Mikrotik MCP

Manage MikroTik RouterOS backups, configuration files, DHCP services, DNS settings, and leases through MCP tools 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 and exposes tools for operational and configuration tasks. It handles backups, configuration exports and imports, file transfers, DHCP resources, and DNS settings through natural-language requests. Reach for it when an agent needs to inspect or change RouterOS configuration without manually entering commands. Backup restoration reboots the device, so it is suited to controlled administrative workflows.

Use cases

  • Create and inspect MikroTik system backups
  • Export or import RouterOS configuration sections
  • Manage DHCP servers, pools, networks, and leases
  • Update DNS settings and static records
  • Upload files for router restore workflows

Key features

  • MikroTik RouterOS access over SSH
  • Backup creation, inspection, download, upload, and restore
  • RSC, JSON, and XML configuration exports
  • DHCP server, pool, network, lease, and binding management
  • DNS resolver, static record, and cache operations

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 Today

Recent health check succeeded.

6/6 checks healthy over the last 45d

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 5d ago via OSV.dev · mcp-server-mikrotik (PyPI)

Adoption & maintenance

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

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

How Mikrotik MCP works

What mikrotik-mcp does

mikrotik-mcp provides an MCP interface for interacting with MikroTik RouterOS devices through SSH. It lets an AI assistant perform router administration tasks involving system backups, configuration exports, filesystem files, DHCP, and DNS. The project also supports managing multiple MikroTik devices through an inventory structure, allowing an LLM to work with devices in a fleet rather than only a single router.

The server is relevant for operators who want conversational access to routine RouterOS administration. It can create and inspect backup artifacts, extract configuration sections, manage DHCP objects, and read or modify DNS configuration. Configuration changes are executed on the target device, so requests should be treated like direct administrative operations.

Tools and capabilities

Backup and configuration tools cover the lifecycle of RouterOS backup and export files:

  • Create system backups and list the backup files stored on a device.
  • Generate configuration exports in RSC, JSON, or XML formats.
  • Export a selected RouterOS section, such as ip address, interface vlan, ip firewall filter, ip firewall nat, or queue simple.
  • Download device files as base64-encoded content and upload base64-encoded files for restore workflows.
  • Inspect backup metadata, remove files, import an RSC configuration script, or restore a system backup.

DHCP tools create and manage DHCP servers, networks, and address pools. They also retrieve DHCP server details, IPv4 lease records, and DHCPv6 bindings. DHCP network fields include gateway, DNS, domain, and related options, while pools accept one or more IP ranges.

DNS tools read and change resolver configuration. Available operations include setting DNS servers, retrieving DNS settings, creating and listing static records, inspecting individual entries, updating or removing records, enabling or disabling records, and reading the DNS cache. Static entries can use either a name or a regular expression matching rule.

Limitations and notes

Restoring a system backup triggers a MikroTik device reboot. Importing a configuration executes the supplied RouterOS script, while file upload is intended to support restore operations; these actions should be used with appropriate change controls.

The export-section operation accepts a RouterOS path without a leading slash. Its sensitivity option controls whether secrets are kept out of the generated output. DHCP filters use different matching behavior: address and identity filters are substring matches, while server, status, and lease-time filters are exact matches. DHCPv6 uses substring matching for address and DUID filters, with exact matching for IAID, server, status, and lifetime.

DHCP lease durations use RouterOS-style values such as 1d, 12h, 30m, or 1h30m. DHCP pool ranges use hyphen-separated addresses, and multiple ranges are comma-separated. DNS static entries configured with a regular expression cannot also specify a name.

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 create and manage backups, exports, files, DHCP servers and leases, DNS settings and static entries, and DNS cache data. It also imports configurations and restores backups, with restore operations rebooting the device.

Use the project's installation guide to set up mikrotik-mcp.

Yes, mikrotik-mcp can upload a base64-encoded file and restore a system backup on the MikroTik device. Restoring a backup triggers a device reboot, so use the operation during a controlled maintenance window.

Yes, mikrotik-mcp manages DHCP servers, networks, pools, IPv4 leases, and DHCPv6 bindings, and it reads or changes DNS settings, static entries, and the DNS cache.

Yes, the project includes a Claude Desktop integration guide and identifies Claude Desktop as a supported integration. It also provides an MCP Inspector guide for interactive testing.

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>