routeros-mndp

routeros-mndp is a skill for Claude Code, Codex from tikoci/routeros-skills. It costs 88 tokens per session (3,578 once invoked), scanned A, original, MIT.

A guide to MNDP, the MikroTik Neighbor Discovery Protocol that RouterOS uses to find devices on the same local network, including the interface behind WinBox's Neighbors view.

In plain words
What is it for?
Use it to implement or debug MikroTik device discovery, parse MNDP packets, or work with RouterOS /ip/neighbor results.
Why use it?
It helps explain how MikroTik devices announce themselves and why a router may be missing from a neighbor list. It also provides the details needed to read or create these UDP discovery messages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to implement or debug MikroTik device discovery, parse MNDP packets, or work with RouterOS /ip/neighbor results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tikoci/routeros-skills/routeros-mndp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tikoci/routeros-skills --skill routeros-mndp
Clone the repo
git clone --depth 1 https://github.com/tikoci/routeros-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for routeros-mndp

README.md
[![agentmods](https://agentmods.dev/badge/skills/tikoci/routeros-skills/routeros-mndp/github.svg)](https://agentmods.dev/skills/tikoci/routeros-skills/routeros-mndp)
Your own site
<a href="https://agentmods.dev/skills/tikoci/routeros-skills/routeros-mndp"><img src="https://agentmods.dev/badge/skills/tikoci/routeros-skills/routeros-mndp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for routeros-mndp

Your own site · 80×15
<a href="https://agentmods.dev/skills/tikoci/routeros-skills/routeros-mndp"><img src="https://agentmods.dev/badge/skills/tikoci/routeros-skills/routeros-mndp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.03578
Opus 5 $0.00044 $0.01789
Sonnet 5 $0.00018 $0.00716
Haiku 4.5 $0.00009 $0.00358

Measured 12d ago against content hash ad868fa58e17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

routeros-mndp scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -u admin: http://<router-ip>/rest/ip/neighbor
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

routeros-mndp/SKILL.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MNDP — MikroTik Neighbor Discovery Protocol

MNDP is the UDP broadcast/multicast protocol that RouterOS uses for automatic device discovery on the local network. It is the same protocol WinBox uses to find routers. Every RouterOS device participates by default.

Why This Matters for Agents

  • /ip/neighbor on RouterOS is the CLI/REST surface for MNDP results
  • WinBox's "Neighbors" tab is an MNDP listener
  • Any agent implementing device discovery for MikroTik equipment needs MNDP
  • The protocol is simple enough to implement from scratch — no library needed

Protocol Basics

Property Value
Transport UDP
Port 5678
IPv4 Broadcast to 255.255.255.255:5678
IPv6 Multicast to ff02::1 (all-nodes link-local)
Direction Bidirectional — same port for send and receive
Authentication None — read-only discovery, no credentials
Scope Layer 2 broadcast domain (does not cross routers)

How Discovery Works

  1. Listener sends a refresh packet — a small UDP datagram to 255.255.255.255:5678 (MAC-Telnet sends a minimal 4-byte zeroed header; a 9-byte form also works — see below)
  2. All RouterOS devices on the LAN reply — each sends a TLV-encoded announcement with identity, version, board, MAC, IP, uptime, etc.
  3. Replies arrive asynchronously — devices respond within milliseconds to seconds depending on network conditions
  4. RouterOS devices also announce periodically (~60s cycle) without being prompted — passive listening works but is slow to populate

Refresh Packet (Discovery Request)

A short packet that triggers immediate replies from all RouterOS devices on the broadcast domain. The minimal form is just a zeroed 4-byte header — this is exactly what MAC-Telnet sends (unsigned int message = 0;):

Offset  Length  Value       Field
0       1       0x00        header byte 0 (version per MAC-Telnet; "unknown" per Wireshark)
1       1       0x00        header byte 1 (ttl per MAC-Telnet)
2       2       0x0000      seqno / checksum

Read the full file on GitHub · 299 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 299 lines · 88 tokens per session scan A ad868fa58e17

Subscribe to this mod's changes

routeros-mndp is a skill published in the GitHub repository tikoci/routeros-skills (59 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 3,578 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.