L'Agora
MCPLocal

Sparkplug B

io.github.nagarjunr/sparkplug-b

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

Repository
github.com/nagarjunr/iot-mcp-servers
Version
0.1.0
Author
nagarjunr (namespace verified by the registry)
Source
Official MCP registry (updated Aug 4, 2026)

How to install it

Variables to fill in: SPARKPLUG_MQTT_HOST, SPARKPLUG_HOST_ID, SPARKPLUG_MQTT_PORT, SPARKPLUG_MQTT_USERNAME, SPARKPLUG_MQTT_PASSWORD, SPARKPLUG_MQTT_USE_TLS, SPARKPLUG_GROUP_ID.

On your machine

Claude Code

The server runs on your machine (pypi package). In a terminal:

claude mcp add sparkplug-b -e SPARKPLUG_MQTT_HOST=YOUR_SPARKPLUG_MQTT_HOST -e SPARKPLUG_HOST_ID=YOUR_SPARKPLUG_HOST_ID -e SPARKPLUG_MQTT_PORT=YOUR_SPARKPLUG_MQTT_PORT -e SPARKPLUG_MQTT_USERNAME=YOUR_SPARKPLUG_MQTT_USERNAME -e SPARKPLUG_MQTT_PASSWORD=YOUR_SPARKPLUG_MQTT_PASSWORD -e SPARKPLUG_MQTT_USE_TLS=YOUR_SPARKPLUG_MQTT_USE_TLS -e SPARKPLUG_GROUP_ID=YOUR_SPARKPLUG_GROUP_ID -- uvx [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "sparkplug-b": {
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {
        "SPARKPLUG_MQTT_HOST": "YOUR_SPARKPLUG_MQTT_HOST",
        "SPARKPLUG_HOST_ID": "YOUR_SPARKPLUG_HOST_ID",
        "SPARKPLUG_MQTT_PORT": "YOUR_SPARKPLUG_MQTT_PORT",
        "SPARKPLUG_MQTT_USERNAME": "YOUR_SPARKPLUG_MQTT_USERNAME",
        "SPARKPLUG_MQTT_PASSWORD": "YOUR_SPARKPLUG_MQTT_PASSWORD",
        "SPARKPLUG_MQTT_USE_TLS": "YOUR_SPARKPLUG_MQTT_USE_TLS",
        "SPARKPLUG_GROUP_ID": "YOUR_SPARKPLUG_GROUP_ID"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sparkplug-b": {
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {
        "SPARKPLUG_MQTT_HOST": "YOUR_SPARKPLUG_MQTT_HOST",
        "SPARKPLUG_HOST_ID": "YOUR_SPARKPLUG_HOST_ID",
        "SPARKPLUG_MQTT_PORT": "YOUR_SPARKPLUG_MQTT_PORT",
        "SPARKPLUG_MQTT_USERNAME": "YOUR_SPARKPLUG_MQTT_USERNAME",
        "SPARKPLUG_MQTT_PASSWORD": "YOUR_SPARKPLUG_MQTT_PASSWORD",
        "SPARKPLUG_MQTT_USE_TLS": "YOUR_SPARKPLUG_MQTT_USE_TLS",
        "SPARKPLUG_GROUP_ID": "YOUR_SPARKPLUG_GROUP_ID"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "sparkplug-b": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {
        "SPARKPLUG_MQTT_HOST": "YOUR_SPARKPLUG_MQTT_HOST",
        "SPARKPLUG_HOST_ID": "YOUR_SPARKPLUG_HOST_ID",
        "SPARKPLUG_MQTT_PORT": "YOUR_SPARKPLUG_MQTT_PORT",
        "SPARKPLUG_MQTT_USERNAME": "YOUR_SPARKPLUG_MQTT_USERNAME",
        "SPARKPLUG_MQTT_PASSWORD": "YOUR_SPARKPLUG_MQTT_PASSWORD",
        "SPARKPLUG_MQTT_USE_TLS": "YOUR_SPARKPLUG_MQTT_USE_TLS",
        "SPARKPLUG_GROUP_ID": "YOUR_SPARKPLUG_GROUP_ID"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.nagarjunr/sparkplug-b on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.nagarjunr/sparkplug-b on L’Agora](https://lagora.dev/badge/io.github.nagarjunr/sparkplug-b.svg?lang=en)](https://lagora.dev/en/entry/io.github.nagarjunr/sparkplug-b)

HTML

<a href="https://lagora.dev/en/entry/io.github.nagarjunr/sparkplug-b"><img src="https://lagora.dev/badge/io.github.nagarjunr/sparkplug-b.svg?lang=en" alt="io.github.nagarjunr/sparkplug-b on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

Azure IoT Hub Local

AWS IoT Core Local

MQTT Local

Eclipse Ditto Local

Report this entry