Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSMqttNew to Visual Studio Code? Get it now.
VSMqtt

VSMqtt

rpdswtk

|
23,395 installs
| (4) | Free
VSMqtt is a simple MQTT client integrated in vscode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSMQTT

Open VSX Downloads

Buy Me A Coffee

Vsmqtt is a simple MQTT client integrated in vscode.

Alt Text

Features

  • Create and use multiple mqtt profiles
  • Connect to broker
  • Support for secure connection
  • Publish messages to mqtt brokers
  • Subscribe to topics
  • Browse details of received messages
  • Connect to multiple brokers simultaneously
  • Colors to differentiate messages by topics
  • Pin topics (pinned topics are saved to settings and are used to subscribe to automatically upon connection)
  • Export to csv
  • Support for websocket connection
  • Clear retained messages
  • Right click on message to open in text edior

Extension Settings

This extension stores mqtt broker profiles in workspace settings.json under: "vsmqtt.brokerProfiles".

Properties:

name type description required
name string Profile name -
host string Broker host -
port number Broker port -
path string Broker path -
username string Client username
password string Client pasword
promptCredentials boolean Ask for username and password before connecting to the broker
protocol string "mqtt", "mqtts", "tcp", "tls", "ws", "wss"
ca string Absolute path for cert file or cert string in PEM format
key string Absolute path for client cert file or cert string in PEM format
cert string Absolute path for client key file or cert string in PEM format
clientId string Client ID
keepalive number Keepalive interval in seconds.
insecure boolean Disable verification of the server hostname in the server certificate. This option makes it possible for a malicious third party to impersonate your server through DNS spoofing. Use it in testing environment only.
rejectUnauthorized boolean Skip server certificate validation
unixSocket boolean Connect to unix socket

Examples:

Password protected connection:

{
    "name": "client with password",
    "host": "localhost",
    "port": 1884,
    "username": "user01",
    "password": "securepassword"
}

Connecting to TLS protected broker:

{
    "name": "client with tls",
    "host": "broker.emqx.io",
    "port": 8883,
    "protocol": "mqtts",
    "ca": "/path_to_crt"
}

Connecting to broker using websocket:

{
    "name": "broker.emqx.io",
    "host": "ws://broker.emqx.io",
    "port": 8083,
    "clientId": "vsmqtt_client_test",
    "protocol":"ws",
    "path": "/mqtt"
}

Connecting to unix socket

{
    "name": "unix connection",
    "protocol": "mqtt",
    "path": "/var/run/mosquitto/mosquitto.sock",
    "unixSocket": true
}

Commands

Name Description
addProfile Create new mqtt broker profile
editProfile Edit existing mqtt broker profile
deleteProfile Delete mqtt broker profile
connectToBroker Connect to broker
refreshProfileList Refresh sidebar view

All commands can be invoked also from the ui.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft