factory-supervisor-mcp
This server provides 18 specialized tools for real-time factory operations management across system health, machine management, inventory, production, maintenance, KPIs & analytics, predictive intelligence, and AI supervisor assistance. Key capabilities include:
System Health: Check server health with
ping.Machine Management: List all machines and their states (
listMachines) and get detailed telemetry for a specific machine (getMachineStatus).Inventory: View current stock levels (
getInventory) and identify items at or below reorder thresholds (getLowStockItems).Production: Retrieve active orders (
getOrders) and the master production schedule (getProductionSchedule).Maintenance: Access historical and active maintenance logs (
getMaintenanceLogs).KPIs & Analytics: Get key performance indicators like OEE and uptime (
getFactoryKPIs), and generate consolidated factory reports with health scores, risk analysis, and recommendations (analyzeFactory).Predictive Intelligence: Predict machine failure probability and recommended actions (
predictMachineFailure); forecast inventory stockout dates and reorder quantities (forecastInventory); estimate order completion times and delay risks (estimateOrderCompletion); detect production bottlenecks (detectProductionBottlenecks); and forecast factory health trends (predictFactoryHealth).AI Supervisor: Ask natural language questions for automatic analytics routing (
factoryCopilot), generate daily supervisor briefings with top risks (dailySupervisorBrief), and executive summaries with revenue exposure (executiveSummary).
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., "@factory-supervisor-mcp Analyze factory health and predict any failures for tomorrow"
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.
Factory Supervisor MCP Server
An enterprise-grade Model Context Protocol (MCP) server and interactive supervisory dashboard built with NitroStack, Node.js, Express, and React for real-time factory operations management, telemetry analysis, predictive maintenance, material forecasting, order estimation, and AI supervisor copilot capabilities.
Overview
The Factory Supervisor MCP Server connects AI assistants (such as Claude Desktop, Cursor, Antigravity, or custom MCP clients) directly to industrial shop floor telemetry, equipment diagnostics, inventory levels, maintenance schedules, and production orders.
Featuring 10 modular domains and 18 specialized MCP tools alongside an Express REST API and a React + Tailwind Control Center UI, operators and AI assistants can perform diagnostic checks, detect bottlenecks, forecast equipment failures, calculate risk exposure, and interact via natural language to maintain optimal factory productivity.
Related MCP server: Industrial MCP Agent Platform
Key Features
Dual Architecture -- Serves as a standard Model Context Protocol (MCP) server over Stdio transport as well as a full Express REST API and Web Control Center UI.
Real-Time Analytics and Scoring -- Automated numeric health scoring (0-100), machine severity assessment, inventory stockout warnings, and risk exposure calculations.
Predictive Machine Intelligence -- Risk models for failure prediction, material depletion forecasting, bottleneck detection, and order completion estimation.
AI Supervisor Copilot -- Natural language prompt routing, daily supervisor shift briefings, and executive financial summaries.
Web Control Center UI -- Built with Vite, React 18, TailwindCSS, Lucide icons, and Framer Motion for telemetry visualization and AI interaction.
Modules and Tools Reference
Module | MCP Tool Name | Description | Key Inputs |
Health |
| System diagnostic health check ping. | None |
Machines |
| List all factory machines and operational state. | None |
| Get detailed telemetry and job info for a specific machine. |
| |
Inventory |
| Get current stock levels for all parts and reorder points. | None |
| Retrieve inventory items at or below reorder threshold. | None | |
Orders |
| Retrieve active factory production orders and progress. | None |
Maintenance |
| Retrieve historical and active maintenance logs. | None |
Schedule |
| Fetch master production schedule and operational windows. | None |
KPI |
| Retrieve key operational performance indicators (OEE, Uptime, Quality). | None |
Analytics |
| Consolidated factory report with health score, severity levels, risk assessment, and recommendations. | None |
Prediction |
| Predict failure probability, time window, and recommended actions based on vibration and temperature telemetry. |
|
| Predict stockout dates, days remaining, and recommended reorder quantities. |
| |
| Estimate completion time, delay risk, and confidence score for an order. |
| |
| Identify capacity, downtime, and material starvation bottlenecks across all domains. | None | |
| Forecast overall factory health score trends (Today vs. Tomorrow). | None | |
Assistant |
| AI Supervisor assistant routing natural language questions to appropriate analytics and predictive tools. |
|
| Concise daily shift briefing highlighting top risks and priority actions. | None | |
| High-level executive performance summary, financial risk exposure, and strategic guidance. | None |
Project Architecture
factory-supervisor-mcp/
├── src/
│ ├── index.ts Entry point and Express REST API
│ ├── app.module.ts Root AppModule importing 10 feature modules
│ ├── ai/ LLM Provider and MCP Client Integration
│ ├── mock/ Mock telemetry data JSON files
│ └── modules/ 10 MCP Feature Modules
│ ├── analytics/ Consolidated factory analysis
│ ├── assistant/ Copilot, shift brief and executive tools
│ ├── health/ System ping and health checks
│ ├── inventory/ Stock levels and low-stock detection
│ ├── kpi/ OEE, Uptime and Quality metrics
│ ├── machines/ Telemetry and status tools
│ ├── maintenance/ Maintenance history and logs
│ ├── orders/ Work orders and progress tracking
│ ├── prediction/ Prediction tools
│ └── schedule/ Production schedule data
├── ui/ Web Control Center (React + Vite + Tailwind)
│ ├── src/ Dashboard components, APIs, and state
│ └── index.html UI entry point
├── package.json Scripts and dependencies
├── run.bat Batch launcher for Backend + Frontend
├── run-server.bat Batch launcher for MCP Server
└── README.mdQuick Start
Prerequisites -- Node.js v18+ and npm v9+.
Clone the repository and install dependencies:
git clone https://github.com/Heytish-V/factory-supervisor-mcp.git
cd factory-supervisor-mcp
npm installCopy .env.example to .env:
cp .env.example .envOptionally configure your OpenAI API key in .env for LLM Copilot capabilities:
OPENAI_API_KEY=your_openai_api_key_here
REST_PORT=3001One-Click Launcher (Windows) -- Run run.bat to build the project, launch the backend on port 3001, start the frontend on port 5173, and open the browser automatically.
run.batDevelopment Mode -- Start the backend and frontend separately:
npm run dev # Terminal 1: Backend MCP server
npm run ui:dev # Terminal 2: Frontend dashboardProduction Build -- Compile TypeScript, sync mock data, and build UI assets:
npm run build
npm startREST API Endpoints
When running the Express REST API (port 3001 by default), the following endpoints are available:
GET /health-- Diagnostic health check.POST /chat-- Natural language interaction with the Factory Supervisor AI Copilot.GET /api/tools/:toolNameorPOST /api/tools/:toolName-- Direct execution of any of the 18 MCP tools.
MCP Client Integration
Add this MCP server to your MCP client configuration (such as Claude Desktop, Cursor, or Antigravity):
{
"mcpServers": {
"factory-supervisor": {
"command": "node",
"args": ["C:/projecctttt/factory-supervisor-mcp/dist/index.js"]
}
}
}Example Prompts
When interacting through the web UI or an MCP client, try these sample queries:
"What is the overall health score of the factory right now?"
"Are any CNC machines at risk of failing in the next 24 hours?"
"Which inventory items are currently below reorder thresholds?"
"Will order ORD-2026-001 complete on time or experience delays?"
"Generate a daily supervisor shift briefing for the current shift."
"Provide an executive summary of factory performance and financial risk exposure."
License
Private / Enterprise Proprietary
Available Tools
18 toolsanalyzeFactoryB
Consolidates data across all factory modules (machines, inventory, orders, maintenance, schedule, KPIs) and generates severity levels, health score (0-100), natural language summary, risk classification, impact score, and recommendations.
Inputs: no named parameters.
dailySupervisorBriefA
Generates a concise daily supervisor briefing highlighting overall factory health, top operational risks, and priority actions.
Inputs: no named parameters.
detectProductionBottlenecksA
Detects active and impending production bottlenecks across machines, inventory, and shifts.
Inputs: no named parameters.
estimateOrderCompletionB
Estimates completion time, confidence score, and delay risk for a given production order.
Inputs: orderId (required).
executiveSummaryA
Provides a high-level executive summary of factory performance, revenue exposure risk, and recommended strategic decisions.
Inputs: no named parameters.
factoryCopilotA
Natural language AI supervisor assistant that routes user questions to appropriate analytics and predictive MCP tools to generate actionable answers.
Inputs: question (required).
forecastInventoryB
Forecasts stockout date, days remaining, inventory risk level, and recommended reorder quantity for inventory parts.
Inputs: partId.
getFactoryKPIsA
Get key performance indicators (KPIs) for the factory
Inputs: no named parameters.
getInventoryA
Get total inventory stock levels for all parts
Inputs: no named parameters.
getLowStockItemsA
Get inventory items where available stock is at or below reorder level
Inputs: no named parameters.
getMachineStatusA
Get status details for a specific machine by machineId
Inputs: machineId (required).
getMaintenanceLogsA
Get factory maintenance logs and history
Inputs: no named parameters.
getOrdersB
Get factory production orders
Inputs: no named parameters.
getProductionScheduleB
Get factory production schedule
Inputs: no named parameters.
listMachinesA
List all factory machines and their current state
Inputs: no named parameters.
pingB
Diagnostic health check ping tool for Factory Supervisor MCP Server
Inputs: no named parameters.
predictFactoryHealthA
Predicts overall factory health score trends for today and tomorrow based on operational indicators.
Inputs: no named parameters.
predictMachineFailureA
Predicts failure probability, health score, estimated failure time window, and recommended actions for a machine based on sensor telemetry.
Inputs: machineId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have clearly distinct purposes: inventory, machines, orders, maintenance, schedule, KPIs. However, the five high-level analytics/summary tools (analyzeFactory, predictFactoryHealth, factoryCopilot, dailySupervisorBrief, executiveSummary) could be confused due to overlapping outputs like health scores and recommendations, though their descriptions partially clarify target audiences.
The naming pattern is largely consistent with verb-first camelCase (getInventory, listMachines, predictMachineFailure, etc.). Exceptions like factoryCopilot, dailySupervisorBrief, executiveSummary, and ping deviate from this pattern, but they remain readable and semantically descriptive.
Eighteen tools is slightly above the typical 3-15 well-scoped range, but each tool maps to a distinct aspect of factory supervision (status reads, predictions, forecasts, summaries). The count feels justified for the broad domain, though it is on the heavier side.
The tool set covers all major factory modules (machines, inventory, orders, maintenance, schedule, KPIs) with both operational reads and predictive analytics. Minor gaps include per-order detail retrieval or explicit shift/employee data, but these are not critical for the supervisor role.
Related MCP Connectors
Connect AI assistants to your Tedix organization’s tasks, knowledge, apps, and results through MCP.
Connect e-commerce and marketing data to AI assistants via MCP.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to monitor and analyze industrial process data from DCS/SCADA systems via MCP protocol, with domain expert knowledge for anomaly detection and recommendations.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for integrating manufacturing systems (MES/ERP/quality/maintenance) with LLM agents, enabling event ingestion, incident triage, approval workflows, and RAG-based knowledge retrieval.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage logistics operations including orders, shipments, tracking, and warehouse management through standardized MCP tools.-
- 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.-