Skip to main content
Glama

Manufacturing MCP

Proyecto de agente de IA basado en MCP (Model Context Protocol) para explorer los datos de equipos de fabración y analizar el riesgo de fallas.

Conjanto de datos

Este proyecto utiliz el AI4I 2020 Predictive Maintenance Dataset. Es un conjunto de datos sintético creando para simular los datos de mantimiento preventivo de entornos instriales realies. Contiene 10,000 observaciones de funcionamiento de equipos y 14 columnas. No hay valores perdidos.

Cada observación incluye el grao del producto, las temperaturas del aire y del proceso, la velocidad de rotación, el torque, el tiempo de use de la herramenta y, junto a elles, si se ha been lost. and el tipo de falla. Se puede sintetir a él scenarios of predictive maintenance like `Therefore it can be used in the following predictive maintenance scenros:

  • Supervisión of los estado of los equipos (Monitoring)

  • Clasificación del riesgo de fallo (Classification)

  • Detección de condiciones anómalas (Anomaly Detection)

Columnaos principales

El ssignificar and local of each child columnas ** can at datos columna document.

Muestra de datos

At below three original observas showing first 3 rows of the original CSV.

UDI

Product ID

Type

Air temperature [K]

Process temperature [K]

Rotational speed [rpm]

Torque [Nm]

Tool wear [min]

Machine fail

TWF

HDF

PWF

OSF

RNF

1

M14860

M

298.1

308.6

1551

42.8

0

0

0

0

0

0

0

2

L47181

L

298.2

308.7

1408

46.3

3

0

0

0

0

0

0

3

L47182

L

298.1

308.5

1498

49.4

5

0

0

0

0

0

0

Related MCP server: Equipment Health MCP Server

Configurationación del entorno de development

Este proyecto utiliza Python 3.12 o higher. In the root of the project under WSL Ubuntu 24.04, active the virtual environment and install the development dependencies.

source mcp/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Cree a local .env file in reference to .env.example. The actual .env that contains the real API Key is not included in Git.

cp -n .env.example .env
chmod 600 .env

After making code changes, run tests, linting and format check.

pytest
ruff check .
ruff format --check .

Currently the Python package is insrc/manufacturing_mcp, the tests are in tests. Application settings are loaded from environment variables and from .env file in src/manufacturing_mcp/config.py.

PostgresSQL execution

Run PostgresQL container with Docker Compose in the background.

docker compose up -d postgres
docker compose ps

If the postgres service state is healthy, everything is normal. To connect directly to PostgreSQL, use the following command.

docker compose exec postgres sh -c 'psql -U "$POSTGRES_USER" -d "$POSTGRES_DB"'

To end the connection, enter \q. To stop the container, use the following command.

docker compose down

PostgreSQL data is preserved in the Docker volume postgres_data, so it remains intact even when the container is stopped or recreated.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An AI agent system that monitors manufacturing equipment health using the Model Context Protocol (MCP). Enables answering natural language questions about equipment status, maintenance, and anomalies through MCP tools.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to analyze plant-floor data using OEE, Pareto, SPC, and yield-loss calculations, providing continuous-improvement insights from manufacturing data.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -