Sparkplug B MCP Server
by nagarjunrio.github.nagarjunr/sparkplug-bv0.1.0
MCP server for Sparkplug B: node/device discovery, metrics, commands, host state over MQTT.
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install Sparkplug B MCP server
Install in Claude Code
claude mcp add sparkplug-b -e SPARKPLUG_MQTT_HOST='<sparkplug-mqtt-host>' -e SPARKPLUG_HOST_ID='<sparkplug-host-id>' -e SPARKPLUG_MQTT_PASSWORD='<sparkplug-mqtt-password>' -- uvx sparkplug-b-mcp-serverInstall in Cursor
{
"mcpServers": {
"sparkplug-b": {
"command": "uvx",
"args": [
"sparkplug-b-mcp-server"
],
"env": {
"SPARKPLUG_MQTT_HOST": "<sparkplug-mqtt-host>",
"SPARKPLUG_HOST_ID": "<sparkplug-host-id>",
"SPARKPLUG_MQTT_PASSWORD": "<sparkplug-mqtt-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"sparkplug-b": {
"command": "uvx",
"args": [
"sparkplug-b-mcp-server"
],
"env": {
"SPARKPLUG_MQTT_HOST": "<sparkplug-mqtt-host>",
"SPARKPLUG_HOST_ID": "<sparkplug-host-id>",
"SPARKPLUG_MQTT_PASSWORD": "<sparkplug-mqtt-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"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_PASSWORD": "<sparkplug-mqtt-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"sparkplug-b": {
"command": "uvx",
"args": [
"sparkplug-b-mcp-server"
],
"env": {
"SPARKPLUG_MQTT_HOST": "<sparkplug-mqtt-host>",
"SPARKPLUG_HOST_ID": "<sparkplug-host-id>",
"SPARKPLUG_MQTT_PASSWORD": "<sparkplug-mqtt-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SPARKPLUG_MQTT_HOST | yes | — | MQTT broker hostname or IP. |
| SPARKPLUG_HOST_ID | yes | — | This connector's Sparkplug Host Application ID (used in the spBv1.0/STATE/{id} topic). |
| SPARKPLUG_MQTT_PORT | — | — | MQTT broker port, default 1883 |
| SPARKPLUG_MQTT_USERNAME | — | — | Broker username, if required |
| SPARKPLUG_MQTT_PASSWORD | — | yes | Broker password, if required |
| SPARKPLUG_MQTT_USE_TLS | — | — | true/false, default false |
| SPARKPLUG_GROUP_ID | — | — | Restrict discovery/watching to a single Sparkplug Group ID; omit to subscribe to every group |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-04 · 2mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-08-04 · 2mo ago · official registry · v0.1.0
FAQ
›How do I install the Sparkplug B MCP server in Claude Code?
Run: claude mcp add sparkplug-b -e SPARKPLUG_MQTT_HOST='<sparkplug-mqtt-host>' -e SPARKPLUG_HOST_ID='<sparkplug-host-id>' -e SPARKPLUG_MQTT_PASSWORD='<sparkplug-mqtt-password>' -- uvx sparkplug-b-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Sparkplug B require an API key?
Yes. It expects SPARKPLUG_MQTT_HOST, SPARKPLUG_HOST_ID, SPARKPLUG_MQTT_PASSWORD, of which 1 is a secret.
›Can I use Sparkplug B as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Sparkplug B in the official MCP registry?
Yes, as io.github.nagarjunr/sparkplug-b.
Alternatives to Sparkplug B
Other data & analytics MCP servers.