eclipse-mosquitto/mosquitto

▲ 74 stars today★ 11,460⑂ 2,668

Eclipse Mosquitto - An open source MQTT broker

About eclipse-mosquitto/mosquitto

eclipse-mosquitto/mosquitto is an open-source project on GitHub, mainly written in C. Eclipse Mosquitto - An open source MQTT broker It currently holds 11,460 stars and 2,668 forks with 925 open issues, and was last pushed on 2026-11-06 (repository created 2016-03-10).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #61 with 74 new stars today.

GitHub Repository Details

Repository eclipse-mosquitto/mosquitto · default branch master · size 18461 KB · watchers 271 · source: GitHub REST API and repository README

README

Eclipse Mosquitto =================

Mosquitto is an open source implementation of a server for version 5.0, 3.1.1, and 3.1 of the MQTT protocol. It also includes a C and C++ client library, the mosquitto_pub mosquitto_rr, and mosquitto_sub utilities for publishing and subscribing, and the mosquitto_ctrl, mosquitto_signal, and mosquitto_passwd applications for helping administer the broker.

Links

See the following links for more information on MQTT:

Mosquitto project information is available at the following locations: There is also a public test server available at

Installing

See for details on installing binaries for various platforms.

Quick start

If you have installed a binary package the broker should have been started automatically. If not, it can be started with a very basic configuration:

mosquitto

Then use mosquitto_sub to subscribe to a topic:

mosquitto_sub -t 'test/topic' -v

And to publish a message:

mosquitto_pub -t 'test/topic' -m 'hello world'

Note that starting the broker like this allows anonymous/unauthenticated access but only from the local computer, so it's only really useful for initial testing.

If you want to have clients from another computer connect, you will need to provide a configuration file. If you have installed from a binary package, you will probably already have a configuration file at somewhere like /etc/mosquitto/mosquitto.conf. If you've compiled from source, you can write your config file then run as mosquitto -c /path/to/mosquitto.conf.

To start your config file you define a listener and you will need to think about what authentication you require. It is not advised to run your broker with anonymous access when it is publicly available.

For details on how to do this, look at the authentication methods available and the dynamic security plugin.

Documentation

Documentation for the broker, clients and client library API can be found in the man pages, which are available online at . There are also pages with an introduction to the features of MQTT, the mosquitto_passwd utility for dealing with username/passwords, and a description of the configuration file options available for the broker.

Detailed client library API documentation can be found at

Building from source

To build from source the recommended route for end users is to download the archive from .

On Windows and Mac, use cmake to build. On other platforms, just run make to build. For Windows, see also README-windows.md.

If you are building from the git repository then the documentation will not already be built. Use make binary to skip building the man pages, or install docbook-xsl on Debian/Ubuntu systems.

Build Dependencies

WITH_SRV=yes WITH_EDITLINE=no WITH_HTTP_API=no WITH_TLS=no mosquitto_loop_start() and mosquitto_loop_stop() functions. If compiled without pthread support, the library isn't guaranteed to be thread safe. WITH_SQLITE=no their use with WITH_BUNDLED_DEPS=no when building from git sources - disable with WITH_DOCS=no

Equivalent options for enabling/disabling features are available when using the CMake build. It is also possible to enable/disable building of specific plugins in the CMake build.

Building mosquitto - Using vcpkg

You can download and install mosquitto using the vcpkg dependency manager:

git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install mosquitto

The mosquitto port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

Credits

Mosquitto was written by Roger Light . There have been substantial contributions by other people in the community both in terms of code and other help.

GitHub Stars & Activity

11,460Stars
2,668Forks
925Open issues
CLanguage

GitHub Popularity

GitHub stars11,460
Forks2,668
Open issues925
Primary languageC
LicenseNOASSERTION
Stars gained today74
Created2016-03-10
Last pushed2026-11-06

Trending History

Daily boardrank #61 · ▲ 74 stars

Related GitHub Projects

1

DeusData / codebase-memory-mcp

C★ 48,754⑂ 4,049▲ 51 stars
→
2

semgrep / semgrep

C★ 17,758⑂ 1,195▲ 42 stars
→
3

mattpocock / skills

Shell★ 326,317⑂ 27,407▲ 793 stars
→
4

obra / superpowers

Shell★ 318,900⑂ 28,421▲ 1,905 stars
→
5

affaan-m / ECC

JavaScript★ 304,931⑂ 44,904▲ 718 stars
→
6

ossu / computer-science

HTML★ 211,199⑂ 26,151▲ 66 stars
→
7

DietrichGebert / ponytail

JavaScript★ 192,507⑂ 10,798▲ 785 stars
→
8

ohmyzsh / ohmyzsh

Shell★ 190,647⑂ 27,279▲ 59 stars
→

More Trending Repositories