AI Agents MCP Servers Workflows Blog Submit
M

MQTT MCP

IoT Free Open Source

Connect AI to MQTT message brokers. Subscribe to topics, publish messages, monitor IoT device telemetry, and analyze sensor data via MCP.

What is MQTT MCP?

MQTT MCP is a Model Context Protocol server that connects AI assistants to MQTT message brokers. MQTT (Message Queuing Telemetry Transport) is the de facto standard for IoT communication, used by billions of devices worldwide for lightweight, reliable messaging.

IoT Intelligence

With MQTT MCP, AI models can subscribe to sensor data streams, analyze telemetry patterns, detect anomalies, and even publish control commands to IoT devices. This creates powerful AI-driven IoT workflows.

Features

The server supports MQTT v3.1.1 and v5.0, TLS encryption, authentication, wildcard topic subscriptions, and QoS levels 0-2. It can parse common IoT payload formats including JSON, Protobuf, and raw binary data.

Configuration

{
  "mcpServers": {
    "mqtt": {
      "command": "npx",
      "args": ["mqtt-mcp"],
      "env": {
        "MQTT_BROKER_URL": "mqtt://localhost:1883",
        "MQTT_USERNAME": "your_username",
        "MQTT_PASSWORD": "your_password"
      }
    }
  }
}

Use Cases

MQTT MCP enables AI-powered smart home control, industrial IoT monitoring, fleet management, environmental sensing, and any application that uses MQTT for device communication.

Key Features

  • Subscribe to MQTT topics and receive messages
  • Publish messages to MQTT brokers
  • Monitor IoT device telemetry in real-time
  • Parse and analyze sensor data payloads
  • Support for MQTT v3.1.1 and v5.0
  • TLS/SSL encrypted connections