# MQTT Broker

MQTT Broker is a self-hosted databases app. Eclipse Mosquitto is an open-source broker for the MQTT (Message Queuing Telemetry Transport) messaging protocol. It is open source and self-hosted, installable on Docker Hub, TrueNAS, Proxmox and Unraid.

Canonical page: https://ourlocalhost.com/app/5836/mqtt-broker

## Description

Eclipse Mosquitto is an open-source broker for the MQTT (Message Queuing Telemetry Transport) messaging protocol. It lets IoT devices and applications exchange data via lightweight publish/subscribe messaging and ships with client libraries and command-line utilities for publishing, subscribing, and administering the broker.

## Platform availability

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

## Health score

83/100 (Excellent), based on 5 of 5 factors.
- Maintained: 97 (last commit 49 days ago)
- Popular: 81 (11,235 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 100 (256 MB minimum RAM, runs on ARM)
- Security check: 95 (no serious findings, CI, tests)

## Links

- GitHub: https://github.com/eclipse-mosquitto/mosquitto
- Docker Hub: https://hub.docker.com/r/greenbone/mqtt-broker
- TrueNAS: https://apps.truenas.com/catalog/eclipse-mosquitto
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=mqtt
- Unraid: https://ca.unraid.net/apps?q=Eclipse-Mosquitto&app=7dkxo2
- Official website: https://mosquitto.org
- Documentation: https://mosquitto.org/documentation/

## Common questions

### Can I start Mosquitto without a configuration file for a quick test?

Yes. Running just mosquitto starts a local, anonymous broker that is only useful for initial testing. Use a configuration file with a listener and authentication for clients on other computers.

### Can Mosquitto be fronted by HAProxy for TLS termination?

Yes. The documentation includes guidance for using Mosquitto with HAProxy, including deployments where HAProxy performs TLS termination.

### What should I expect when building Mosquitto from source?

The build requires cJSON. Use CMake on Windows and Mac or make on other platforms, and use make binary when building from git to skip building man pages.

### What common MQTT gateway failures should I check when clients cannot connect?

Check TLS certificate issues, topic mismatches, broker connectivity problems, and DNS errors.

## Alternatives

- RabbitMQ: RabbitMQ is an open source message broker that implements the Advanced Message Queuing Protocol (AMQP), used to route and queue messages be…

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