mikromcp
Skill115 starsChanged 57 days agoMITView on GitHub
Use when managing, configuring, or troubleshooting MikroTik RouterOS devices through the MikroMCP server — picking the right tool, running safe (dry-run, confirmed, rollback-able) changes, fleet operations, and diagnosing network issues.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Dry-run first: Call a write tool with dryRun: true, show the diff, then apply for real.
- Very specific: line 42
Rollback exists: Write tools snapshot+journal first, and a write that can be undone returns its journalId (dry runs don't).
- Very specific: line 50
Prefer dedicated tools over
run_command: Use run_command only when no dedicated tool covers the need. - Very specific: line 78
Call the manage_* tool with dryRun: true.
- Very specific: line 79
If a confirmation token is required, re-issue with confirmationToken.
- Very specific: line 94
Check list_routes, list_firewall_rules, list_dns_entries as the symptom suggests.
- Very specific: line 109
Read the release notes from MikroTik's upgrade server (references/routeros-docs.md): the newest release on the router's channel, and the …
- Very specific: line 115
Read the error code/category and suggestedAction.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Driving MikroMCP
MikroMCP exposes MikroTik RouterOS management as MCP tools (over stdio or HTTP).
This skill is about operating those tools well and safely. It does not reproduce
RouterOS documentation — when you need to know what a RouterOS field means, see
references/routeros-docs.md and fetch the linked official page.
When to use
- Configuring, inspecting, or troubleshooting a MikroTik router via MikroMCP tools.
- Rolling a change across many routers.
When not to use
- Devices that are not MikroTik/RouterOS.
- Tasks with no MikroMCP server connected.
First moves
- Establish the target router. Tools take an optional
routerId. If omitted, MikroMCP usesMIKROMCP_DEFAULT_ROUTER, or the sole configured router. If several routers exist and none is defaulted, ask which one. - Orient before changing anything:
get_system_status, thenlist_interfaces(and the relevantlist_*for the area you're touching).
Golden rules (the safety spine)
- Reads are safe; treat every write as consequential.
- Dry-run first. Call a write tool with
dryRun: true, show the diff, then apply for real. Never skip this for a non-trivial change. - Confirmation tokens. Destructive tools may require a two-step confirm: the
first call returns an approval requirement + token; repeat the call with
confirmationToken. This is a guardrail — explain it, don't try to bypass it. - Writes are idempotent.
already_existsandno_changeare SUCCESS, not errors. ACONFLICTmeans the resource exists with different config — resolve it deliberately (seereferences/safety-and-recovery.md). - Rollback exists. Write tools snapshot+journal first, and a write that can
be undone returns its
journalId(dry runs don't). To undo, userollback_changewith it;list_journalrecovers a lost ID (pick an entry withrollbackable: true). Know this before bulk changes. Rollback needs a router you can still reach, somanage_firewall_rulealso arms a scheduler job that undoes the change by itself (autoRevertSeconds, default 60) unless the router still answers afterwards. Leave it on. OnAUTO_REVERT_PENDING, wait for the router to revert and do not retry the same rule. - Prefer dedicated tools over
run_command. Userun_commandonly when no dedicated tool covers the need. Its writes journal but never snapshot, so they cannot be rolled back — record the manual undo yourself.
Intent → tool quick index
| I want to… | Tool |
| See device health/uptime/version | get_system_status |
| List interfaces | list_interfaces |
| Add/serve an IP on an interface | manage_ip_address |
| Block/allow traffic | manage_firewall_rule |
| Port-forward / NAT | manage_firewall_rule (table nat) |
| Add a static route | manage_route |
| Add a DNS record | manage_dns_entry |
| See/assign DHCP leases | list_dhcp_leases, manage_dhcp_lease |
| See who's connected (WiFi) | list_wifi_clients |
| Test connectivity | ping, traceroute |
| Read the same data across many routers | bulk_read |
| Run a change across many routers | bulk_execute |
| Undo a change | rollback_change |
Full enumeration of every tool by family: references/tool-map.md.
Core workflows
Make a safe config change
list_*the area to capture current state.- Call the
manage_*tool withdryRun: true; read the returned diff. - If a confirmation token is required, re-issue with
confirmationToken. - Apply for real; confirm the
actionin the result (created/updated). - Note the journal ID in case you need
rollback_change. - Re-read with the same
list_*and compare with the intent — RouterOS has no commit step, so this is the only check that the change landed as meant.
Several dependent writes (a routing table, then a route in it, then a rule that
uses it): plan_changes (up to 10 steps, all dry-run) → review → apply_plan
with the planFingerprint plan_changes returned, so the plan is refused if the router
changed after the review.
It stops at the first failed step and journals each step separately.
Diagnose connectivity
get_system_statusandlist_interfacesto confirm links are up.pingthe target from the router;tracerouteif it fails partway.- Check
list_routes,list_firewall_rules,list_dns_entriesas the symptom suggests. Cross-check field meanings viareferences/routeros-docs.md.
Fleet rollout
- Capture current state across the fleet with
bulk_read(read-only tools only; it refuses writes andping/traceroute/torch/bandwidth_test). - Validate the change on ONE router first (dry-run → apply).
bulk_executewith the tool + params, targeting routerIds or a tag.- For any write tool, complete the fleet confirmation-token step: tell the user which routers and what change the token covers, and re-submit only after they agree.
- Review per-router succeeded/failed counts;
rollback_changeper-router if needed.
Advise on an upgrade or version-specific behaviour
- Take the exact version from
get_system_status, notrosVersionfromlist_routersand not the router's own update check — both can lag. - Read the release notes from MikroTik's upgrade server
(
references/routeros-docs.md): the newest release on the router's channel, and the notes of every release after the installed one. Do this before recommending anything, and say what they contain.
Recover from an error
- Read the error
code/categoryandsuggestedAction. - Map it to a next step via the error→action table in
references/safety-and-recovery.md.
Router permissions by transport
run_command,export_configandpinglog in over SSH: the router user's group needs thesshpolicy, and a key in/user ssh-keysturns off password login for that user (/ip ssh password-authentication).traceroute,torchand every other tool run over REST: nosshneeded, buttracerouteandtorchneedtest, andtorchalsosniff.
Pointers
- Need a tool not in the quick index →
references/tool-map.md. - Need RouterOS field meaning, defaults, or version differences →
references/routeros-docs.md(fetch the linked page; don't guess). - Hit an error, a CONFLICT, or a destructive/confirmation flow →
references/safety-and-recovery.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

