industry4-mcp
MCP server that bridges industrial IoT data with conversational AI, enabling natural language queries to machine health telemetry through ChatGPT.
README
🏭 Industry 4.0 Machine Health MCP Server
Bridging the gap between Industrial IoT Data and Conversational AI
📖 Table of Contents
- 🌟 Overview
- ⚠️ Problem Statement
- 💡 Solution & AI Integration
- 🔄 Architecture & Flow
- 📂 Project Structure
- 🛠️ Available MCP Tools
- 🚀 Getting Started (Local Setup)
- 🧪 Testing via NitroStudio
- ☁️ Deployment & ChatGPT Integration
- 🔮 Future Scope
- 🤝 Community & Links
🌟 Overview
The Industry 4.0 Machine Health MCP Server is a Model Context Protocol (MCP) based application built for the NitroStack Hackathon.
It empowers factory operators and managers to interact with complex industrial telemetry data using simple natural language via ChatGPT.
Instead of navigating through complex dashboards, a user can simply ask:
"What is the current temperature of Machine 1?"
And ChatGPT will fetch the real-time data through this MCP server.
⚠️ Problem Statement
In Industry 4.0 environments, factory machines generate telemetry data such as temperature, vibration, and RPM. In production, this would typically live in a time-series database like InfluxDB.
Today, this demo runs against an in-memory PlantDatabase in industry.data.ts, which means:
- Data access is already standardized through MCP Tools
- Non-technical users can query it through ChatGPT
- The same tool contract can later target a real time-series database without changing the AI workflow
💡 Solution & AI Integration
We created an MCP Server using the NitroStack SDK. This server exposes structured tools that ChatGPT can call directly, while all machine data is served from the in-memory PlantDatabase defined in src/modules/industry/industry.data.ts.
This keeps the AI layer decoupled from storage:
- MCP Tools define the contract
PlantDatabaseacts as the current data source- A future InfluxDB connector can replace it without changing the AI workflow
🔄 Architecture & Flow
flowchart LR
A["Factory Machines / IoT Sensors"] -->|Telemetry Data| B["PlantDatabase industry.data.ts"]
B -->|In-Memory Mock Data| C["NitroStack MCP Server TypeScript"]
C -->|"@Tool Functions"| D["NitroCloud Hosted Deployment"]
D -->|Exposes Server URL| E["ChatGPT MCP Client"]
E -->|Natural Language Query| F["End User"]
style A fill:#ff9f43,color:#fff
style B fill:#54a0ff,color:#fff
style C fill:#5f27cd,color:#fff
style D fill:#00d2d3,color:#fff
style E fill:#10ac84,color:#fff
style F fill:#feca57,color:#333
Data Flow
sequenceDiagram
participant U as "User"
participant C as "ChatGPT"
participant S as "MCP Server"
participant DB as "PlantDatabase"
U->>C: "What is the health of MCH-001?"
C->>S: Calls get_machine_health tool
S->>S: Validates input with Zod
S->>DB: Reads from industry.data.ts
DB-->>S: Returns machine data
S-->>C: JSON response
C-->>U: "Machine MCH-001 is running at 72C..."
📂 Project Structure
industry4-mcp/
├── src/
│ ├── index.ts # Application bootstrap
│ ├── app.module.ts # Root application module
│ └── modules/
│ └── industry/ # Industry 4.0 module
│ ├── industry.module.ts
│ ├── industry.tools.ts # MCP Tools (get_machine_health)
│ ├── industry.prompts.ts # Plant orchestrator prompt
│ └── industry.data.ts # In-memory PlantDatabase
├── widgets/ # NitroStudio UI Widgets (Next.js)
├── package.json # Dependencies (@nitrostack/core, zod)
└── .env # Environment variables
🛠️ Available MCP Tools
The server currently exposes the following tool to the AI:
get_machine_health
| Property | Description |
|---|---|
| Purpose | Fetches current health status, temperature, and vibration level of a specific machine |
| Input | machine_id: string (e.g., "MCH-001") |
| Output | JSON object with telemetry data |
Input Schema (Zod)
{
machine_id: z.string() // e.g., "MCH-001"
}
Response Format
{
"machine_id": "MCH-001",
"temperature": 72.5,
"vibration_level": 0.45,
"health_status": "healthy",
"last_maintenance": "2026-07-15"
}
🚀 Getting Started (Local Setup)
Prerequisites
- 🟢 Node.js (v18+ required, v20.x recommended by NitroStack)
- 📦 npm or npx
Installation
# 1. Clone the repository
git clone https://github.com/AryanPROOO/industry4-mcp.git
cd industry4-mcp
# 2. Install dependencies
npm install
# 3. Start the development server
npm run dev
The server will start running locally on the default STDIO/HTTP port.
🧪 Testing via NitroStudio
NitroStudio is the official desktop IDE to test MCP servers before deploying them.
- 📥 Download & Install — Get NitroStudio from nitrostack.ai/studio
- 🔑 Sign In — Use your NitroCloud account
- ➕ Add Server — Click
Add Server→ SelectNitro Projecttab - 📁 Browse Project — Select the
industry4-mcpfolder - 🖥️ Open App Canvas — Navigate to the Studio App Canvas
- 🔧 Test Tool — Go to
Tools→ Selectget_machine_health - ▶️ Execute — Input
MCH-001and click Execute Tool
☁️ Deployment & ChatGPT Integration
Once the tool is working locally, it's time to make it live!
Step 1: Deploy to NitroCloud
- In NitroStudio, click the Deploy button in the header
- Follow the modal steps:
- 📦 Preparing bundle
- ⬆️ Uploading
- 🔨 Building
- ✅ Live
- Copy your Service URL
Step 2: Connect to ChatGPT
- Open ChatGPT (Plus/Pro account required)
- Go to Settings → Plugins (Apps) and enable Developer Mode
- Click the + (Add Plugin) button
- Select Server URL as the connection type
- Paste your Service URL and add
/sseat the end:https://xyz.nitrocloud.app/sse - Click Create and then Connect
Step 3: Talk to your Factory! 🗣️
Try asking ChatGPT:
- 💬 "What is the health of machine MCH-001?"
- 💬 "Is machine 4 running hot?"
- 💬 "Which machines need maintenance?"
🔮 Future Scope
| Feature | Description |
|---|---|
| 🗄️ Live InfluxDB Integration | Replace PlantDatabase with actual InfluxDB client queries for real time-series data |
| 🔮 Predictive Maintenance | Add tools that analyze historical data to predict machine failure |
| 🔔 Alerting System | Trigger alerts to maintenance teams if vibration exceeds threshold |
🤝 Community & Links
| Resource | Link |
|---|---|
| 📚 NitroStack Documentation | docs.nitrostack.ai |
| ☁️ NitroCloud | nitrocloud.ai |
| 💬 NitroStack Discord | Join Community |
| 🐙 NitroStack GitHub | github.com/nitrocloudofficial/nitrostack |
| 📹 YouTube | @nitrostackai |
| nitrostack-ai |
<div align="center">
Built with ❤️ for the NitroStack Hackathon 2026
Empowering Industry 4.0 with Conversational AI
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。