
Mikrotik Mcp
Let your coding agent read and change MikroTik router settings over SSH without memorizing RouterOS CLI.
Overview
io.github.jeff-nasseri/mikrotik-mcp is an Operate-phase MCP server that manages MikroTik routers over SSH for firewall, NAT, routing, DHCP, DNS, and WireGuard.
What is this MCP server?
- Exposes MikroTik operations via MCP stdio (PyPI package mcp-server-mikrotik v0.9.3.0)
- Covers firewall, NAT, routing, DHCP, DNS, and WireGuard through SSH
- Supports password or SSH key auth via MIKROTIK_KEY_FILENAME
- Configurable host, port (default 22), and username (default admin)
- Package version 0.9.3.0 on PyPI as mcp-server-mikrotik
- Five documented environment variables including required MIKROTIK_HOST
- Default SSH port 22 and default username admin
Community signal: 204 GitHub stars.
What problem does it solve?
RouterOS changes are easy to get wrong in a hurry, and copying CLI snippets from forums does not scale when you ship from an AI agent.
Who is it for?
Solo builders who own a MikroTik box and want agent-assisted network ops without a separate NMS.
Skip if: Teams on cloud-only networking with no MikroTik hardware, or anyone who cannot safely grant SSH to an automated client.
What do I get? / Deliverables
After install, your agent can query and apply MikroTik network config through MCP tools with your SSH credentials bound in env vars.
- Registered stdio MCP server pointing at mcp-server-mikrotik
- Agent-callable tools for RouterOS network operations over SSH
Recommended MCP Servers
Journey fit
Homelab, studio, and edge networks stay in the Operate phase once the product is live—routing and firewall work is ongoing infrastructure, not greenfield build. Firewall, NAT, DHCP, DNS, and WireGuard are core infra knobs solo builders tune when something breaks or a new service needs ports.
How it compares
SSH-backed router MCP integration, not a standalone network monitoring skill or IaC module.
Common Questions / FAQ
Who is mikrotik-mcp for?
Indie builders and homelab operators who run MikroTik and want Claude Code, Cursor, or similar agents to help with RouterOS tasks via MCP.
When should I use mikrotik-mcp?
Use it during Operate when you are adjusting firewall rules, NAT, DHCP, DNS, routes, or WireGuard on a router you already administer.
How do I add mikrotik-mcp to my agent?
Install the PyPI package mcp-server-mikrotik, set MIKROTIK_HOST (required) plus MIKROTIK_USERNAME, MIKROTIK_PASSWORD or MIKROTIK_KEY_FILENAME, add the stdio MCP entry, then restart the client.