Back to Home
ezhuk icon

mqtt-mcp

Verified Safe

by ezhuk

Overview

Connects LLM agents to MQTT devices for AI-driven automation in IoT, smart home, and industrial control systems.

Installation

Run Command
docker run -dit --name mqtt-mcp --restart=always -p 8080:8000 --env-file .env ghcr.io/ezhuk/mqtt-mcp:latest

Environment Variables

  • MQTT_MCP_MQTT__HOST
  • MQTT_MCP_MQTT__PORT
  • MQTT_MCP_MQTT__USERNAME
  • MQTT_MCP_MQTT__PASSWORD
  • MQTT_MCP_AUTH__DOMAIN
  • MQTT_MCP_AUTH__URL
  • OPENAI_API_KEY

Security Notes

The server uses `FastMCP` and `paho-mqtt` for core functionality and handles configuration for MQTT credentials and MCP server authentication via environment variables. No 'eval' or direct code injection vulnerabilities are apparent. The primary security risk is the potential for an LLM agent to issue harmful commands if not properly constrained, which is an inherent application-level concern for AI safety and requires robust agent design and secure MQTT broker configuration.

Similar Servers

Stats

Interest Score36
Security Score8
Cost ClassLow
Stars7
Forks4
Last Update2025-11-27

Tags

MQTTMCPAIIoTAutomation