TP-Link Deco

v0.3.1
io.github.oscnord/deco-mcp Checked 17 hours ago Published 3 days ago

Manage a TP-Link Deco mesh over its local API: clients, Wi-Fi, port forwarding, HomeShield, logs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

deco_list_clients

Devices on the network with their live download/upload rate in kbit/s, busiest first. Use this to find what is using the bandwidth. Each result's `network` is main, guest, iot or mlo.

ParameterTypeDescription
include_offlinebooleanAlso list known devices that are not connected now

deco_list_blocked_clients

Devices blocked from the internet.

deco_list_reservations

Configured fixed IPs (DHCP reservations, MAC to IP) and how many more fit. For the addresses devices hold right now, use deco_list_dhcp_leases.

deco_list_dhcp_leases

Addresses handed out by DHCP right now (MAC to IP). Uses the app protocol.

deco_diagnose_path

From the machine running this server: packet loss and latency to the first two hops (usually the Deco, then the ISP router) and to 8.8.8.8 / 1.1.1.1, plus Apple's networkQuality speed test on macOS (~20 s). Needs no Deco login, so it works even when the router doesn't answer. Requires ping (and traceroute for the hops).

ParameterTypeDescription
speed_testboolean

deco_list_units

Every Deco unit in the mesh: name, model, role, IP, mesh/internet status, uplink signal level and firmware.

deco_list_port_forwards

Port forwarding rules: which external ports reach which device and port on the LAN. Uses the app protocol.

deco_get_network

Internet connection state, WAN and LAN addressing, IPv6, operating mode and the main Deco's CPU/memory load. Start here when the internet is down or slow, before looking at clients.

deco_get_security

HomeShield: which protections are on (malicious sites, infected devices, intrusion prevention, IoT protection) and recent security events. Uses the app protocol.

deco_get_parental_controls

Parental-control profiles (owners) with their devices, filters and time limits. Uses the app protocol.

deco_get_qos

QoS: prioritisation mode and the internet bandwidth limits it shares out (kbit/s). Uses the app protocol.

deco_get_setting

Read one of the Deco's app-only settings as the Deco reports it, with passwords, keys, usernames and PINs removed. Uses the app protocol. dhcp is the address pool, access_control the block/allow-list mode, wifi_schedule and eco_mode the scheduled Wi-Fi/power saving, auto_update the firmware auto-update window.

ParameterTypeDescription
setting *string

deco_get_system_log

Most recent system log lines at or above `level`, newest last, optionally filtered by a case-insensitive `search`. The Deco's internal mesh-authentication chatter (which carries session tokens) is left out.

ParameterTypeDescription
levelstring
linesinteger
search

deco_check_firmware

Installed firmware per Deco unit, whether an update is available, and the state of any running download/upgrade.

deco_get_speedtest

Result of the Deco's own internet speed test (run between the router and the internet, so Wi-Fi doesn't affect it).

deco_get_time_settings

The Deco's clock, time zone and daylight-saving state. Wrong time breaks schedules and parental controls.

deco_get_wifi

Wi-Fi networks (main, guest, IoT, MLO) per band: SSID, on/off, hidden, channel and width. Passwords are never returned. To switch the guest, IoT or MLO network on or off, use deco_set_wifi_network.