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.2

Revision: 3

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.4.5 Cross-platform make
pkgconf 3.0.10 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 days26,314
Downloads613,066
Analytics install events (30 days)3,097
Downloads / install events (30 days)8.5×

Source: GitHub Packages, fetched 2026-11-08T00:54:34Z. Analytics dates: 2026-10-09 to 2026-11-08. 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,0885,58424,445
Installs (--HEAD)91347
Installs on Request3,0295,49423,948
Installs on Request (--HEAD)91347
Build Errors4