factory-supervisor-mcp

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.

Category
Visit Server

README

Factory Supervisor MCP Server

NitroStack Protocol TypeScript Status

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.
  • [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 analyzeFactory tool 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.
  • [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).
  • [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).
  • [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).

šŸ› ļø 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured