Skip to content
Cursor

MQTT for Cursor

io.github.nagarjunr/mqtt

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

client:Cursor transport:stdio runtime:pypi

Install MQTT in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

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

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

MQTT in other clients