Read and configure a Mikrotik router over the RouterOS v7 REST API

domain: mikrotik.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the www-ssl service (HTTPS; use www only if you're on RouterOS v7.9+ and understand it sends Basic Auth credentials effectively in the clear) and authenticate with HTTP Basic auth using the same username/password as Winbox/console login.
  2. Map any console menu path to a REST path by replacing spaces with slashes, e.g. /ip/address/print becomes GET https://<router>/rest/ip/address.
  3. Use HTTP verbs for CRUD: GET=print, PUT=add (create), PATCH=set (update one record via its .id), DELETE=remove; use POST with a command word in the path for arbitrary console commands not covered by the four verbs above.
  4. Fetch a record's opaque .id (e.g. "*1", hex-based, not sequential) from a GET list response before you can PATCH or DELETE that specific record.
  5. Filter with query-string params (e.g. ?network=10.0.0.0) and trim returned fields with .proplist=field1,field2; for potentially long-running commands like ping, pass bounding parameters (count, duration) since every REST call has a hard 60-second timeout.

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans