Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MQTT_PORTNoThe MQTT broker port1883
MQTT_PASSWORDNoThe MQTT password for authentication
MQTT_USERNAMENoThe MQTT username for authentication
MQTT_CLIENT_IDNoThe MQTT client IDmcp-mqtt-client
MQTT_BROKER_ADDRESSNoThe MQTT broker addresslocalhost

Tools

Functions exposed to the LLM to take actions

NameDescription
mqtt_publish
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.
mqtt_subscribe
Subscribes to an MQTT topic and receives a specified number of messages or waits for a timeout. Args: topic: The MQTT topic to subscribe to (can include wildcards like + or #). num_messages: The maximum number of messages to receive. Defaults to 1. timeout: The maximum time (in seconds) to wait for messages. Defaults to 10. Returns: A list of dictionaries, where each dictionary represents a received message with 'topic' and 'payload' keys.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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