MQTT
About
MCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
MQTT_HOST MQTT_PORT MQTT_USERNAME MQTT_PASSWORD MQTT_USE_TLSClaude Code
claude mcp add --env MQTT_HOST= --env MQTT_PORT= --env MQTT_USERNAME= --env MQTT_PASSWORD= --env MQTT_USE_TLS= mqtt -- uvx mqtt5-mcp-server
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"mqtt","command":"uvx","args":["mqtt5-mcp-server"],"env":{"MQTT_HOST":"","MQTT_PORT":"","MQTT_USERNAME":"","MQTT_PASSWORD":"","MQTT_USE_TLS":""}}'
JSON
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "",
"MQTT_PORT": "",
"MQTT_USERNAME": "",
"MQTT_PASSWORD": "",
"MQTT_USE_TLS": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.