mosquitto

Install command:
brew install mosquitto

Message broker implementing the MQTT protocol

https://mosquitto.org/

License: EPL-1.0 OR BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/mosquitto.json

Formula code: mosquitto.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.1.4

Depends on:

cjson 1.7.19 Ultralightweight JSON parser in ANSI C
libwebsockets 5.1.0 C websockets server library
openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit

Depends on when building from source:

cmake 4.5.1 Cross-platform make
pkgconf 3.0.11 Package compiler and linker metadata toolkit

Uses from macOS: libxslt (build), libedit, sqlite

Binaries: mosquitto, mosquitto_ctrl, mosquitto_db_dump, mosquitto_passwd, mosquitto_pub, mosquitto_rr, mosquitto_signal, mosquitto_sub

Service:

Start now and at login: brew services start mosquitto
Run directly: $HOMEBREW_PREFIX/opt/mosquitto/sbin/mosquitto -c $HOMEBREW_PREFIX/etc/mosquitto/mosquitto.conf
mosquitto has been installed with a default configuration file.
You can make changes to the configuration by editing:
     $HOMEBREW_PREFIX/etc/mosquitto/mosquitto.conf

GitHub Packages downloads:

Last 30 days34,750
Downloads637,683
Analytics install events (30 days)3,425
Downloads / install events (30 days)10.2×

Source: GitHub Packages, fetched 2026-11-29T00:58:43Z. Analytics dates: 2026-10-30 to 2026-11-29. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs3,4176,40825,544
Installs (--HEAD)81548
Installs on Request3,3606,30125,039
Installs on Request (--HEAD)81548
Build Errors12