MQTT Explorer is what you want - it's open source, runs locally, no SaaS nonsense. Clean GUI, lets you subscribe to topics, publish messages, see the whole topic tree. Perfect for dev/testing between Home Assistant and Arduino. If you want CLI instead, mosquitto_pub/mosquitto_sub from the Mosquitto package work great too - you can run your own broker on basically anything including a Pi.