Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyCloud and servers

MikroTik MCP

Lets your AI agent manage MikroTik routers over SSH: firewall, NAT, routing, DHCP, DNS, VLANs and WireGuard.

320 stars on GitHubby wiresageLicense MITUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add mikrotik -- uvx mcp-server-mikrotik

What to fill in

NameWhat it isRequired
MIKROTIK_HOSTIP address or hostname of the MikroTik router (single-device mode; default: 127.0.0.1). Not needed when an inventory is configured.No
MIKROTIK_USERNAMESSH username for the MikroTik router (single-device mode; default: admin)No
MIKROTIK_PASSWORDSSH password for the MikroTik router (single-device mode)No
MIKROTIK_PORTSSH port of the MikroTik router (single-device mode; default: 22)No
MIKROTIK_KEY_FILENAMEPath to SSH private key file for key-based authentication (single-device mode)No
MIKROTIK_READ_ONLYWhen true, expose only tools that do not modify RouterOS or its file store. Use a read-only RouterOS account as defence in depth.No
MIKROTIK_SENSITIVE_HIDINGWhen true, redact recognized credentials and private key material from tool results, MCP notifications, and logs, and omit tools that return opaque sensitive payloads.No
MIKROTIK_INVENTORY_FILEPath to a YAML file listing multiple MikroTik devices (title, host, port, username, password, key_filename, tags, region). See docs/reference/inventory.No
MIKROTIK_INVENTORYInline multi-device inventory as a YAML (or JSON) list; takes precedence over MIKROTIK_INVENTORY_FILE and the single-device variables. Holds credentials.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Show me the firewall rules on my main router.
Create a VLAN for guests on the office router.

What it is

MikroTik MCP bridges AI assistants and MikroTik RouterOS devices. You ask in plain words and the agent runs the matching router commands, such as managing VLANs, firewall rules and DNS settings. From version 0.14.0 it can manage several routers in one inventory.

What it can do

  • Manage VLANs
  • Configure firewall rules and NAT
  • Handle DNS settings
  • Routing, DHCP and WireGuard (listed in the registry description)
  • Inventory of several MikroTik devices
  • Works with Claude Desktop and MCP Inspector

When to use

  • β€ΊWhen you want to change router settings by describing what you want
  • β€ΊWhen you manage a fleet of MikroTik devices from one place
  • β€ΊWhen you want to review firewall or DNS configuration with an assistant

What you need

A MikroTik RouterOS device reachable over SSH. See the Installation Guide in the docs for the install steps.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

It is MIT licensed, so you can use, modify and distribute it. The readme lists no price.

How does it talk to the router?

The registry description says over SSH.

Can it manage more than one router?

Yes. Since version 0.14.0 you can manage multiple MikroTik devices through an inventory.

Where are the install steps?

In the Installation Guide in the repo docs and on mikrotik-mcp.com.

Which clients does it work with?

The readme has a Claude Desktop integration guide and an MCP Inspector guide.

Can it break my router settings?

It can run configuration commands, so review requested changes before approving them.

If it does not work

  • β€ΊCheck that SSH access to the router works with the same credentials from your computer.
  • β€ΊTest the connection with MCP Inspector to see tool errors.
  • β€ΊRestart your MCP client fully after changing its config.

5 new skills a week. 1 minute to read.