factory-supervisor-mcp
Enables AI assistants to manage factory operations through MCP, providing tools for real-time telemetry, predictive maintenance, inventory forecasting, order estimation, and AI supervisor copilot capabilities.
README
Factory Supervisor MCP Server
An enterprise-grade Model Context Protocol (MCP) server built with NitroStack 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.
With 10 modular domains and 16 specialized MCP tools, AI assistants can perform diagnostic checks, detect bottlenecks, forecast equipment failures, calculate risk exposure, and answer natural language questions about factory performance.
🚀 Implementation Roadmap (Phases 1 – 6 Complete)
- [x] Phase 1: Core System & Infrastructure Setup
- Integrated NitroStack application structure (
@McpApp,@Module). - Implemented health check and diagnostic ping tool (
ping). - Designed mock telemetry dataset schemas for machines, inventory, orders, maintenance, schedule, and KPIs.
- Integrated NitroStack application structure (
- [x] Phase 2: Domain Data Tools
- Built core tools for Machines, Inventory, Production Orders, Maintenance Logs, Schedules, and KPIs.
- Implemented schema validation with Zod and graceful fallback reading mechanisms.
- [x] Phase 3: Consolidated Factory Analytics
- Built
analyzeFactorytool consolidating data across all 6 factory domains. - Implemented automated machine severity scoring, inventory low-stock detection, numeric health scoring (0-100), and business impact estimation.
- Built
- [x] Phase 4: Predictive AI & Machine Intelligence
- Developed predictive modeling tools for machine failure risk (
predictMachineFailure), stockout forecasting (forecastInventory), order completion estimation (estimateOrderCompletion), bottleneck detection (detectProductionBottlenecks), and health score trends (predictFactoryHealth).
- Developed predictive modeling tools for machine failure risk (
- [x] Phase 5: AI Supervisor Copilot & Executive Reporting
- Implemented natural language routing copilot (
factoryCopilot). - Created operational shift briefing tool (
dailySupervisorBrief) and C-suite summary tool (executiveSummary).
- Implemented natural language routing copilot (
- [x] Phase 6: Full Integration, Multi-Agent Skills & Production Readiness
- Integrated all 10 modules into root
AppModule. - Configured multi-agent developer skills (
.agents/skills,.gemini/skills,.antigravity/skills,.claude/skills,.cursor/skills,.codex/skills,.copilot/skills,.opencode/skills). - Automated build script to sync mock data artifacts to production distributions (
dist/mock).
- Integrated all 10 modules into root
🛠️ Modules & Tools Reference
| Module | MCP Tool Name | Description | Key Inputs |
|---|---|---|---|
| Health | ping |
System diagnostic health check ping. | None |
| Machines | listMachines |
List all factory machines and operational state. | None |
getMachineStatus |
Get detailed telemetry and job info for a specific machine. | machineId (string) |
|
| Inventory | getInventory |
Get current stock levels for all parts. | None |
getLowStockItems |
Retrieve inventory items at or below reorder threshold. | None | |
| Orders | getOrders |
Retrieve active factory production orders. | None |
| Maintenance | getMaintenanceLogs |
Retrieve historical and active maintenance logs. | None |
| Schedule | getProductionSchedule |
Fetch master production schedule. | None |
| KPI | getFactoryKPIs |
Retrieve key operational performance indicators (OEE, Uptime). | None |
| Analytics | analyzeFactory |
Consolidated factory report with health score, severity levels, risk assessment, and recommendations. | None |
| Prediction | predictMachineFailure |
Predict failure probability, time window, and recommended actions based on vibration/temp telemetry. | machineId (string) |
forecastInventory |
Predict stockout dates, days remaining, and recommended reorder quantities. | partId (optional string) |
|
estimateOrderCompletion |
Estimate completion time, delay risk, and confidence score for an order. | orderId (string) |
|
detectProductionBottlenecks |
Identify capacity, downtime, and material starvation bottlenecks. | None | |
predictFactoryHealth |
Forecast overall factory health score trends (Today vs. Tomorrow). | None | |
| Assistant | factoryCopilot |
AI Supervisor assistant routing natural language questions to appropriate analytics and predictive tools. | question (string) |
dailySupervisorBrief |
Concise daily shift briefing highlighting top risks and priority actions. | None | |
executiveSummary |
High-level executive performance summary and revenue exposure risk. | None |
📂 Project Architecture
my-mcp-server/
├── factory-supervisor-dashboard/ # Enterprise Next.js 14 Web Frontend
│ ├── app/ # App Router Pages (Dashboard, Copilot, Machines, Inventory, Predictions, Timeline, Executive)
│ ├── components/ # Modular React UI Components
│ ├── services/ # Decoupled MCP API Service Layer
│ └── types/ # TypeScript interfaces
├── src/
│ ├── index.ts # Server entry point & NitroStack application bootstrap
│ ├── app.module.ts # Root AppModule importing all 10 feature modules
│ ├── mock/ # Mock telemetry data JSON files
│ └── modules/ # 10 MCP Feature Modules
├── package.json # Root build scripts
└── README.md # Project documentation
⚡ Quick Start
1. Prerequisites
- Node.js: v18.0.0 or higher
- npm: v9.0.0 or higher
2. Installation
Clone the repository and install dependencies:
git clone https://github.com/Heytish-V/factory-supervisor-mcp.git
cd factory-supervisor-mcp
npm install
3. Environment Configuration
Copy .env.example to .env:
cp .env.example .env
4. Running in Development Mode
Start the development server with hot-reloading:
npm run dev
5. Building & Running in Production Mode
Build the project (compiles TypeScript and syncs mock data to dist/mock):
npm run build
npm start
🔌 MCP Client Integration
Add this MCP server to your MCP client configuration (e.g. Claude Desktop, Cursor, or Antigravity):
Stdio Transport Config (Local Execution)
{
"mcpServers": {
"factory-supervisor": {
"command": "node",
"args": ["c:/Users/Heytish V/my-mcp-server/dist/index.js"]
}
}
}
💬 Example Natural Language Prompts
Once connected to an MCP client, try asking your AI assistant:
- "What is the current health score of the factory?"
- "Are any CNC machines at risk of failing in the next 24 hours?"
- "Will we be able to complete order ORD-2026-001 on time?"
- "Give me a daily supervisor briefing for today's shift."
- "Should we accept a new rush order right now?"
📄 License
Private / Enterprise Proprietary
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。