mikrotik-mcp MCP Server
MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.
mikrotik-mcp scores 71 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Developer tools. GitHub shows 367 stars. Package registries report about 2,104 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
71 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 71 comes from
22 + 20 + 8 + 10 + 4 + 7 = 71. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jeff-nasseri-mikrotik-mcp": { "command": "uvx", "args": [ "mcp-server-mikrotik" ], "env": { "MIKROTIK_HOST": "", "MIKROTIK_USERNAME": "", "MIKROTIK_PASSWORD": "YOUR_MIKROTIK_PASSWORD", "MIKROTIK_PORT": "", "MIKROTIK_KEY_FILENAME": "", "MIKROTIK_READ_ONLY": "", "MIKROTIK_SENSITIVE_HIDING": "", "MIKROTIK_INVENTORY_FILE": "", "MIKROTIK_INVENTORY": "YOUR_MIKROTIK_INVENTORY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
MIKROTIK_HOST | Optional | IP address or hostname of the MikroTik router (single-device mode; default: 127.0.0.1). Not needed when an inventory is configured. |
MIKROTIK_USERNAME | Optional | SSH username for the MikroTik router (single-device mode; default: admin) |
MIKROTIK_PASSWORDSecret | Optional | SSH password for the MikroTik router (single-device mode) |
MIKROTIK_PORT | Optional | SSH port of the MikroTik router (single-device mode; default: 22) |
MIKROTIK_KEY_FILENAME | Optional | Path to SSH private key file for key-based authentication (single-device mode) |
MIKROTIK_READ_ONLY | Optional | 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_HIDING | Optional | 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_FILE | Optional | Path to a YAML file listing multiple MikroTik devices (title, host, port, username, password, key_filename, tags, region). See docs/reference/devices/inventory.md. |
MIKROTIK_INVENTORYSecret | Optional | Inline multi-device inventory as a YAML (or JSON) list; takes precedence over MIKROTIK_INVENTORY_FILE and the single-device variables. Holds credentials. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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
https://github.com/user-attachments/assets/24fadcdc-c6a8-48ed-90ac-74baf8f94b59
Inspector
https://github.com/user-attachments/assets/e0301ff2-8144-4503-83d0-48589d95027d
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.
https://github.com/user-attachments/assets/185b2c39-8f55-4f26-a74c-2ac459ad38f5
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
- API Coverage - Implemented and planned RouterOS features
- Testing Guide - Run unit and integration tests
- Claude Code Integration - Configure for Claude Code
- 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.
Frequently asked questions
What is mikrotik-mcp MCP Server?
MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.
How do I install mikrotik-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mikrotik-mcp MCP Server runs locally from the PyPI package mcp-server-mikrotik with the command uvx mcp-server-mikrotik.
Is mikrotik-mcp MCP Server free and open source?
Yes. mikrotik-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mikrotik-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mikrotik-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is mikrotik-mcp MCP Server's trust score calculated?
mikrotik-mcp MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.