SMART HOME / HM-SH-152
HM-SH-152 · datasheet

mqtt-mcp

Small stdio MCP server that connects an agent to an MQTT broker, keeps a live view of every topic it has seen, and lets the agent listen on topic filters or publish commands to devices

01 · What it does

  • List every topic seen with its last payload, last-seen time and message count, with + and # wildcards
  • Listen on a topic filter for N seconds or N messages
  • Publish a message to a device (wildcard topics rejected)

02 · Install

$ git clone https://github.com/VDusanV/mqtt-mcp.git
$ cd mqtt-mcp
$ npm install && npm run build
$ claude mcp add mqtt -e MQTT_URL=mqtt://localhost:1883 -- node /absolute/path/to/mqtt-mcp/dist/index.js
  1. 3 tools. docker compose up -d starts an EMQX broker and a simulated smart home (4 rooms, lights, sensors, a door) to try it
  2. Install from the repo; the README does not use an npm package

03 · Client config (from README)

{
  "mcpServers": {
    "mqtt": {
      "command": "node",
      "args": ["/absolute/path/to/mqtt-mcp/dist/index.js"],
      "env": { "MQTT_URL": "mqtt://localhost:1883" }
    }
  }
}

Install steps taken from the project README (its recommended path first). Placeholders are the maintainer's. Not bench-tested by HardwareMCP yet.

Weekly bulletin

New hardware MCP servers, notable releases and setup notes. One email, Mondays.