omada-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OMADA_SITE_ID | No | Site hex id or name; names are resolved to the hex id required by controller URLs. | first site |
| OMADA_BASE_URL | Yes | Omada controller base URL, e.g. https://host:8043. Required. Scheme-less values get https://...:8043; http:// defaults to port 8088. Must not embed credentials. | |
| OMADA_ENV_FILE | No | Explicit path to a dotenv file. A missing file is a hard error. Lets several hosts share one configuration file. | |
| OMADA_PASSWORD | Yes | Local controller account password. Required. Never printed or logged. | |
| OMADA_USERNAME | Yes | Local controller account username. Required. Viewer is sufficient for reads; use a dedicated Admin account for writes. | |
| OMADA_CA_BUNDLE | No | PEM bundle containing the controller's CA. | system store |
| OMADA_READ_ONLY | No | Default true fails closed and refuses every non-read-only tool before argument validation. Set false to enable allowlisted writes. | true |
| OMADA_SITE_NAME | No | Site display name, e.g. Home. | first site |
| OMADA_VERIFY_SSL | No | Set false to disable chain and hostname checks. Not for production. | true |
| OMADA_SCHEMA_MODE | No | tools/list schema detail: slim (default, smaller payload) or full. | slim |
| OMADA_STRICT_X509 | No | Set false to clear Python 3.13+ VERIFY_X509_STRICT while keeping chain and hostname checks; useful for self-signed certificate errors. | true |
| OMADA_WRITE_TOOLS | No | Comma-separated exact write tool names to enable. Wildcards and all are rejected. Both OMADA_READ_ONLY=false and this allowlist are required to expose or invoke write tools. | |
| OMADA_SNAPSHOT_DIR | No | Override directory for pre-write JSON snapshots and audit.jsonl. | platform state dir |
| OMADA_COMPACT_OUTPUT | No | Emit single-line compact JSON in tools/call content[0].text. Set false for 2-space indented JSON. | true |
| OMADA_TIMEOUT_SECONDS | No | Per-request timeout in seconds. | 30 |
| OMADA_TLS_SERVER_NAME | No | Optional TLS server_hostname override, e.g. Omada, when connecting by IP against the controller's built-in certificate. | |
| OMADA_TOOL_CATEGORIES | No | Optional comma-separated tool categories to expose in tools/list: core, diagnostics, switch, wifi, routing, security, rollback. | all |
| OMADA_MANAGEMENT_CIDRS | No | Comma-separated IPv4 hosts/CIDRs, in addition to the controller host IP, protected from lockouts during VLAN isolation, DHCP pool, or deny-ACL writes. | |
| OMADA_USE_SYSTEM_PROXY | No | System/registry proxies are ignored by default. Set true only when a proxy is genuinely required. | false |
| OMADA_MIN_INTERVAL_SECONDS | No | Minimum spacing between controller calls; raise to 0.8 on large sites. | 0.25 |
| OMADA_WRITE_INTERVAL_SECONDS | No | Minimum serialized spacing between write requests. Writes never auto-retry -1600. | 1.0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only access by default to a TP-Link Omada SDN controller through its Web API v2. 47 read-only tools are always available, including list_sites, get_site_info, get_config_snapshot, diff_config_snapshots, network_audit, get_switch_ports, get_ap_radios, get_wifi_radio_features, get_ap_ssid_overrides, get_mesh_status, get_wlan_optimization_status, list_switch_lags, get_switch_global_features, list_poe_schedules, get_wan_status, get_topology, diagnose_client, diagnose_wan, get_controller_status, list_blocked_clients, list_rate_limit_profiles, list_schedules, list_controller_users, list_devices / list_clients, get_device / get_client, and explain_error. Most tools accept an optional site name/ID. Optional write tools remain hidden and disabled unless both OMADA_READ_ONLY=false and OMADA_WRITE_TOOLS explicitly allowlist them. Timestamps are UTC ISO-8601. Error messages include the controller's numeric errorCode and a fix hint.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_devicesC | List all managed network devices (APs, switches, gateways) on the site with MAC, model, firmware, IP, uptime… |
| list_clientsB | List connected clients (WiFi and wired) with MAC, IP, SSID, AP, VLAN, traffic counters, session duration and… |
| list_wifi_clientsB | List only wireless clients, same fields as list_clients. |
| list_wired_clientsC | List only wired clients, same fields as list_clients. |
| get_deviceC | Get one device by MAC address or device name. |
| get_clientC | Get one client by MAC address, hostname or IP address. |
| list_wlansB | List configured WLANs/SSIDs with band, VLAN, security type and guest flag. |
| get_ssidC | Get non-secret configuration for one SSID… |
| get_site_infoB | Site summary: name, id, WAN/LAN/WLAN state, device and client counts, controller version. |
| list_sitesB | List sites visible to the authenticated Viewer or Admin account with site IDs, names, connectivity flags, and… |
| network_auditB | Bounded read-only health audit for WAN, devices, switch/AP telemetry, clients, and VLANs. |
| explain_errorC | Decode an Omada Web API errorCode (e.g. -1600, -33717, -33726, -1505, -1001, -30109, -41011, -44116) into its… |
| get_config_snapshotB | Capture selected configuration sections for local drift comparisons. |
| diff_config_snapshotsC | Compare two snapshots or a baseline against the live site (including UI edits on ssids/wirelessFeature). |
| search_clientsC | Search online and offline/historical clients by MAC, name, hostname, IP, SSID, or VLAN/network, with… |
| list_lan_networksC | List configured LAN/VLAN networks merging setting/lan/networks and /interface… |
| list_dhcp_reservationsB | List static DHCP reservations configured on the site (works for offline clients too). |
| list_aclsC | List gateway, switch, or EAP ACL rules (setting/firewall/acls?type=0|1|2) with policy, source/destination… |
| list_ip_groupsB | List profile groups (IP groups type=0, port groups type=1, MAC groups type=2) with entry counts and ACL… |
| list_port_forwardsB | List gateway NAT port forwarding and DMZ-mapped rules. |
| list_static_routesB | List configured gateway static routes (destinations, next hop, interface, metric). |
| get_network_servicesC | Summarize UPnP, DNS proxy, mDNS reflector rules and profiles, secret-redacted DDNS configuration, and… |
| list_logsB | Query controller site logs ('alerts', 'events', or 'audit') with time window, optional level filter, and row… |
| get_switch_portsC | Inspect switch port links, PoE, VLANs, counters, cable tests, LAGs, and uplinks. |
| get_ap_radiosC | Inspect an AP's 2.4G/5G/5G2/6G radios: channel, width, TX power, channel utilization, interference… |
| get_rf_scanC | Read per-band RF scan status, timestamps, channel occupancy/interference… |
| get_wan_statusB | Inspect gateway WAN link state, gateway/DNS/WAN IP, failover/load-balance mode, latency/packet loss health… |
| list_vpn_tunnelsB | List WireGuard, OpenVPN, IPsec, and SSL/L2TP VPN tunnel state and configured profiles… |
| get_topologyB | Build the site's Gateway -> Switch(port) -> AP/Switch uplink tree with device counts. |
| get_security_statusC | Summarize IPS/IDS enablement, recent threat events, attack defense limits, WIDS/WIPS, and rogue AP detections… |
| diagnose_clientC | Correlate live client and parent device telemetry with dated sessions and logs. |
| diagnose_wanB | Correlate WAN reachability evidence, latency, loss, speed tests, VPNs, and gateway logs. |
| list_port_profilesB | List switch port profiles (All, Disable, custom VLAN/PoE profiles). |
| list_wlan_groupsC | List configured WLAN groups and their SSIDs for assigning APs cleanly. |
| list_policy_routesB | List policy routing rules (gracefully reports unavailability if no gateway exists). |
| list_lan_dns_rulesB | List local LAN DNS records (gracefully warns on controller versions without LAN DNS). |
| list_blocked_clientsC | List clients currently blocked on the site… |
| list_rate_limit_profilesB | List configured client bandwidth rate-limit profiles (upload/download caps and defaults). |
| list_schedulesB | List reusable time-range / schedule profiles used by ACLs, PoE schedules, and WLAN schedules. |
| list_controller_usersB | List Omada controller user accounts and site/role privileges… |
| get_controller_statusB | Read controller runtime status, redacted global controller settings summary, and site NTP settings. |
| get_wifi_radio_featuresC | Read site-wide Wi-Fi roaming (802.11r/k, AI roaming), band steering, airtime fairness, mesh policy, beacon… |
| get_ap_ssid_overridesC | Read an AP's bound WLAN group and per-SSID overrides… |
| get_mesh_statusC | Read site mesh settings and per-AP wireless mesh role, wired/wireless uplink state, downlink children, and… |
| get_wlan_optimization_statusB | Read AI WLAN / RF optimization configuration, schedule, active scan status, and experience score history. |
| list_switch_lagsB | List configured LAG/LACP port-channel groups, member ports, and LAG hardware limits on a switch. |
| get_switch_global_featuresC | Read switch-level STP/RSTP/MSTP mode and timers, loopback detection, jumbo frame MTU, multicast… |
| list_poe_schedulesB | List PoE power schedules with resolved time-range schedule names and switch-port bindings. |
| get_wan_ip_detailsC | Read per-WAN IPv4 and IPv6 configuration, DNS resolvers, WAN port config, and redacted DDNS bindings… |
| get_ipv6_statusC | Summarize IPv6 configuration across WAN ports (SLAAC/DHCPv6/PPPoEv6/PD) and LAN/VLAN interfaces. |
| list_traffic_rulesC | Aggregate gateway and AP URL filtering rules, transmission bandwidth controls, session limits, and gateway… |
| list_qos_rulesB | Read gateway QoS BWC, class rules, VoIP QoS, WAN rate limits, and switch QoS queue profiles. |
| list_backupsB | Read controller auto-backup schedule, stored auto-backup files (Admin), and manual backup status without… |
| list_hotspot_vouchersA | Read hotspot voucher groups and individual voucher statuses without redeemable codes (category 'hotspot'). |
| audit_all_sitesA | Bounded fleet health rollup with per-site coverage and partial results. Requires OMADA_ALLOW_CROSS_SITE=true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 55 tools
Most tools target a distinct resource, but there is a dense cluster of overlapping Wi-Fi/RF read tools (get_ap_radios, get_rf_scan, get_wifi_radio_features, get_wlan_optimization_status, get_ap_ssid_overrides, get_mesh_status) whose boundaries are only partly clarified by descriptions. The client family (list_clients, list_wifi_clients, list_wired_clients, search_clients, diagnose_client) and audit pair (network_audit vs audit_all_sites) also require careful reading to pick correctly. Descriptions do a reasonable job of disambiguating, but misselection is still plausible in the diagnostics area.
Almost everything follows a clean snake_case verb_noun pattern (list_*, get_*, diagnose_*, explain_*, diff_*). Minor deviations exist: network_audit and audit_all_sites invert to noun_verb, and get_config_snapshot is singular while diff_config_snapshots is plural. These are small blemishes on an otherwise predictable scheme.
55 tools is far above a comfortable surface for an agent, and the domain breadth (network controller) does not fully excuse it: there is redundancy among client listing, RF/Wi-Fi status, and audit tools that could be consolidated or parameterized. The set is large enough that tool selection itself becomes a failure mode.
Read coverage is genuinely deep: sites, devices, clients, WLANs, switch ports, gateway/WAN, VPN, firewall/ACL, QoS, logs, backups, and diagnostics are all represented. The surface is intentionally read-only, so there are no create/update/delete or action tools (e.g. block a client, create a voucher, reboot a device), which is a notable but likely deliberate gap an agent cannot work around if mutations are needed.