经 AI Skill Hub 精选评估,MikroMCP 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
MikroMCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MikroMCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/AliKarami/MikroMCP
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mikromcp": {
"command": "npx",
"args": ["-y", "mikromcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MikroMCP 执行以下任务... Claude: [自动调用 MikroMCP MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mikromcp": {
"command": "npx",
"args": ["-y", "mikromcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="./docs/assets/MikroMCP-logo-dark.png"> <source media="(prefers-color-scheme: light)" srcset="./docs/assets/MikroMCP-logo-light.png"> <img alt="MikroMCP" src="./docs/assets/MikroMCP-logo-dark.png" width="700"> </picture> </p>
AI-native network automation for MikroTik RouterOS. MikroMCP exposes RouterOS as a typed, auditable Model Context Protocol server so Claude, Cursor, Codex, and other MCP clients can inspect, diagnose, and safely operate MikroTik routers in natural language.
MikroMCP exists because raw router CLI access is the wrong abstraction for AI agents. RouterOS is powerful, but asking an LLM to improvise shell commands against production network gear is risky. MikroMCP gives agents a controlled tool surface: strict schemas, idempotent writes, dry-run previews, per-router circuit breakers, retry policies, RBAC, audit logs, snapshots, and rollback-aware change workflows.
In one sentence: MikroMCP turns MikroTik RouterOS into a production-minded MCP control plane for AI infrastructure, DevOps automation, and modern router management.

---
| Category | What MikroMCP covers |
|---|---|
| 🧭 **Router management** | System status, clock, reboot, packages, files, scripts, scheduler jobs, containers |
| 🌐 **Network operations** | Interfaces, VLANs, IP addresses, DHCP leases, DNS static records, bridge ports, WiFi clients |
| 🔥 **Firewall and policy** | Filter/NAT rules, mangle rules, address lists, route tables, routing rules |
| 🛰️ **Routing visibility** | Static routes, routing tables, BGP peers, OSPF neighbors |
| 🔐 **Secure access** | HTTP bearer auth, bcrypt token hashes, RBAC, router/tool restrictions, confirmation tokens |
| 🧪 **Diagnostics** | Router-originated ping, traceroute, torch, log filtering, guarded SSH command execution |
| 🛡️ **Change safety** | Dry-run, idempotent writes, snapshots, write journal, plan_changes, apply_plan, rollback_change |
| ⚙️ **Production behavior** | Retries for read tools, per-router circuit breakers, correlation IDs, structured logs, audit logs |
| 🤖 **AI-agent fit** | Human-readable responses plus structured JSON content for reasoning, chaining, and automation |
| 🧩 **MCP compatibility** | stdio for desktop clients, Streamable HTTP and legacy SSE for remote or service-style clients |
---
Recommended RouterOS policies for full tool coverage:
read, write, api, rest-api, test, ssh, sniff, ftp
sshis required forping,traceroute,torch, andrun_command.sniffis required bytorch.ftpis required only forupload_file.
---
npm (recommended)
npm install -g mikromcp
Standalone binaries
Download the binary for your platform from the latest GitHub release — no Node.js required.
Docker
docker pull ghcr.io/alikarami/mikromcp:latest
---
docker run --rm \
-e MIKROMCP_TRANSPORT=http \
-e MIKROMCP_PORT=3000 \
-e MIKROMCP_CONFIRMATION_SECRET="$(openssl rand -hex 32)" \
-e ROUTER_CORE01_USER=mcp-api \
-e ROUTER_CORE01_PASS=your-router-password \
-e MIKROMCP_CONFIG_PATH=/config/routers.yaml \
-v "$HOME/.mikromcp:/config:ro" \
-p 3000:3000 \
ghcr.io/alikarami/mikromcp:latest
Pass MIKROMCP_CONFIG_PATH and MIKROMCP_IDENTITIES_PATH explicitly when running in Docker since ~/.mikromcp/ inside the container refers to the container's home directory.
---
<p align="center"> <img src="docs/assets/demo-1.gif" width="900" /> </p>
ROUTER_CORE01_USER= ROUTER_CORE01_PASS=
To edit your router registry directly:
bash nano ~/.mikromcp/routers.yaml yaml routers: core-01: host: "192.168.88.1" port: 443 tls: enabled: true rejectUnauthorized: true credentials: source: "env" envPrefix: "ROUTER_CORE01" tags: ["core"] rosVersion: "7" ```
---
All settings can be placed in ~/.mikromcp/.env or passed as environment variables. Values in ~/.mikromcp/.env are loaded at startup; explicit environment variables always take precedence.
| Variable | Default | Purpose |
|---|---|---|
MIKROMCP_TRANSPORT | stdio | stdio or http |
MIKROMCP_CONFIG_PATH | ~/.mikromcp/routers.yaml | Router registry path |
MIKROMCP_IDENTITIES_PATH | ~/.mikromcp/identities.yaml | Identity and bearer-token registry |
MIKROMCP_STDIO_IDENTITY | built-in superadmin | Named identity for stdio mode |
MIKROMCP_PORT | 3000 | HTTP transport port |
MIKROMCP_BIND_HOST | 127.0.0.1 | HTTP bind address |
MIKROMCP_CONFIRMATION_SECRET | unset | HMAC secret for destructive-action confirmation tokens |
MIKROMCP_AUDIT_LOG_PATH | unset | Optional NDJSON audit log file path |
MIKROMCP_DATA_DIR | ~/.mikromcp/data | Snapshots and write-journal directory |
MIKROMCP_HTTP_MAX_BODY_BYTES | 1048576 | HTTP request body cap |
MIKROMCP_HTTP_RATE_LIMIT_RPM | 60 | Requests per minute per IP; 0 disables rate limiting |
MIKROMCP_SSH_COMMAND_TIMEOUT_MS | 30000 | SSH command timeout |
MIKROMCP_SSH_MAX_OUTPUT_BYTES | 524288 | SSH output cap |
MIKROMCP_CMD_ALLOW | unset | Global allowlist patterns for run_command |
MIKROMCP_CMD_DENY | unset | Global denylist patterns for run_command |
ROUTER_<PREFIX>_USER | unset | Router username from envPrefix |
ROUTER_<PREFIX>_PASS | unset | Router password from envPrefix |
---
Check interface health on edge-01, then run ping and traceroute from the router
to 1.1.1.1. If packet loss is present, use torch on the WAN interface for a
short traffic snapshot.
Create a change plan that adds a DNS record and a firewall address-list entry
on edge-01. Use dry-run first, explain the plan, then wait for approval before
applying anything.
---
MikroMCP 是一款专为 MikroTik RouterOS 设计的 AI 原生网络自动化工具。它通过 MCP 协议将 RouterOS 的能力转化为 AI 可理解的类型化接口,让 AI 能够直接与网络设备交互,实现智能化的网络管理与自动化运维。
MikroMCP 提供了全面的网络管理能力。在路由器管理方面,支持查看系统状态、时钟、重启、软件包、文件、脚本、计划任务及 Container 容器;在网络操作方面,涵盖了 Interfaces、VLANs、IP 地址、DHCP leases、DNS 静态记录、Bridge 端口以及 WiFi 等核心功能的自动化控制。
在使用 MikroMCP 之前,请确保满足以下环境要求:需安装 Node.js 22 或更高版本(若使用 npm 安装);目标 MikroTik RouterOS 版本需为 7.x 并已启用 REST API;此外,需准备一个具有相应权限的 RouterOS 用户,建议授予 read 和 write 权限以实现完整的工具覆盖。
您可以通过多种方式安装 MikroMCP:推荐使用 npm 进行全局安装(`npm install -g mikromcp`);若不想安装 Node.js 环境,可以直接从 GitHub Releases 下载对应平台的 Standalone binaries;此外,也支持使用 Docker 部署,通过 `docker pull` 获取镜像并配置环境变量进行快速启动。
本项目提供了从快速上手到实际场景应用的完整指南。通过演示 GIF 可以直观感受 AI 如何驱动网络操作。无论是简单的查询指令,还是复杂的网络变更任务,您都可以通过自然语言引导 AI 完成预设的自动化流程。
MikroMCP 的配置通过 `~/.mikromcp/.env` 文件或环境变量进行管理。系统启动时会加载 .env 文件中的配置,但显式传入的环境变量具有最高优先级。您可以通过编辑 `routers.yaml` 直接管理路由器注册信息,并利用环境变量前缀(如 `ROUTER_CORE01`)来安全地传递凭据。
通过 API 接口,您可以进行深度的接口诊断。例如,您可以要求 AI 检查特定设备的接口健康状态,并在发现丢包时自动运行 ping、traceroute 或使用 torch 工具对 WAN 接口进行流量快照分析,实现智能化的故障排查。
MikroMCP 引入了严谨的 Plan / Apply / Rollback 工作流。在执行变更(如添加 DNS 记录或防火墙规则)时,系统会先生成变更计划(dry-run),并向用户解释计划内容。在获得用户明确批准前,不会执行任何实际操作,确保了网络变更的安全性和可控性。
该项目是一个开源的MCP工具,使用TypeScript编写,具有生产级MCP服务器和安全的AI原生网络功能。虽然星数较少,但项目的技术选型和功能设计值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:MikroMCP 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | MikroMCP |
| 原始描述 | 开源MCP工具:Production-grade MCP server for MikroTik RouterOS with secure AI-native network 。⭐22 · TypeScript |
| Topics | mcpagentic-aiai-agentsantrhopicclaudecursor-aitypescript |
| GitHub | https://github.com/AliKarami/MikroMCP |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-24 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端