io.github.wiresage/mikrotik-mcp
io.github.wiresage/mikrotik-mcp · 299 stars · Python · MIT
MCP server MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.
Install
The repo has no one-line install. Follow its README.
Published as
- PyPI
mcp-server-mikrotikstdio
From the server's entry in the official MCP Registry.
Configuration
| Name | Set as | What it is |
|---|---|---|
MIKROTIK_HOSTOptional | Env var | IP address or hostname of the MikroTik router (single-device mode; default: 127.0.0.1). Not needed when an inventory is configured. |
MIKROTIK_USERNAMEOptional | Env var | SSH username for the MikroTik router (single-device mode; default: admin) |
MIKROTIK_PASSWORDOptional · Secret | Env var | SSH password for the MikroTik router (single-device mode) |
MIKROTIK_PORTOptional | Env var | SSH port of the MikroTik router (single-device mode; default: 22) |
MIKROTIK_KEY_FILENAMEOptional | Env var | Path to SSH private key file for key-based authentication (single-device mode) |
MIKROTIK_READ_ONLYOptional | Env var | When true, expose only tools that do not modify RouterOS or its file store. Use a read-only RouterOS account as defence in depth. |
MIKROTIK_SENSITIVE_HIDINGOptional | Env var | When true, redact recognized credentials and private key material from tool results, MCP notifications, and logs, and omit tools that return opaque sensitive payloads. |
MIKROTIK_INVENTORY_FILEOptional | Env var | Path to a YAML file listing multiple MikroTik devices (title, host, port, username, password, key_filename, tags, region). See docs/reference/inventory. |
MIKROTIK_INVENTORYOptional · Secret | Env var | Inline multi-device inventory as a YAML (or JSON) list; takes precedence over MIKROTIK_INVENTORY_FILE and the single-device variables. Holds credentials. |
Files
MikroTik MCP
Overview
MikroTik MCP provides a bridge between AI assistants and MikroTik RouterOS devices. It allows AI assistants to interact with MikroTik routers through natural language requests, executing commands like managing VLANs, configuring firewall rules, handling DNS settings, and more.
Demo Videos
Claude Desktop
mcp-mikrotik-claude.mp4
Inspector
mcp-mikrotik-inspector.mp4
Inventory
Note
Since MikroTik MCP version
0.14.0, the MikroTik MCP will allow you to manage multiple MikroTik devices within your fleet structure. The following video simply shows how to use the inventory of MikroTik devices to let LLMs talk with your MikroTik devices.
mikrotik-mcp-inventory-demo-video.mp4
Documentation
📚 Full Documentation - Complete guides, API reference, and examples
🌐 Prefer to read online? The same documentation is also published at www.mikrotik-mcp.com (docs) — an optional, web-friendly way to explore the project while reviewing the repo.
Quick Links
- Installation Guide - Get started with MikroTik MCP
- Testing Guide - Run integration tests
- Claude Desktop Integration - Configure for Claude Desktop
- MCP Inspector - Interactive testing tool
- Contributing Guide - Help improve MikroTik MCP
- Articles - Learning resources and tutorials
- Diagrams - Architecture and design diagrams (draw.io)
Contributors ❤️
MikroTik MCP is built by the people below. Thank you for every commit, issue, review and idea.
Contributions of every kind are welcome: code, bug reports, documentation and reviews all move the project forward. Start with the Contributing Guide.
Community
Got a question, an idea, or something you'd like to talk through? Join us on Discord. Users and contributors are both welcome, whether you're connecting your first router or working on a PR.
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 299
- License
- MIT
- Language
- Python
- Last push
- 2026-10-11
- Forks
- 67
- MCP Registry
- io.github.wiresage/mikrotik-mcp
- Homepage
- mikrotik-mcp.com
- Topics
- ai, ai-agents, ai-assistant, ai-tools, llms, mcp, mcp-server, mikrotik, model-context-protocol, networking, networking-in-python, python, mikrotik-mcp
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k