MCP Server MQTT Bridge: Let AI Assistants Read and Control Your Devices
Step-by-step tutorial for a Model Context Protocol server that subscribes to MQTT topics, caches the latest values and exposes read and command tools to AI assistants.
Practical guides on MQTT, managed brokers and connected products from the ConnectMQ team.
Step-by-step tutorial for a Model Context Protocol server that subscribes to MQTT topics, caches the latest values and exposes read and command tools to AI assistants.
ISO 50001 is a management standard, but it runs on data. This explainer maps the standard's data requirements to meters, relevant variables and an MQTT-based collection architecture you can audit.
A practical use case for energy load forecasting: collecting meter data over MQTT, turning energy counters into demand, adding weather and calendar features, and publishing day-ahead forecasts for buildings and plants.
Connect the Arduino UNO R4 WiFi to an MQTT broker with WiFiS3 and ArduinoMqttClient, publish analog readings, control the LED matrix from your laptop and move to TLS on port 8883.
Point Zigbee2MQTT at a TLS-secured cloud MQTT broker so your Zigbee lights, sensors and plugs can be monitored and switched from anywhere, without opening ports on your home router.
Getting "[SSL: CERTIFICATE_VERIFY_FAILED]" when your Python MQTT client connects on port 8883? Here is how to find the exact cause and fix it properly on every platform, without disabling verification.
Build a React Native MQTT app with MQTT.js over secure WebSocket: a reusable hook, live device data, commands, and correct reconnect handling when the app moves between background and foreground.
An RFP-ready MQTT broker checklist with the questions that matter, why each one matters, what a good answer looks like and, as a worked example, how ConnectMQ answers them, including the things it does not do.
Build a store-and-forward MQTT publisher in Python that writes every reading to SQLite first, then replays the queue in order with QoS 1 acknowledgements once the connection is back.
A practical BACnet vs Modbus comparison covering data models, transports, discovery, security and typical use, with a clear pattern for translating both protocols into MQTT topics for a cloud broker.
Sparkplug 3.0 kept the payload and topic namespace but tightened the rules around host state, bdSeq and sessions. This comparison explains each change and gives a practical upgrade checklist for edge nodes and host applications.
Poll Modbus RTU devices over RS-485 and Modbus TCP devices over Ethernet from a Raspberry Pi with pymodbus, decode scaled and 32-bit float registers correctly, and publish clean JSON to an MQTT broker.
A practical guide to the Node-RED function node for MQTT work: reshaping payloads, filtering noise, routing to several outputs, keeping state and handling errors, with a flow you can import and run against a live broker.
MQTT 3.1.1 brokers answer every CONNECT with a CONNACK return code from 0 to 5. Learn what each one means, how it looks in Mosquitto, Paho and MQTT.js, and the fastest fix for each refusal.
What MQTT access control lists are, how brokers such as Mosquitto express topic-level read and write rules, how denied operations behave and how to design topic namespaces so authorization stays simple.
Take a trained Edge Impulse model off the Studio and into a real system: export it as an Arduino library or a Linux .eim file, run inference on the device and publish every prediction over MQTT.
A practical guide to the digital twin in manufacturing, covering product, process and production twins, high-value use cases and a step-by-step plan to build the MQTT data foundation.
A complete docker-compose setup for Telegraf, InfluxDB 2 and Grafana that subscribes to an MQTT broker, stores sensor data and opens with a provisioned data source and dashboard, plus the pitfalls that break first runs.
Running your own MQTT broker looks cheap until you count patching, certificates, monitoring and on-call. This comparison weighs effort, cost and risk and gives you a decision matrix you can apply to your own project.
OPC UA Part 14 lets OPC UA publishers send data through any standard MQTT broker. Learn the PubSub building blocks, JSON vs UADP encodings, topic and metadata conventions, and how to publish and decode messages yourself.
Wire an anemometer, rain gauge and BME280 to an ESP32, publish wind, rain, temperature, humidity and pressure as MQTT JSON, then log and chart the data with a short Python script.
A stale retained message keeps greeting every new subscriber with old data. Here is how to delete a retained message in MQTT with an empty retained publish, from the command line, Python, JavaScript and a browser client.
A practical guide to the mapping layer of a digital twin: how to bind IoT data to a 3D model by mapping MQTT topic values to glTF nodes, materials, morph targets and animation clips, with bindings stored in the model itself.
A hands-on hardening checklist for Raspberry Pi IoT devices covering accounts, SSH keys, firewall rules, updates, systemd sandboxing, secrets and TLS-encrypted MQTT connections.
Build an MQTT to TimescaleDB pipeline: a Python subscriber batches device messages into a PostgreSQL hypertable with COPY, then continuous aggregates, compression and retention keep queries fast and storage small.
Learn how to raise alerts when MQTT sensor values leave a safe range: rules in the ConnectMQ portal, a Node-RED flow for notifications, and a Python alerter with hysteresis and debounce to avoid alert storms.
Federated learning lets IoT devices improve a shared model while their raw data stays local. This explainer covers how it works, where it fits, its pitfalls, and how an MQTT broker can carry model updates between devices and a coordinator.
Connect an ESP32 to an MQTT broker over TLS on port 8883 with WiFiClientSecure and PubSubClient, verify the server with the right root CA, sync time and keep heap usage under control.
A practical six-level digital twin maturity model, with the capabilities, data infrastructure and MQTT patterns each level requires, plus a self-assessment to plan your next step.
Wire a capacitive soil moisture probe to an ESP32, calibrate dry and wet points, publish percent moisture over MQTT with deep sleep, and raise debounced watering alerts.
Create an account, get your broker credentials and connect your first device — no servers to install, patch or scale.