mqtt-mcp
Verified Safeby ezhuk
Overview
Connects LLM agents to MQTT devices for AI-driven automation in IoT, smart home, and industrial control systems.
Installation
docker run -dit --name mqtt-mcp --restart=always -p 8080:8000 --env-file .env ghcr.io/ezhuk/mqtt-mcp:latestEnvironment 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
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
ha-mcp
A Model Context Protocol (MCP) server that provides AI agents with comprehensive control and monitoring capabilities for Home Assistant through REST API and WebSocket integration, offering over 20 enhanced tools for smart home management and automation.
unifi-network-mcp
Programmatic access and automation of UniFi Network controller tasks, facilitating integrations with AI models (LLMs), monitoring systems, and custom applications.
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.