if you are little familiar of the python, I have created MQTT client for same purpose to troubleshoot my localhost broker. https://github.com/harshaldosh/MQTT-Streamlit-Client/tree/main.