MQTTnet
MQTTnet: A flexible MQTT client and broker library for developers embedding MQTT in .NET apps. Ranked #23 of 46 in MQTT Broker Software by our editors (6.9/10); pricing: Free plan; best for embedding an MQTT broker in .NET applications.
At a glance
- Editor score6.9 / 10
- PricingFree plan
- Best forEmbedding an MQTT broker in .NET applications
- Free planYes
- Paid fromFree
- Deployment modelSelf-hosted
- Facts checked14 Nov 2026
Where it wins
- Includes both MQTT client and broker capabilities in one library
- Supports MQTT versions 4 and 5 over TCP, TLS, and WebSockets
- Offers credential validation, message interception, and topic checks
Where it doesn't
- Requires developers to host and operate the broker themselves
- Retained-message persistence depends on custom interface methods
- Not positioned as a managed broker service
Our verdict on MQTTnet
MQTTnet is an open-source .NET library that provides both an MQTT client and a server (broker). It is aimed at developers who want to embed MQTT communication in their own applications rather than subscribe to a hosted broker. The project is delivered through NuGet and can be used with ASP.NET Core, making it a fit for teams building .NET services that need client and broker functionality together.
The broker supports MQTT protocol versions 4 and 5, with TCP, TCP with TLS, and WebSocket communication channels. On the server side, developers can validate client credentials, intercept messages to transform or extend them, and validate subscriptions to deny access to selected topics. It also exposes a list of connected clients. Retained messages are supported, while persistence for them is provided through custom interface methods. These capabilities make MQTTnet more configurable than a basic client library, but they put implementation choices in the application's hands.
MQTTnet is self-hosted, so it suits developers who want control over how a broker is embedded and operated, not buyers seeking a turnkey managed service. Its open-source model avoids a paid plan decision, while documentation and community are the listed support channels. Teams should weigh the work of hosting and operating it against that control. MQTTnet is a reasonable fit for .NET projects that need broker behavior inside an application; organizations looking for a managed service or an explicitly documented clustering option should consider a dedicated broker product instead.
Your product? Our editors can test MQTTnet in depth and publish a review, labelled as paid · from $149/mo →
MQTTnet pricing
MQTTnet fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Deployment model | Self-hosted |
| MQTT versions | 4, 5 |
| Retained messages | Yes |
| Clustering | Not verified |
| Connection limit | Not verified |
| Authentication methods | Extensible client credential validation; TLS certificate-based authentication |
| Deployment | Self-hosted |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 1 integrations: ASP.NET Core |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 14 Nov 2026 |
MQTTnet integrations
MQTTnet lists 1 integrations on its own site.
- ASP.NET Core
Alternatives to MQTTnet
- AWS IoT CoreA managed MQTT broker with device tools and message routing for AWS-centric IoT systems.9.4
- Azure Event Grid MQTT brokerA managed MQTT broker with Azure routing, flexible authentication, and usage-based pricing.9.2
- Apache BifroMQA self-hosted broker with clustering, distributed storage, and support for MQTT 3.1 through 5.0.9.1
See all MQTTnet alternatives →
Used MQTTnet? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used MQTTnet for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
MQTTnet is listed in our MQTT Broker Software directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/mqttnet/"><img src="https://www.itechguides.com/best/badge/mqttnet.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update