ZeroStack RF Diagnostics MCP
OfficialYou can use this server to diagnose Zigbee/Thread RF issues, decode silicon registers, plan coordinator capacity, and query ZeroStack hardware benchmarks—all deterministically offline and read-only.
Analyze pasted Zigbee2MQTT, Home Assistant ZHA, or OpenThread logs for fault signatures, severity/root causes, workarounds, and ZeroStack fixes.
Decode TI SimpleLink F2, Silicon Labs EFR32, and ARM Cortex-M register/status hex values into bitfields, health status, and diagnoses.
Evaluate coordinator capacity from device/sleepy-ZED counts and chip family, including SrcMatch slot use, pendAll behavior, and SRAM headroom.
Retrieve hardware-verified DWT->CYCCNT latency and adversarial-resilience benchmarks by SMLIGHT SKU or across all platforms.
Access supporting resources/prompts for benchmark summaries, supported models, diagnostics catalog, and structured log troubleshooting.
Analyzes Home Assistant ZHA (zigpy-znp/bellows) logs and supports troubleshooting of home-automation and Zigbee mesh issues.
Provides Zigbee 3.0/R23 coordinator diagnostics, SRCMATCH hardware capacity checks, and Zigbee/Thread mesh coordinator capacity evaluation.
Analyzes Zigbee2MQTT/Z2M logs for MAC/APS/NWK error codes, SRSP timeouts, and ZCL/MQTT telemetry floods to diagnose Zigbee network problems.
ZeroStack RF Diagnostics & Benchmark MCP Server (zerostack-mcp)
Official ZeroStack Overview & Downloads: https://smlight.tech/software/zerostack Interactive Web Log Analyzer: https://smlight-tech.github.io/zerostack/ Engineering Whitepaper & Benchmarks:
WHITEPAPER.md(Part 1 PDF) Target Firmware: ZeroStack Release Zero
zerostack-mcp is an open-source Model Context Protocol (MCP) server that gives AI coding assistants and home-automation troubleshooting agents (Claude Desktop, Cursor, Windsurf, Cline, OpenAI Agents, Home Assistant AI agents) deterministic tools to:
Diagnose Zigbee2MQTT (
z2m), Home Assistant ZHA (zigpy-znp,bellows), and OpenThread RCP logs (analyze_zigbee_thread_log), including Trust CenterZ3_TCLK_EXCHANGE_TIMEOUT_LEAVE(BDB_TC_LINK_KEY_EXCHANGE/APS_UpdateDevice/TransportKey) loops, Many-to-One Concentrator routing, and idempotent cold-boot NVRAM backup & restore health.Decode hardware radio/UART status registers (
decode_silicon_register) for TI SimpleLink F2 (CC2652P,CC2652P7,CC1352P7,CC2674P10) and Silicon Labs EFR32 (EFR32MG21,EFR32MG24).Evaluate Zigbee/Thread mesh coordinator capacity and hardware table limits (
check_coordinator_capacity).Query verified hardware validation benchmarks (
DWT->CYCCNT@48.0 MHz) (get_zerostack_benchmarks) comparing ZeroStack Release Zero against legacy TI Z-Stack (ZNP 3.x) across SMLIGHT TI SimpleLink F2 coordinators.
Quick Start
Run with uvx (No Installation Required)
{
"mcpServers": {
"zerostack-rf": {
"command": "uvx",
"args": ["zerostack-mcp"]
}
}
}Local Development Installation
git clone https://github.com/zerostack-rf/zerostack-mcp.git
cd zerostack-rf-mcp
uv sync
uv run pytest
uv run zerostack-mcpRelated MCP server: Home Assistant MCP Server
Supported Hardware — Release Zero
ZeroStack Release Zero supports the TI SimpleLink F2 family across SMLIGHT coordinators (Zigbee 3.0 / PRO R23 Coordinator & Router firmware with DMA-driven UART transport, incl. U variants):
Radio SoC | CPU Core | Flash / SRAM | Supported SMLIGHT Models ( | Capacity & Scaling |
TI CC2652P | ARM Cortex-M4F @ 48 MHz + Cortex-M0 CPE |
|
| 200-node table capacity, high-density source routes, indirect queue quota isolation |
TI CC2652P7 ( | ARM Cortex-M4F @ 48 MHz + Cortex-M0 CPE |
|
| 300-node table & TCLK capacity, high-density source routes, indirect queue isolation |
TI CC2674P10 | ARM Cortex-M33 @ 48 MHz + Cortex-M0 CPE |
|
| Max-scale node & TCLK capacity, expanded concentrator source routing & indirect buffer pools |
Note on Silicon Labs EFR32 (
EFR32MG21/EFR32MG24):zerostack-mcpincludes diagnostic rules (0x72,0xa1,ASH_NCP_FATAL_ERROR) andEUSART0_IFregister decoding for Silicon Labs EmberZNet / EZSP coordinators (SLZB-06M,SLZB-06Mg24, SkyConnect/ZBT-1). ZeroStack Release Zero ships on SMLIGHT TI SimpleLink F2 coordinators; Silicon Labs EFR32 support is in active development.
Verified Hardware Validation Benchmarks (TI CC1352P7 @ 48.0 MHz, DWT->CYCCNT)
Part 1: Deterministic Execution Latency (1 µs = 48 cycles)
Subsystem / Operation | Legacy TI Z-Stack ( | ZeroStack | Measured Improvement |
TCLK Lookup (300-entry table, miss / first contact) |
|
| 4,559× faster ( |
TCLK Lookup (300-entry table, oldest-record hit, age 383) |
|
| 1,915× faster ( |
Per-Frame NWK Encrypt ( |
|
| 134.4× faster (O(1), |
Per-Frame NWK Decrypt ( |
|
| 139.2× faster (O(1), |
Routed Hop Security Ceiling ( |
|
| 135× higher ceiling |
Per-Frame APS TX Security (300-peer table, |
|
| Up to 75.5× faster |
Device Authentication Check ( |
|
| 236× faster |
NVM Stack Key Read ( |
|
| 213.9× faster |
Idempotent NVM State Write (Unchanged |
|
| 26.7× faster + 0% flash wear |
NVM Compaction Frequency | Write #69 | Write #1,013 | 14.7× lower compaction frequency |
Dynamic Memory Allocation ( |
|
| 11.7× faster |
Timer Start Latency ( |
|
| 6.9× faster |
Inter-Task Event Enqueue ( |
|
| 2.9× faster |
Host Serial Round-Trip ( | Legacy baseline | 53% fewer total cycles | 53% fewer total / 83% fewer reply |
Part 2: Adversarial Resilience & Fault Recovery
Stress Vector | Legacy TI Z-Stack ( | ZeroStack | Measured Improvement |
Malformed Secured OTA Frames (12 NWK/APS classes + 3,255 MAC vectors) | Uncaught frame processing exception |
| Zero remote crash + 9.8×–402× lower CPU |
1,000-Frame Cryptographic Replay Flood ( |
|
| 92.8× faster ( |
NOR Flash Brownout Fuzzing ( |
|
| 749× lower post-brownout flash write volume |
Hostile UART Framing Abuse (6 scenarios) |
|
| Zero blackout ( |
50-Device Unauthenticated Join / TCLK Miss Flood ( |
|
| 7.7× faster end-to-end |
1,000-Frame 50-Router Echo Amplification Storm ( |
|
| 19.9× lower total CPU (20.3× faster/echo) |
64-Frame Post-Outage Unique Broadcast Flood ( |
| Expanded broadcast table, | 10.6× lower CPU time (17.3× faster shed) |
MCP Tools, Resources & Prompts
Tools
All tools include read-only, idempotent ToolAnnotations (readOnlyHint=True, idempotentHint=True, destructiveHint=False, openWorldHint=False):
analyze_zigbee_thread_log(log_text): Matches raw Z2M/ZHA/OpenThread logs against 16+ error signatures (including decimal Z2M MAC codes225/233/240/241,0x10,0x11,0xC7,0xCD,0xA7/0xAD,6000msSRSP, and multi-line ZCL MQTT delta-zero telemetry floods).decode_silicon_register(chip, register_or_addr, hex_value): Decodes TI SimpleLink F2 (CMD_IEEE_RX,CMD_IEEE_CSMA,RFC_DBELL,VIMS,PRCM) and Silicon Labs EFR32 (EUSART0_IF).check_coordinator_capacity(device_count, sleepy_zed_count, chip_family): Evaluates TI SimpleLink F2 sleepy child capacity, indirect queue isolation, zero flash-read stalls during sleepy poll windows, and SRAM heap headroom.get_zerostack_benchmarks(platform): Returns Part 1 and Part 2 hardware validation benchmarks forSLZB-06,SLZB-MR2,SLZB-06P7,SLZB-07P7,SLZB-MR1,SLZB-06P10,SLZB-07P10,SLZB-MR3,SLZB-MR4,SLZB-MRW10,SLZB-Ultima(incl.Uvariants), or"all".
Resources & Prompts
zerostack://benchmarks/summary— Complete Part 1 & Part 2DWT->CYCCNTbenchmark dataset.zerostack://hardware/supported-models— Supported TI SimpleLink F2 hardware matrix for Release Zero.zerostack://diagnostics/catalog— Full machine-readable ZeroStack diagnostics catalog.Prompt
diagnose_zigbee_log(log_text)— Structured troubleshooting workflow for Zigbee2MQTT / ZHA logs.
License
Apache License 2.0 (Apache-2.0) — Copyright (c) 2026 SMLIGHT / ZeroStack RF Engineering.
Learn more at https://smlight.tech/software/zerostack.
Available Tools
4 toolsanalyze_zigbee_thread_logARead-onlyIdempotent
Analyze pasted Zigbee2MQTT, Home Assistant ZHA, or OpenThread logs for fault signatures.
When to use:
Use this tool when diagnosing runtime error logs, adapter timeouts (
SRSP ... after 6000ms), MAC/NWK/APS status codes (0x10,0x11,0xc7,0xcd,0xe1/225,0xe9/233,0xf0/240,0xf1/241), post-join TCLK exchange timeout leaves (Z3_TCLK_EXCHANGE_TIMEOUT_LEAVE), interview failures (0xa7), Many-to-One Concentrator / source-routing issues, or ZCL telemetry/genTimefloods.Do NOT use for decoding raw hexadecimal MCU register words (
decode_silicon_register), sizing network capacity (check_coordinator_capacity), or querying hardware benchmark tables (get_zerostack_benchmarks).
Behavior:
Executes deterministically offline with zero network or serial I/O.
Ranks detected faults by severity and root-cause priority (
ZNP_SYS_RESET_IND> lockstep timeouts & TCLK leave loops > memory/buffer exhaustion > RF delivery symptoms) and returns stock SDK root causes, immediate workarounds, and SMLIGHT ZeroStack (Release Zero) fixes (including Beta 2 / Beta 3 TCLK, concentrator routing, and idempotent cold-boot NVRAM backup & restore improvements).When drafting a GitHub bug report for
smlight-tech/zerostack, ensure the log includes coordinator startup or >= 500 lines of debug frames prior to the first error and scrub it with.github/scripts/z2m-log-analyzer.mjs --bug-report --require-context.
Inputs: log_text (required). Returns: status, matches, release, summary, +10 more
check_coordinator_capacityARead-onlyIdempotent
Calculate hardware source-matching slot utilization, pendAll threshold, and SRAM headroom.
When to use:
Use this tool for capacity planning and topology sizing given
(device_count, sleepy_zed_count, chip_family)to evaluate direct sleepy child slot utilization,pendAll(FP=1) promotion whensleepy_zed_count > 32, bounded indirect frame queuing, and SRAM headroom (88 KB/144 KB/256 KB).Do NOT use for parsing runtime logs (
analyze_zigbee_thread_log), decoding register hex values (decode_silicon_register), or fetchingDWT->CYCCNTlatency benchmarks (get_zerostack_benchmarks).
Behavior:
Executes deterministically offline; derives
router_count = device_count - sleepy_zed_count.Raises
ValueErrorifdevice_count < 0,sleepy_zed_count < 0,sleepy_zed_count > device_count, orchip_familyis unrecognized.
Inputs: chip_family (required), device_count (required), sleepy_zed_count (required). Returns: release, chip_family, device_count, router_count, +11 more
decode_silicon_registerARead-onlyIdempotent
Decode a hexadecimal MCU register or radio-core command status word into bitfields.
When to use:
Use this tool when inspecting a TI SimpleLink F2 (
CMD_IEEE_RX,CMD_IEEE_CSMA,RFC_DBELL,SRCMATCH,VIMS,PRCM,UART0_FR,UART0_RSR,UART0_CTL,IOCFG0..31,AON_PMCTL_RESETCTL), Silicon Labs EFR32 (EUSART0_IF,USART0_IF,USART0_STATUS,EMU_RSTCAUSE), or ARM Cortex-M4/M33 (SCB_CFSR0xE000ED28,SCB_HFSR0xE000ED2C) hex register/status value captured from SWD/JTAG, a crash dump, or telemetry.Do NOT use for parsing multi-line host application logs (
analyze_zigbee_thread_log) or evaluating mesh node counts (check_coordinator_capacity).
Behavior:
Executes deterministically offline with zero hardware or network I/O.
Returns decoded bitfield flags, boolean
healthystatus, root-cause diagnosis, and links to silicon errata notes; raisesValueErroron unsupportedchiporregister_or_addridentifiers or unparseablehex_valuestrings.
Inputs: chip (required), hex_value (required), register_or_addr (required). Returns: chip, address, healthy, raw_hex, +10 more
get_zerostack_benchmarksARead-onlyIdempotent
Retrieve hardware-verified DWT->CYCCNT latency and fault-injection benchmarks by SKU.
When to use:
Use this tool to query hardware specifications (CPU, Flash/SRAM, table & TCLK capacity, DMA-driven UART transport) and cycle-accurate Part 1 execution latencies (
TCLKlookup,NWKencrypt/decrypt, routed hop ceiling,O(1)allocator) plus Part 2 adversarial resilience metrics (3,255 MAC vectors, 22,959 brownout cut points, UART framing abuse, 50-router broadcast storms) for an SMLIGHT coordinator model or'all'.Do NOT use for sizing a user's specific mesh node count (
check_coordinator_capacity) or diagnosing pasted log text (analyze_zigbee_thread_log).
Behavior:
Executes deterministically offline with zero network or hardware I/O.
Raises
ValueErrorifplatformdoes not match a supported SMLIGHT SKU or'all'.
Inputs: platform (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each of the four tools targets a clearly separate input class: pasted text logs, numeric capacity parameters, hex register words, and SKU benchmark lookups. Descriptions go further and explicitly cross-reference the other tools with 'Do NOT use for' clauses, eliminating misselection risk.
All four names follow a consistent snake_case verb_noun pattern (analyze_..., check_..., decode_..., get_...). The verbs differ appropriately by action type but the structural convention is uniform and predictable.
Four tools map one-to-one onto four distinct diagnostic tasks, so nothing feels redundant or bloated. However, the surface sits at the low end; a large domain like RF diagnostics could plausibly justify a couple more entry points (e.g. fault-code lookup) without overlap.
The core offline diagnostic workflow is covered end-to-end: interpret logs, decode raw registers, size the network, and pull hardware benchmarks. Minor gaps remain around things like a standalone symptom-to-root-cause lookup or remediation/firmware-version advisor, but an agent can work around these via the existing tools.
Maintenance
Related MCP Connectors
DNS, email auth, TLS, BGP/RPKI, WHOIS and subnet tools with plain-English fixes, plus webhook URLs.
CPU telemetry & benchmarking, SHA-256 hashing, AES-256-GCM storage, AI video/image via Nova.
x402 LLM proxy + data-enriched analysis (17 sources) + TimesFM predictive IoT intelligence.
Public DNS, mail, TLS, and web diagnostics plus Looking Glass probes via remote MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover, monitor, and control ZigBee smart home devices through ZigBee2MQTT. Provides intelligent device discovery, state monitoring, and automation integration with support for remote deployment.12MIT
- AlicenseAqualityAmaintenanceA comprehensive MCP server that enables AI assistants to interact with Home Assistant, control smart home devices, query states, execute services, and manage automations via natural language.7798,673 PyPI8,087MIT
- AlicenseAqualityBmaintenanceAgentic Hardware-in-the-Loop (Agentic HIL) lets coding agents develop firmware on real embedded boards: flash, reset, read UART and exchange CAN traffic, diagnose and fix. Local, policy-gated MCP tools support OpenOCD, pyOCD and STM32CubeProgrammer, with pytest for CI.441,996 PyPI33Apache 2.0
- AlicenseAqualityCmaintenanceMCP server for administering a Zigbee2MQTT estate, enabling mesh health monitoring, device management, firmware updates, pairing, binding, and reporting via natural language.17117 npm38MIT