# MQTTnet

> A high performance .NET library for MQTT: client and server (broker)

Source: https://talira.ai/catalog/mqttnet-nah92qzp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / message queue clients](https://talira.ai/categories/libraries/message-queue-clients), [languages / dotnet](https://talira.ai/categories/languages/dotnet)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [MQTT](https://talira.ai/standards/mqtt.md)[^2]
- Backed by: [.NET Foundation](https://talira.ai/orgs/dotnet-foundation.md)
- Funding: non-profit[^3]

MQTTnet is a .NET library for MQTT, the publish and subscribe protocol for IoT devices and messaging. It has a client, with a low level client and a managed one that keeps the connection and subscriptions up and queues messages for higher QoS levels, and a server (broker) you can embed in your own app, with hooks to validate clients' credentials and subscriptions and to intercept or change every message. It speaks MQTT up to version 5 over TCP, TLS and WebSockets (the broker's WebSockets through ASP.NET Core, a separate package), has no external dependencies, and works with Azure IoT Hub. It's supported by the .NET Foundation.

## Links

- GitHub: https://github.com/dotnet/MQTTnet

## Problems it solves

- connect my C# app to an MQTT broker and publish and subscribe to topics
- run an MQTT broker inside my .NET application instead of a separate server
- keep an MQTT connection and its subscriptions alive automatically in .NET
- talk to IoT devices from a .NET service over MQTT 5

## Features

- MQTT client and an embeddable MQTT server (broker) in one library
- supports MQTT 3.1.0, 3.1.1 and 5.0
- TCP, TLS and WebSocket transports
- managed client that reconnects, restores subscriptions and queues messages
- broker hooks to validate credentials and subscriptions and intercept messages
- no external dependencies

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 0.67, adoption 0.74, momentum 0.50, community 0.86, backing 0.55, extensibility 0.00.

- last commit 3 days ago
- 10 commits in the last 90 days
- latest release v5.2.0 5 months ago
- 5.1k GitHub stars
- 141 contributors
- backed by .NET Foundation
- funding: non-profit

## Sources

[^1]: https://github.com/dotnet/MQTTnet/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/dotnet/MQTTnet/blob/master/README.md (checked 28 Nov 2026)
[^3]: https://dotnetfoundation.org/about (checked 20 Nov 2026)
