A bit outside the scope for this site perhaps, but I’ll try:
Goal is to have a Tread/Matter dongle in a Raspberry Pi that is able to communicate with Matter devices. SLZB-MR3 or ZBT-2 dongle. Anybody tried to do it? Flash the dongle with correct firmware. Setting up a Thread network so that a Python/java/Rust program is able to get some data from the network. Tried AI, but AI bail out after a while.
Data sent by Matter devices is encrypted for each Matter fabric so you just can’t retrieve data from the network and analyze it.
You’ll have to add the devices to your own Matter fabric, for instance by installing the Matter server Home Assistant uses that has a websocket API but doesn’t require Home Assistant at all. Or chip-tool or any other SDK.
A dongle doesn’t communicate with Matter devices, a Fabric does. The dongle only provides a radio co-processor for a Thread Border Router, which is not even specific to Matter, it can carry any IP traffic. So setup your border router (or just buy one) and any IP software should be able to use it to communicate with Thread devices. If you’re trying to “scrape” Matter-protocol specific data, then as noted you’ll need to implement some kind of Fabric controller for devices to join, otherwise everything is protected. If you want a command-line fabric to collect data outside of HA, checkout the CHIP tool.