Best for
- Network engineers and operators who need to inspect or manage MikroTik RouterOS devices through MCP.
- Teams seeking network automation with typed tools, access controls, and audit capabilities.
MikroMCP exposes MikroTik RouterOS and SwOS operations as MCP tools and includes several change-safety and auditing features. It is intended for users managing MikroTik equipment; SwOS support is experimental.
Strongest · Documentation 14/20 Weakest · Reliability 10/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 22+
MIKROMCP_ROUTER_PASS
RouterOS REST API password for that router; obtain it from the router account configuration.
MIKROMCP_CONFIG_PATH
Path to the router registry YAML file; defaults to ~/.mikromcp/routers.yaml.
MIKROMCP_ROUTER_HOST
Address of a single router; obtain it from your MikroTik router configuration.
MIKROMCP_ROUTER_USER
RouterOS REST API username for that router; obtain it from the router account configuration.
MIKROMCP_STDIO_IDENTITY
Optional RBAC identity name for stdio transport; use a configured identity name.
MIKROMCP_LOG_LEVEL
Optional log level: trace, debug, info, warn, or error.
Available through npm: configure the MCP client to run npx with arguments -y mikromcp, and set MIKROMCP_ROUTER_HOST, MIKROMCP_ROUTER_USER, and MIKROMCP_ROUTER_PASS. A router registry configuration is also supported. The server runs over stdio; the project also supports Streamable HTTP and legacy SSE transports.
{"mcpServers":{"mikromcp":{"command":"npx","args":["-y","mikromcp"],"env":{"MIKROMCP_ROUTER_HOST":"192.168.88.1","MIKROMCP_ROUTER_USER":"mcp","MIKROMCP_ROUTER_PASS":"your-password"}}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"mikromcp": {
"command": "npx",
"args": [
"-y",
"mikromcp"
],
"env": {
"MIKROMCP_ROUTER_HOST": "192.168.88.1",
"MIKROMCP_ROUTER_USER": "mcp",
"MIKROMCP_ROUTER_PASS": "your-password"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.mikromcp] command = "npx" args = ["-y", "mikromcp"] [mcp_servers.mikromcp.env] MIKROMCP_ROUTER_HOST = "192.168.88.1" MIKROMCP_ROUTER_USER = "mcp" MIKROMCP_ROUTER_PASS = "your-password"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add mikromcp -e MIKROMCP_ROUTER_HOST=192.168.88.1 -e MIKROMCP_ROUTER_USER=mcp -e MIKROMCP_ROUTER_PASS=your-password -- npx -y mikromcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm MikroMCP tools appear in your MCP client's tool list. Ask for a router's system resources or interface status and check that the response contains device data.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
MikroMCP is an MCP server for MikroTik RouterOS routers and SwOS switches. It gives compatible AI clients tools to inspect, diagnose, and operate network devices. Features include typed tools, structured results, dry-run previews, RBAC, audit logs, snapshots, and rollback workflows. SwOS support is marked experimental.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 92629cf01e26 Data synced 2026-12-05 Read the FMRS scoring method Markdown