Sparkplug MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sparkplug MCP Server show me the current temperature and humidity from sensor-01"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overview
This project demonstrates a Sparkplug B (SPB) implementation featuring a chat-based interface for industrial IoT monitoring and control. It combines a Sparkplug MCP server with a web application that allows users to query device data, analyze historical metrics, and monitor device status through natural language interactions. The system supports both real-time monitoring and historical analysis of device metrics, making it ideal for industrial automation and IoT applications.
Related MCP server: Industrial-AIops
Architect diagram

Setup workspace
Follow the steps below to set up and run the application:
Clone the Repository
git clone https://github.com/emqx/uns-demo/
cd uns-demoThe project use
uvto manage libs and project, please install uv before getting start.Some dependencies need to be compiled through cmake, please install cmake before getting start.
Install Dependencies and Activate Virtual Environment
uv sync
uv venvPre-conditions
Install software and configurations
Please refer to software preparation.
Run the application
Steps
Copy
.env.exampleto.envand modify the values accordingly.Run sparkplug mcp server
uv run spb_server.pyRun biz mcp server
uv run biz_app.pyRun main application
uv run main.pyOpen http://localhost:8000/ in browser.
Type questions in the chatbox.
Demos
Refer to doc for detailed demo scenarios.

Available Tools
4 toolsaddA
Add two numbers together.
Args:
a: First number
b: Second number
Returns:
The sum of a and b
Inputs: a (required), b (required).
divideA
Divide the first number by the second.
Args:
a: Numerator
b: Denominator
Returns:
The result of a / b
Inputs: a (required), b (required).
multiplyA
Multiply two numbers together.
Args:
a: First number
b: Second number
Returns:
The product of a and b
Inputs: a (required), b (required).
subtractA
Subtract the second number from the first.
Args:
a: Number to subtract from
b: Number to subtract
Returns:
The result of a - b
Inputs: a (required), b (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool performs a distinct arithmetic operation (addition, subtraction, multiplication, division) with no functional overlap.
All tool names are single lowercase verbs describing the operation, following a consistent and predictable pattern.
Four tools cover the core arithmetic operations without being excessive or insufficient for the server's purpose.
The tool set provides the four basic arithmetic operations, completely covering the expected functionality for simple numeric calculations.
Related MCP Connectors
Ask about your IoT sensors, devices, anomalies and automations, switch outputs and log values.
Query, explore, and manage your databases through natural conversation.
Query Allen-Bradley, Siemens and CODESYS V3 PLC projects, live tags and analyses in plain English.
Ask questions in plain language, get answers from your business database. No SQL required.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI agents to OPC UA-enabled industrial systems for real-time monitoring and control of operational data. It enables users to read, write, and browse industrial device nodes through natural language interactions.MIT
- AlicenseBqualityBmaintenanceProvides AI agents with safe, governed read access to industrial control systems (OPC-UA, Modbus, S7, Mitsubishi, MTConnect, MQTT/Sparkplug) plus cross-protocol diagnostics for troubleshooting data breaks, alarm floods, and unhealthy tags.15713MIT
- FlicenseNot gradedqualityDmaintenanceEnables engineers and plant managers to interact with manufacturing systems using natural language, providing machine health analysis, KPI dashboards, predictive maintenance, and automated workflow execution via MCP.-
- AlicenseAqualityDmaintenanceMCP server that bridges industrial IoT data with conversational AI, enabling natural language queries to machine health telemetry through ChatGPT.6MIT