# MQTT

MQTT is a lightweight publish/subscribe message broker for Internet of Things (IoT) and home-automation devices, allowing many clients to exchange small messages efficiently over constrained networks. It is open source and self-hosted, installable on TrueNAS, Docker Hub, Unraid and Proxmox.

Canonical page: https://ourlocalhost.com/app/697/mqtt

## Description

MQTT is a lightweight publish/subscribe message broker for Internet of Things (IoT) and home-automation devices, allowing many clients to exchange small messages efficiently over constrained networks.

## Platform availability

Available on 3 of 10 platforms: Unraid, TrueNAS, Proxmox.

## Health score

63/100 (Good), based on 5 of 5 factors.
- Maintained: 79 (last commit 14 days ago)
- Popular: 34 (50 GitHub stars)
- Easy to install: 45 (2 install platforms, install notes, Docker image)
- Light to run: 100 (256 MB minimum RAM)
- Security check: 60 (no serious findings, 22 minor, CI)

## Links

- TrueNAS: https://apps.truenas.com/catalog/eclipse-mosquitto
- Docker Hub: https://hub.docker.com/r/spants/mqtt
- GitHub: https://github.com/ditchoom/mqtt
- Unraid: https://ca.unraid.net/apps/mqtt-0i4q9ek12gcb9c?q=MQTT
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=mqtt
- Official website: https://mosquitto.org/

## Common questions

### Which MQTT protocol versions does the broker implement?

The broker implements MQTT 5.0, 3.1.1, and 3.1.

### What command line client tools are provided by the broker project?

It provides a C library and the mosquitto_pub and mosquitto_sub command line MQTT clients.

### Which testing modes can be tried against the Mosquitto test server?

Plain MQTT, MQTT over TLS, MQTT over TLS with a client certificate, WebSockets, and WebSockets with TLS are listed.

### What common MQTT gateway failures should be checked during troubleshooting?

Common failure points include TLS certificate issues, topic mismatches, broker connectivity problems, and DNS errors.

### What responsibility does self-hosting an MQTT broker place on the operator?

The operator is responsible for installation and maintenance of the hardware and software. This is described as the likely main choice for local MQTT applications and as ideal for testing or learning.

---
Source: Our Local Host (https://ourlocalhost.com/app/697/mqtt), the self-hosted and open-source app directory.
