Mikrotik Mcp

io.github.jeff-nasseri由 GitHub 账号 jeff-nasseri 发布v0.24.0.0更新于 Oct 24, 2026

MCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.

概览

AI 生成的概览

通过 SSH 将 AI 助手连接到 MikroTik RouterOS 路由器,用于查看和配置防火墙、NAT、路由、DHCP、DNS 与 WireGuard。

可以做什么
  • 以自然语言请求管理 RouterOS 配置,如 VLAN、防火墙规则和 DNS 设置
  • 处理路由器上的路由、NAT、DHCP 与 WireGuard 设置
  • 可针对单台路由器,或使用多设备清单管理多台 MikroTik 设备
  • 可选择仅暴露只读工具,不修改 RouterOS 及其文件存储
  • 可选择在结果、通知和日志中隐藏凭据与私钥内容
适用场景
适合需要管理 MikroTik 路由器、希望助手代为读取或修改 RouterOS 配置而不必手敲命令行的人,也适用于清单中列出的多台设备。
运行要求
以 Python 包形式通过 stdio 在本机运行。需要能通过 SSH 访问路由器并提供凭据:单设备模式使用 MIKROTIK_HOST、MIKROTIK_PORT、MIKROTIK_USERNAME 以及 MIKROTIK_PASSWORD 或 MIKROTIK_KEY_FILENAME;多设备模式使用 MIKROTIK_INVENTORY 或 MIKROTIK_INVENTORY_FILE。
安装前请注意
服务器保存路由器 SSH 凭据,包括 MIKROTIK_PASSWORD 以及含各设备凭据的清单变量 MIKROTIK_INVENTORY。工具可修改 RouterOS 及其文件存储;建议启用 MIKROTIK_READ_ONLY、使用只读 RouterOS 账号,并考虑开启 MIKROTIK_SENSITIVE_HIDING 以在输出中隐藏敏感信息。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mikrotik Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MikroTik MCP

[MseeP.ai Security Assessment Badge]

[MCP Toplist] [Audited by AddonAudit] [Website] [Build Status] [Tests] [MIT License] [Discord]

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

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

Contributors ❤️

MikroTik MCP is built by the people below. Thank you for every commit, issue, review and idea.

[jeff-nasseri] [goto1134] [vavan11] [shahabbahojb] [lwsinclair] [nieomylnieja] [hassankhurram] [OronF] [pdostal] [inistor] [paoValle] [lucasholman] [lilianmoraru] [Kn-ut99] [vanelin] [siderakis] [mkranjcic]

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.

Presentations

Prefer to watch instead of read? The official MikroTik MCP presentations, including walkthroughs of new features and pull requests, live on Bisque: bisque.today/p/wiresage/mikrotik-mcp.

[Watch the MikroTik MCP presentations on Bisque]

[!NOTE] The Presentations section was added on 3 November 2026, after release v0.26.2. Releases up to v0.26.2 don't have it, and it ships with the next release.

来源:README.md,提交 0557a5f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

12
  1. v0.24.0.0最新Oct 3, 2026
  2. v0.23.3.0Oct 1, 2026
  3. v0.23.2.0Sep 27, 2026
  4. v0.23.1.0Sep 25, 2026
  5. v0.23.0.0Sep 23, 2026
  6. v0.22.0.0Sep 23, 2026
  7. v0.21.0.0Sep 21, 2026
  8. v0.20.0.0Sep 21, 2026
  9. v0.19.4.0Sep 20, 2026
  10. v0.19.2.0Sep 17, 2026
  11. v0.19.1.0Sep 16, 2026
  12. v0.15.0.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分