Sparkplug B MCP server
MCP server for Sparkplug B: node/device discovery, metrics, commands, host state over MQTT.
0 stars12 downloads/wk
Reviews
Write oneNobody has reviewed Sparkplug B yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Sparkplug B tools (13, 3 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_connection_statusReport this connector's connection to the MQTT broker and its Sparkplug Host Application identity.
get_device_metricsGet the latest known metric values for a Device (from its DBIRTH/DDATA messages).
get_eventsDrain buffered Sparkplug events collected by a watch session.
get_node_metricsGet the latest known metric values for an Edge Node (from its NBIRTH/NDATA messages).
list_devicesList Sparkplug Devices discovered via DBIRTH/DDEATH messages since this connector started.
list_edge_nodesList Sparkplug Edge Nodes discovered via NBIRTH/NDEATH messages since this connector started.
list_watchesList all active watch sessions on this connector.
request_node_rebirthAsk an Edge Node to republish its full NBIRTH (the standard 'Node Control/Rebirth' command).
send_device_commandwrite actionSend a DCMD to a Sparkplug Device to write one or more of its metrics.
send_node_commandwrite actionSend an NCMD to a Sparkplug Edge Node to write one or more of its metrics.
set_host_onlinewrite actionPublish this connector's own Sparkplug Host Application STATE message.
start_watchStart watching Sparkplug B traffic (births, deaths, data, commands, host states).
stop_watchStop a watch session and discard its buffered events.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan4 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 50 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Sparkplug B compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 57% of 48,273 servers
- Tools
- 13
- the typical server has 7
- Tools that change things
- 23%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 12
- more than 3% of 11,915 servers with a package
What its tools let an agent do: 8 read · 1 change · 2 send or post · 2 run or deploy
Install Sparkplug B in Claude Code, Cursor or VS Code
claude mcp add sparkplug-b -- uvx sparkplug-b-mcp-server
What the publisher says
From the Sparkplug B repository's README, as published. We do not edit it. Read it on GitHub
IoT MCP Servers
MCP (Model Context Protocol) servers for IoT platforms — giving AI agents full read/write access to device registries, digital twins, and telemetry.
Servers
Each row links to that server's README for its full tool list, required environment variables, and setup/testing notes.
Structure
Each server is a standalone directory under this repo — its own pyproject.toml, uv.lock, Dockerfile, and mcp.json example config. No shared library layer: every server is independently runnable and dockerizable.
<server-name>/
├── <server-name>mcpserver.py # FastMCP server (single file)
├── pyproject.toml # own dependencies
├── uv.lock
├── Dockerfile
├── mcp.json # example MCP client config
└── README.md # tools, env vars, setup for this serverRequirements
- Python 3.12+
- uv for dependency management and running servers
- Docker, only if you want to run a server's own test suite against a real/emulated instance (see that server's README)
Quick start
Install straight from PyPI with uv or pipx — no clone needed:
uvx eclipse-ditto-mcp-server # or: mqtt5-mcp-server / aws-iot-core-mcp-server / azure-iot-hub-mcp-server / sparkplug-b-mcp-serverOr run from a clone of this repo:
git clone https://github.com/nagarjunr/iot-mcp-servers.git
cd iot-mcp-servers/<server-name>
uv sync
uv run <server-name>mcpserver.pyEach server reads its configuration from environment variables (connection strings, broker host, credentials, etc.) — see that server's README for the full list.
Using with an MCP client
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Sparkplug B: common questions
- Is Sparkplug B MCP server safe?
- Mostly: it is graded B (78/100). Read the Sparkplug B safety report
- How do I install Sparkplug B?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Sparkplug B need an API key?
- Yes. The registry entry asks for
SPARKPLUG_MQTT_PASSWORD. - Is Sparkplug B maintained?
- The last commit was 90 days ago (2026-08-04). The latest release is v0.1.0.
- How does Sparkplug B compare with other MCP servers?
- safety score 78/100 (higher than 57% of 48,273 servers); tools 13 (the typical server has 7); tools that change things 23% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.