A FastAPI application that wraps MikroTik RouterOS REST API, stitching together data from wireless registrations, DHCP leases, and ARP tables into clean, queryable endpoints. Built to make CAPsMAN tuning easier and to feed device data into Home Assistant.
What it does
- Queries connected WiFi devices across all CAPsMAN-managed access points
- Enriches raw RouterOS data by cross-referencing DHCP and ARP tables for hostnames and IPs
- Normalizes RouterOS field names into proper conventions
- Filtering by name, MAC, or interface, with pagination
- Exposes an MCP server over SSE, so AI assistants can query your network directly
Stack
FastAPI, Pydantic v2, Docker (multi-stage, non-root), bearer token auth with HMAC comparison, managed with uv.