Skip to content
MCP server

MQTT

MCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.0
Listing updated
5 days ago

About MQTT

MQTT is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add mqtt --env MQTT_HOST='<MQTT_HOST>' --env MQTT_PASSWORD='<MQTT_PASSWORD>' -- uvx mqtt5-mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mqtt": {
      "command": "uvx",
      "args": [
        "mqtt5-mcp-server"
      ],
      "env": {
        "MQTT_HOST": "<MQTT_HOST>",
        "MQTT_PASSWORD": "<MQTT_PASSWORD>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mqtt": {
      "command": "uvx",
      "args": [
        "mqtt5-mcp-server"
      ],
      "env": {
        "MQTT_HOST": "<MQTT_HOST>",
        "MQTT_PASSWORD": "<MQTT_PASSWORD>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mqtt": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mqtt5-mcp-server"
      ],
      "env": {
        "MQTT_HOST": "<MQTT_HOST>",
        "MQTT_PASSWORD": "<MQTT_PASSWORD>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mqtt": {
      "command": "uvx",
      "args": [
        "mqtt5-mcp-server"
      ],
      "env": {
        "MQTT_HOST": "<MQTT_HOST>",
        "MQTT_PASSWORD": "<MQTT_PASSWORD>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mqtt": {
      "command": "uvx",
      "args": [
        "mqtt5-mcp-server"
      ],
      "env": {
        "MQTT_HOST": "<MQTT_HOST>",
        "MQTT_PASSWORD": "<MQTT_PASSWORD>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MQTT_HOSTBroker hostname or IPRequired
  • MQTT_PORTBroker port, default 1883 (or 8883 for TLS)
  • MQTT_USERNAMEBroker username
  • MQTT_PASSWORDBroker password
  • MQTT_USE_TLStrue/false, default false

Pricing

Open source

MQTT FAQ

Is MQTT free?

Yes. MQTT is open source, so you can use and self-host it for free.

How do I add MQTT to Claude Code?

Run this command in your terminal: claude mcp add mqtt --env MQTT_HOST='<MQTT_HOST>' --env MQTT_PASSWORD='<MQTT_PASSWORD>' -- uvx mqtt5-mcp-server

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers