Skip to content
Cursor

Sparkplug B for Cursor

io.github.nagarjunr/sparkplug-b

MCP server for Sparkplug B: node/device discovery, metrics, commands, host state over MQTT.

client:Cursor transport:stdio runtime:pypi

Install Sparkplug B 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": {
    "sparkplug-b": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "sparkplug-b-mcp-server"
      ],
      "env": {
        "SPARKPLUG_MQTT_HOST": "<SPARKPLUG_MQTT_HOST>",
        "SPARKPLUG_HOST_ID": "<SPARKPLUG_HOST_ID>",
        "SPARKPLUG_MQTT_PORT": "<SPARKPLUG_MQTT_PORT>",
        "SPARKPLUG_MQTT_USERNAME": "<SPARKPLUG_MQTT_USERNAME>",
        "SPARKPLUG_MQTT_PASSWORD": "<SPARKPLUG_MQTT_PASSWORD>",
        "SPARKPLUG_MQTT_USE_TLS": "<SPARKPLUG_MQTT_USE_TLS>",
        "SPARKPLUG_GROUP_ID": "<SPARKPLUG_GROUP_ID>"
      }
    }
  }
}

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

Sparkplug B in other clients