MQTT Explorer
MQTT Explorer is a graphical MQTT client for desktop and browser. It allows you to monitor, analyze, and debug MQTT messages.
Installation
Add the following template to your docker-compose.yml and then run ei23 dc.
Mosquitto Required
MQTT Explorer requires an MQTT broker. By default, Mosquitto is installed with the ei23 script.
Template
mqtt-explorer:
image: sapk/mqtt-explorer
container_name: mqtt-explorer
restart: unless-stopped
ports:
- "4004:4004"
First Start
- After startup, you can access MQTT Explorer at
http://[IP]:4004 - Click on + to create a new connection
- Enter the IP address of your MQTT broker (e.g.,
mosquittoor192.168.1.x) - Default port:
1883
Configure Connection
| Field | Value |
|---|---|
| Host | mosquitto (Docker) or IP address |
| Port | 1883 |
| Username | Your MQTT username |
| Password | Your MQTT password |
Features
- Real-time Monitoring - See all MQTT messages live
- Topic Tree - Clear hierarchy of all topics
- Send Messages - Manually publish messages
- Statistics - Message history and graphs
- Filter - Search for topics and messages
- Export - Export messages as JSON
MQTT with Home Assistant
Home Assistant uses MQTT for many integrations:
Example Topics
| Topic | Description |
|---|---|
homeassistant/# | Home Assistant Discovery |
zigbee2mqtt/# | Zigbee2MQTT Devices |
rtl_433/# | 433MHz Sensors |
esphome/# | ESPHome Devices |
Home Assistant Discovery
ESPHome and Zigbee2MQTT use Home Assistant Discovery:
MQTT with ESPHome
ESPHome communicates by default via the Home Assistant API, but can also use MQTT:
Debugging with MQTT Explorer
How to find MQTT issues:
- Open MQTT Explorer
- Filter by the relevant topic
- Check if messages are being sent/received
- Analyze the message structure
- Test sending messages manually
Notes
- The port is 4004 by default
- MQTT Explorer is also available as a desktop app
- Ideal for troubleshooting MQTT problems
- Can also be used for Node-RED debugging