Next steps (LoRa mesh)
MQTT bridge and privacy
What Meshtastic's MQTT module does, the public broker's restrictions, what 'OK to MQTT' really is, and the privacy risk of uplinking a channel.
- Difficulty
- Intermediate
- Time
- 45 min
- Cost
- Free (a node with Wi-Fi or Ethernet, or a phone, is needed)
Updated 4 Nov 2026
Overview
MQTT is a lightweight publish-and-subscribe protocol. Meshtastic's MQTT module lets a node forward the packets it hears to an MQTT server, and optionally pass packets back from the server onto the radio mesh. It is how community maps are fed, how people link two separate meshes, and how a mesh gets into tools such as Home Assistant.
This guide covers what the module does, the rules on the public broker, the privacy exposure, and how to run a private broker instead. It describes the stable Meshtastic firmware v2.7.26 (released 2026-06-24, the latest non-pre-release when we checked the releases page on 2026-11-04). The Meshtastic docs read on 2026-11-04 are the source for every setting and default below, so check them against the firmware version on your node. They are meshtastic.org's 2.8 doc set, checked against the 2.7 set for the MQTT module, integration and public-server pages, which match in substance.
What the module does
Per the module page: "If your device is connected to Internet via Wi-Fi or ethernet, you can enable it to forward packets along to an MQTT server." It also needs at least one channel with uplink and/or downlink switched on.
From the integrations page:
- A gateway node "uplinks and/or downlinks every raw protobuf MeshPacket that it sees". All packets go to the broker, "whether they originate from another device on the mesh, or the gateway node itself."
- Several gateways can hear the same packet, so subscribers will see duplicates and should de-duplicate on packet ID.
- Uplink and downlink are set per channel and both default to off. The channels page describes uplink as messages "from the mesh will be sent to the public internet through any node's configured gateway", and downlink as messages "captured from a public internet gateway will be forwarded to the local mesh."
- The client proxy setting (
proxy_to_client_enabled) lets the device "use the client's (e.g. your phone's) network connection". So a Wi-Fi or Ethernet node is not the only route; a phone with the app can act as the gateway.
MQTT does not make Meshtastic into an internet service. It copies short mesh packets to a broker (the glossary entry is MQTT bridge). See What you can actually do for the limits of these networks, and the short MQTT section in Zero-hardware start for the no-radio angle.
The public broker and its restrictions
The module page lists mqtt.meshtastic.org as the default address, and the integrations page says that if the address,
username and password are all left blank "the device will connect to the Meshtastic broker". The integrations page
(section "Restrictions on the public MQTT server", read 2026-11-04) sets out the policy:
- Zero-hop. "Traffic from the public MQTT server does not fully propagate through local mesh networks. Directly connected nodes will receive the data, but due to the zero-hop policy, it will not spread further to other nodes within the local mesh network."
- Limited message types on the default key. "Only specific portnums are prioritized ... when using the default PSK". The list is NodeinfoApp, TextMessageCompressedApp, TextMessageApp, PositionApp, TelemetryApp, MapReportApp and RoutingApp.
- Position precision on the default key. "Only position packets containing imprecise location data (10-16 bits) are shared on the topic."
- The policy can tighten. The page says "As Meshtastic networks continue to grow, further traffic reduction measures may become necessary." Treat the list above as the policy on 2026-11-04.
The module page also warns: "The default channel (LongFast) on the public server usually has a lot of traffic. Your device may get overloaded and may no longer function properly anymore. It is recommended to use a different channel or to use your own MQTT server."
In practice, the public broker is a way to feed maps and to read other meshes, not a way to carry your own conversations.
OK to MQTT
lora.config_ok_to_mqtt in the LoRa configuration defaults to false. The LoRa page
says:
When set to
true, this configuration indicates that the user approves their packets to be uplinked to MQTT brokers. If set tofalse, nodes receiving your packets are requested not to forward packets to MQTT. This configuration only applies to Channels configured with thedefaultpskandeventpskkeys ...; Channels with custom keys ignore this setting.
and then: "Important: This is not a cryptographic solution but a polite request that is enforced in the official firmware."
Our reading of that: the flag is a request attached to your packets. Official firmware honours it; a gateway running
something else could ignore it, and the docs offer no technical barrier. It also does nothing for a channel with a custom
key, which is a different protection (the key itself). lora.ignore_mqtt goes the other way: it drops LoRa packets that
"came via MQTT somewhere along the path", and needs firmware 2.2.19 or later on both ends.
The privacy risk, plainly
Put the documented pieces together:
- Uplink on a channel with the default key sends everything on that channel to a public service. The default key is public anyway (see channels, PSKs and private groups), so it was never private; MQTT just collects it in one place.
- MQTT encryption is off by default. The module page: "All messages are sent to the MQTT broker unencrypted if this
option is not enabled, even when your uplink channels have encryption keys set." If
encryption_enabledis true, the integrations page says the MeshPacket payload "will remain encrypted with the key for the specified channel." - JSON output is unencrypted. "These packets are not encrypted", and "JSON is not supported on the nRF52 platform."
- Map reports are unencrypted (see map reports).
- Third parties republish what they see: see meshmap.net.
Settings and defaults
These are the module page's settings and defaults, read 2026-11-04:
| Setting | Default | What it does |
|---|---|---|
mqtt.enabled |
false | Turns the module on |
mqtt.address |
mqtt.meshtastic.org (the module page's CLI table) |
Broker host; blank also connects to the Meshtastic broker |
mqtt.username, mqtt.password |
Public-broker defaults listed on the module page | Broker credentials |
mqtt.encryption_enabled |
false | Keeps the MeshPacket payload encrypted with the channel key |
mqtt.json_enabled |
false | Publishes decoded JSON; unencrypted; not supported on nRF52 |
mqtt.tls_enabled |
false | Connects with TLS |
mqtt.root |
See the module page | Topic root; lets one broker carry several meshes, "separate[d] via ACLs" |
mqtt.proxy_to_client_enabled |
false | Uses the phone's connection |
mqtt.map_reporting_enabled |
false | Sends periodic map reports |
Topic forms on the integrations page: msh/REGION/2/e/CHANNELNAME/USERID for the protobuf packets and
msh/REGION/2/json/CHANNELNAME/USERID for JSON (firmware before 2.3.0 used /c/ instead of /e/). The page's examples
use the US region; it does not print the string for a UK node, so check what your own node publishes.
Map reports
Available from firmware 2.3.2, map reporting means "your node will periodically send an unencrypted map report". The module page lists what is in it: long and short name and ID; position (at the configured precision) and altitude; hardware model and role; firmware version; LoRa region, modem preset and primary channel name; whether the node can be reached on the default channel with a known key; and the number of local online nodes (heard in the last 2 hours, excluding MQTT-heard). The default and minimum publish interval is 3600 seconds, and the default position precision is "a maximum deviation of around 1459m".
meshmap.net: how a node you never enabled gets mapped
meshmap.net is a third-party site, not part of the Meshtastic project. It has no separate about page; the FAQ is in the GitHub README (read 2026-11-04). The README says:
- It is "A nearly live map of Meshtastic nodes seen by the official Meshtastic MQTT server."
- It "Shows all position-reporting nodes heard by Meshtastic's Public MQTT Server. Includes nodes self-reporting to MQTT or heard by another node reporting to MQTT."
So a node that never enabled MQTT can still be on the map if another node within range uplinked its packets. To be shown, a node needs the default primary channel and key, OK to MQTT set, position enabled, and a precision "between 23.3 km (14.5 miles) and 364 m (1194 ft), inclusive". The map updates every minute, and "Nodes are removed from the map if their position is not updated after 8 hours." There are no manual or self-reported nodes ("No, and that's a feature."), and the README states no privacy policy or removal procedure. The way to stay off a map like this is not to transmit position on the default key, and to leave OK to MQTT off (a request, as above).
Run a private broker instead
The integrations page warns: "It is not recommended to use the default key (PSK) on a private broker. Doing so potentially allows security vulnerabilities and can flood the mesh with traffic, as private brokers do not enforce the zero-hop policy needed for public channels. Private brokers are intended for use with private channels, where custom PSKs provide secure, isolated communication."
The outline, from the integrations page's quick start:
- Give the node a network connection: set the
network.wifi_ssid,network.wifi_pskandnetwork.wifi_enabledvalues, or the Ethernet equivalents (network.eth_mode,network.eth_enabled, with a RAK13800 module). - Set
mqtt.address,mqtt.usernameandmqtt.passwordto your own broker. - Turn on
mqtt.encryption_enabledso payloads stay encrypted with the channel key.mqtt.tls_enabledis a separate setting, off by default. - Set uplink (and downlink if you need it) on the private channel only. The integrations page quotes
meshtastic --ch-index 0 --ch-set uplink_enabled true(docs read 2026-11-04; it applies uplink to channel index 0, change the index for another channel). - If one broker serves several meshes, separate them with
mqtt.rootand broker ACLs.
The integrations page links worked examples for Mosquitto, Node-RED, Python, Home Assistant and Adafruit IO. We have
not tested any of them. Chain --set options in a single command where you can: each change reboots the device.
For a Linux gateway rather than a handheld node, see Pi gateway with meshtasticd. For Home Assistant, see Home Assistant and Meshtastic; the JSON topic is unencrypted, so keep that broker private, not the public one.
MeshCore and Reticulum
This module is Meshtastic only. MeshCore documents no chat bridge between its radio mesh and the internet (see Flash MeshCore). Reticulum can carry traffic over TCP as a built-in interface, which is a different design; see Zero-hardware start.
UK note
Checklist
- Leave uplink and downlink off unless you have a reason; both default to off.
- Do not uplink a channel whose messages you would not want public.
- Turn
mqtt.encryption_enabledon for any broker that is not wholly yours, and know that JSON and map reports stay unencrypted. - Leave OK to MQTT off if you do not want to be uplinked, and remember it is only a request.
- Use a custom channel key on a private broker, never the default key.
- Read Privacy and encryption for what channel encryption does not cover.
What we could not confirm
- Whether
meshtasticd(Meshtastic on Linux) acts as an MQTT gateway on its host's own network connection the way an ESP32 node does. The docs list "MQTT bridges" as a use case but give no configuration page for it. - The topic string for a UK node. The documented pattern uses a region placeholder and the examples use
US. - Whether the public broker's policy has changed since 2026-11-04.
- Any Meshtastic documentation recommending against enabling both uplink and downlink on a busy channel. The meshmap.net README says downlink is "not recommended unless you know what you're doing"; we found nothing stronger.
- A privacy policy or removal procedure for meshmap.net: the README has neither.