Sparkplug MCP Server
Click on "Install 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 Servershow 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.
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.

This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/emqx/uns-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server