MQTT is a natural fit for connected devices: lightweight, event-driven, and already familiar in many IoT environments. An AI application still needs more than a broker connection. It needs a description of what it can inspect or change—and limits that a person can understand.
This project is an MCP integration for MQTT. The server owns topic mapping, payload validation, and access rules. The AI client discovers a small set of tools instead of talking to the broker directly.
The boundary
The point is not unrestricted access to every topic. A useful surface is narrow: inspect a permitted value, read selected device state, or request an allowed action.
MQTT topics can represent sensitive or safety-relevant operations. Permissions stay narrow, writes stay explicit, and a generated response is never treated as authorization.
How I approached the first version
- Begin with read-only visibility or a simulation.
- Return structured outcomes, including failures and freshness.
- Keep a confirmation step for anything that could affect equipment.
- Make the operator able to see what the model asked for and what actually happened.
Connecting AI to devices is exciting. The more important question is still: what should the AI be allowed to do, and how will a person know what happened?
Related writing: Giving AI a Safe, Structured Way to Work with MQTT Devices.