# mochi-mqtt/server

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub

Repository: https://github.com/mochi-mqtt/server
Canonical: https://ross.abutalabs.com/products/mochi-mqtt-server
Language: Go
License: MIT
License Family: permissive
Topics: mqtt, mqtt-broker, mqtt-server, mqtt-smarthome, golang, iot, golang-package, golang-library, mqtt3, mqtt5, tcp, websocket, mqttv5
Last push: 2026-08-24T21:30:04+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 2538, "days_push": 9, "days_rel": 550, "gap_med": 14, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1919, forks 327 (observed 2026-08-28T04:05:55.069407+00:00)

## What it is
Mochi-MQTT is a fully compliant, embeddable MQTT v5 (and v3.1.1) broker written in Go, usable as a standalone binary or as a library inside your own applications. It targets telemetry, IoT, and smarthome pub/sub workloads with a hook-based plugin system and high performance.

## Use cases
- run an mqtt broker for iot devices
- embed an mqtt server in my go application
- pub/sub messaging for smarthome sensors
- telemetry ingestion from constrained devices
- mqtt v5 broker with shared subscriptions and topic aliases
- bridge mqtt messages over tcp and websocket

## When to choose
- you need an MQTT v5-compliant broker in Go
- you want to embed broker functionality directly in your application
- you need hook/plugin extensibility or packet injection for custom auth and routing

## When to avoid
- you need a distributed, clustered broker like EMQX or VerneMQ at massive scale
- you only need an MQTT client, not a server

## Facets
- artifact type: library
- maturity: active
- function: message-queue, http-server, websocket, middleware
- domain: iot, self-hosted, backend, developer-tools
- platform: go, windows, cross-platform, self-hosted
- tags: mqtt-broker, mqtt-v5, pubsub, embeddable, telemetry, smarthome, qos, retained-messages, shared-subscriptions, messaging, linux, macos

## Member repositories
- mochi-mqtt/server (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.069407+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:58.652894+00:00, confidence not recorded.
  - readme: https://github.com/mochi-mqtt/server (fetched 2026-08-28T04:05:55.069407+00:00, sha b6470ce29b92)
- Data as of 2026-08-30T08:39:29.467469+00:00.
