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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.