Skip to content
Grok

Sparkplug B for Grok

io.github.nagarjunr/sparkplug-b

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

client:Grok transport:stdio runtime:pypi

Install Sparkplug B in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Sparkplug B in other clients