Skip to main content
Glama

mqtt_publish

Publish messages to MQTT topics with configurable QoS and retention settings for IoT and messaging applications.

Instructions

Publishes a message to a specific MQTT topic. Args: topic: The MQTT topic to publish to. message: The message payload to send. qos: The Quality of Service level (0, 1, or 2). Defaults to 0. retain: Whether the message should be retained by the broker. Defaults to False. Returns: A confirmation message string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYes
messageYes
qosNo
retainNo

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Omniscience-Labs/OMNI-MQTT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server