MQTT for VS Code
io.github.nagarjunr/mqtt
MCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).
client:VS Code
transport:stdio
runtime:pypi
Install MQTT in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mqtt-host",
"description": "MQTT_HOST",
"password": true
},
{
"type": "promptString",
"id": "mqtt-port",
"description": "MQTT_PORT",
"password": true
},
{
"type": "promptString",
"id": "mqtt-username",
"description": "MQTT_USERNAME",
"password": true
},
{
"type": "promptString",
"id": "mqtt-password",
"description": "MQTT_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "mqtt-use-tls",
"description": "MQTT_USE_TLS",
"password": true
}
],
"servers": {
"mqtt": {
"type": "stdio",
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "${input:mqtt-host}",
"MQTT_PORT": "${input:mqtt-port}",
"MQTT_USERNAME": "${input:mqtt-username}",
"MQTT_PASSWORD": "${input:mqtt-password}",
"MQTT_USE_TLS": "${input:mqtt-use-tls}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs