Skip to main content
Glama
nbrain-industrial-ot-zkteco-modbus

nbrain-industrial-ot-zkteco-modbus

nbrain-industrial-ot-zkteco-modbus — Industrial OT Modbus RTU/TCP, IEC 62443-3-3 AI Agent Safety Firewall & ZKTeco Biometric Attendance Protocol + MCP Server

License: MIT Python 3.10+ MCP Registry

Engineered by Eng. Nadeem Mohamed Badr El-Din at NBrain (منظومة إن برين — nbra.in) from production factory ERP, water-treatment telemetry, and Odoo 19 ZKTeco biometric integrations.

Capabilities

  1. Modbus RTU (CRC-16/MODBUS 0xA001 LSB-first) & Modbus TCP (MBAP 7-byte header): Deterministic binary framing, hex/byte decoding, and CRC-16 corruption detection.

  2. IEC 62443-3-3 AI Agent Read-Only Firewall: Prevents autonomous AI agents from issuing destructive coil/register writes (FC05, FC06, FC0F, FC10, FC16, FC17) to PLCs unless an HMAC-SHA256 dual-control authorization token is verified.

  3. ZKTeco Biometric Protocol (ZK Packed 32-Bit Epoch & ADMS / iClock ATTLOG): Exact conversion of ZKTeco's non-Unix 31-day-month packed 32-bit integer timestamps + ATTLOG shift overtime (1.5x Decimal) payroll bridge.

Related MCP server: AetherEdge

Quick Verification

PYTHONPATH=src python -m unittest discover -s tests -v

Available Tools

4 tools
audit_iec62443_agent_modbus_commandCInspect

Enforce IEC 62443-3-3 autonomous AI agent read-only safety firewall on Modbus PLC commands.

Inputs: slave_id (required), payload_hex (required), function_code (required), supervisor_secret, +1 more.

decode_or_encode_zkteco_epochCInspect

Convert between ZKTeco 32-bit packed biometric timestamps and ISO-8601 datetimes.

Inputs: zk_time, iso_datetime.

frame_and_verify_modbus_pduCInspect

Encode or decode Modbus RTU (CRC-16 0xA001) and Modbus TCP (MBAP) binary frames.

Inputs: mode (required), slave_id, frame_hex, payload_hex, +2 more.

reconcile_zkteco_adms_attlogBInspect

Deduplicate ZKTeco ADMS /iclock/cdata ATTLOG biometric punch records and compute exact-Decimal overtime pay.

Inputs: attlog_lines (required), hourly_wage, overtime_multiplier, scheduled_hours_per_day.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: Modbus frame encoding/decoding, IEC 62443 command safety auditing, ZKTeco timestamp conversion, and ZKTeco ATTLOG reconciliation. The two Modbus tools are separated by codec vs. safety enforcement, and the two ZKTeco tools by timestamp conversion vs. log processing.

    Naming Consistency4/5

    All names use snake_case and begin with an action verb, making the set readable and predictable. The compound verbs such as frame_and_verify and decode_or_encode are semantically justified but slightly reduce strict verb_noun uniformity.

    Tool Count5/5

    Four tools is well within the expected range for a specialized industrial OT integration toolkit. Each tool covers a distinct, non-trivial operation and none appears redundant.

    Completeness3/5

    The tools cover the advertised narrow utilities: Modbus frame codec, IEC 62443 command audit, ZKTeco epoch conversion, and ATTLOG reconciliation. However, there is no direct Modbus transaction/read-write tool or broader ZKTeco ADMS/device management surface, leaving notable operational gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to sign decisions with post-quantum cryptographic proofs and maintain secure audit trails for compliance. It provides tools for stamping events, verifying chain integrity, and exporting audit data across industries like finance and healthcare.
      4
      65 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Exposes a deterministic IoT edge runtime — Modbus/CAN/J1939 acquisition, local rules, alarms, and history — to AI assistants as typed, governed MCP tools. Reads are safe by default; device control stays deny-by-default, explicitly confirmed, and audited.
      23
      3
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to generate and statically verify IEC 61131-3 Structured Text logic, mutate .csp/.cpj OLE2 project containers, trigger in-GUI Error Check compilation, manage HMI screens, and run deterministic OCS scan-cycle simulations and Modbus telemetry scaling against Cscape 10.2. All physical hardware and firmware-download paths are intercepted fail-closed, so commissioning must be performed manually by authorized field personnel.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM agents to inspect multi-modal IoT telemetry and query safety policies, then dispatch actuator commands through typed MCP tools that enforce deterministic safety interlocks and record a tamper-evident SHA-256 chained audit trail. This lets automated agents control building hardware without violating safety invariants, while rejecting cross-sensor false alarms and cutting redundant telemetry and token usage.
      MIT