Predictive Maintenance MCP Server
Allows the MCP server to be used with local LLMs (via Ollama) for predictive maintenance diagnostics, keeping data local and avoiding cloud dependency.
Click on "Install 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., "@Predictive Maintenance MCP ServerCheck if bearing is healthy from vibration data"
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.
Predictive Maintenance MCP Server
Give any AI assistant the ability to analyze vibration data, detect machinery faults, and generate professional diagnostic reports — through natural conversation.
An open-source MCP server and predictive maintenance AI agent that turns LLMs into condition monitoring assistants. Engineers describe what they need in plain language; the AI calls the right analysis tools and delivers results — bearing fault detection, risk assessment, anomaly detection, and remaining useful life estimation. Also available as a Claude Code plugin with 7 diagnostic skills. It's designed to support and accelerate expert decision-making.
Quick Start
pip install predictive-maintenance-mcpWindows — automatic setup (recommended):
Clone the repo and run the setup script — it installs the venv, pre-compiles dependencies, and writes claude_desktop_config.json automatically (handles OneDrive/cloud-sync paths too):
git clone https://github.com/LGDiMaggio/predictive-maintenance-mcp.git
cd predictive-maintenance-mcp
.\setup_claude.ps1Manual config (Windows / macOS / Linux):
Find the full path to uvx on your system (where uvx on Windows, which uvx on macOS/Linux), then add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"predictive-maintenance": {
"command": "/full/path/to/uvx",
"args": ["predictive-maintenance-mcp"],
"env": { "UV_LINK_MODE": "copy" }
}
}
}Why the full path? Claude Desktop launches servers with a minimal
PATHthat often omits user-local tool directories (e.g.~/.local/bin). Using the full path touvxavoids a silent "command not found" failure. On Windows the typical path isC:\Users\<you>\.local\bin\uvx.exe.
Restart Claude Desktop. You're ready — try: "Load real_train/OuterRaceFault_1.csv and check if the bearing is healthy."
More options: install from source · VS Code setup · Docker / HTTPS deployment · use with local LLMs (Ollama)
See It in Action
What Can It Do?
Upload a vibration signal → get a professional diagnosis through conversation.
You say | The AI does |
"Is this bearing healthy?" | Loads the signal, runs spectral analysis, checks for fault patterns, classifies severity |
"Generate a full diagnostic report" | Produces an interactive HTML report with charts, fault markers, and severity assessment |
"Extract specs from test_pump_manual.pdf and diagnose the signal" | Reads the equipment manual, looks up the bearing model, calculates expected fault frequencies, matches them against the signal |
"Train an anomaly detector on my healthy baselines, then flag anomalies" | Trains a machine learning model on normal data, scores new signals, highlights outliers |
The AI doesn't guess — it calls 52 specialized MCP endpoints (46 tools, 2 resources, 4 prompts) running locally on your machine. Your data never leaves your infrastructure.
Signal Acquisition (7 tools + 2 resources)
Endpoint | Type | Description |
| Tool | Load vibration file (CSV, WAV, MAT, NPY, Parquet) |
| Tool | Browse available signal files with metadata |
| Tool | List cached signals in memory |
| Tool | Signal metadata (sampling rate, duration, stats) |
| Tool | Create synthetic signals for testing |
| Tool | Cache management |
| Resource | Browse all signal files |
| Resource | Read signal metadata |
Spectral & Statistical Analysis (10 tools)
Tool | Description |
| Frequency spectrum with automatic peak detection |
| Envelope analysis for bearing fault detection |
| Time-domain features (RMS, kurtosis, crest factor) |
| Power spectral density (Welch method) |
| Time-frequency spectrogram |
| 17+ statistical and spectral features |
| Envelope spectrum computation |
| Visualization tools (3 tools) |
Diagnostics & Health Assessment (14 tools)
Tool | Description |
| Compute expected fault frequencies from bearing geometry |
| Detect peaks at fault frequencies |
| Multi-fault detection (inner/outer/ball/cage) |
| Integrated evidence-based diagnosis pipeline |
| Look up bearing specs by model number |
| Catalog lookup + frequency calculation |
| Vibration severity assessment (4 severity zones) |
| Health classification |
| Train novelty detection on healthy baselines |
| Score new signals for anomalies |
| Semantic search over equipment manuals |
| Extract specs from PDFs (2 tools) |
| Browse available documentation |
Reporting (9 tools)
Tool | Description |
| Interactive frequency analysis report |
| Envelope analysis with fault markers |
| Severity zone visualization |
| Structured Word document report |
| 2D/3D anomaly projection |
| Cross-signal feature comparison |
| ISO 20816 severity zone chart |
| Report management (2 tools) |
Prognostics (3 tools)
Tool | Description |
| Remaining Useful Life estimation (linear, exponential, Weibull, Kalman) |
| Trend detection on feature time series (increasing/decreasing/stable) |
| Baseline deviation detection for early degradation warning |
Decision Support (3 tools)
Tool | Description |
| ISO 10816 vibration severity alert classification (zones A/B/C/D) |
| Custom threshold-based vibration alerting |
| Context-aware maintenance recommendations from diagnosis |
Guided Workflows (4 prompts + 2 resources)
Prompt | Description |
| Complete bearing fault diagnostic decision tree |
| Gear fault detection workflow |
| Fast health screening |
| ISO-compliant diagnostic report generation |
Claude Code Plugin
The project includes a plugin for Claude Code with domain-specific skills that activate automatically during conversation. Install it and Claude gains guided diagnostic workflows, autonomous agents, and quick commands.
/plugin marketplace add LGDiMaggio/predictive-maintenance-mcp
/plugin install predictive-maintenance@predictive-maintenance-marketplaceSkills (7) — activate automatically based on context
Skill | What it does |
bearing-diagnosis | Walks through a complete bearing fault diagnostic workflow |
gear-diagnosis | Gear fault detection via spectral pattern analysis |
quick-screening | 30-second vibration health check |
report-generation | Professional HTML and Word report generation |
anomaly-detection | Train and run ML-based anomaly detection models |
signal-management | Load, inspect, and manage vibration signals |
documentation-search | Search equipment manuals and bearing catalogs |
Agents (2) — run autonomously for complex tasks
Agent | What it does |
diagnostic-pipeline | End-to-end: load signal → spectral analysis → fault detection → severity assessment → report |
signal-explorer | Explore and compare multiple signals, find outliers, characterize patterns |
Commands (3) — quick entry points
Command | Example |
|
|
|
|
|
|
Reports
All analysis tools generate interactive HTML reports you can open in any browser — pan, zoom, hover for details. Also supports structured Word (.docx) exports.


Report Type | What it shows |
Frequency spectrum | Peak detection, harmonic markers |
Envelope analysis | Bearing fault frequency matching |
Severity assessment | Vibration health zones (ISO 20816-3) |
Word document | Full diagnostic narrative with embedded charts |
PCA visualization | Multi-signal anomaly clustering |
Feature comparison | Side-by-side signal feature analysis |
Sample Data Included
The project ships with 20 real bearing vibration signals from production machinery tests — ready to use out of the box.
Training set: 2 healthy baselines + 12 fault signals (inner race, outer race)
Test set: 1 healthy baseline + 5 fault signals
Try: "Load real_train/OuterRaceFault_1.csv and diagnose the bearing fault."
Full dataset documentation: data/README.md
Architecture
YOU (natural language)
│
v
LLM (Claude, GPT, Ollama...)
understands intent, selects tools
│
v ── Model Context Protocol ──
┌──────────────────────────────┐
│ Predictive Maintenance │
│ MCP Server │
│ │
│ Signal Analysis Reports │
│ Fault Detection ML │
│ Severity Rating RAG Docs │
└──────────────────────────────┘
│
v
YOUR DATA (stays local)
signals · manuals · modelsThe codebase follows a modular architecture organized around the ISO 13374 Six-Block Diagnostic standard — signal acquisition, processing, diagnostics, prognostics, and decision support as separate sub-packages.
src/predictive_maintenance_mcp/
├── mcp_tools/ # MCP endpoint registration (52 MCP endpoints)
│ ├── acquisition_tools.py # Signal loading & management
│ ├── analysis_tools.py # Spectral & statistical analysis
│ ├── diagnostics_tools.py # Fault detection, ML, document search
│ ├── report_tools.py # HTML/DOCX report generation
│ ├── prompts.py # Guided diagnostic workflows
│ └── _utils.py # Shared utilities
├── signal_acquisition/ # Multi-format loaders (CSV, MAT, WAV, NPY, Parquet)
├── signal_processing/ # Spectral analysis & feature extraction
├── diagnostics/ # Bearing/gear analysis, ISO standards
├── decision_support/ # Evidence-based diagnosis pipeline
├── prognostics/ # RUL estimation (linear, exponential, Weibull) & trend analysis
├── rag.py # Document indexing & search (FAISS/TF-IDF)
├── models.py # Pydantic data models
├── server.py # FastMCP server entry point
└── config.py # Configuration managementStandards implemented: ISO 13374 (diagnostic architecture), ISO 20816-3 (vibration severity classification), MIMOSA OSA-CBM (condition-based maintenance framework).
Key design choices:
Privacy-first — raw vibration data never leaves your machine; only computed results flow to the LLM
LLM-agnostic — works with Claude, ChatGPT, Microsoft Copilot Studio, or any MCP-compatible client. Use Ollama for fully air-gapped deployments
Modular — use only the tools you need, extend with your own
Documentation
Guide | For |
Get results fast, no coding required | |
Understand MCP, extend the server | |
Claude Code plugin installation and usage | |
Docker + HTTPS for enterprise environments | |
Use with local LLMs (fully air-gapped) | |
ISO 13374 block mapping and module design | |
Complete diagnostic workflows | |
Detailed setup and troubleshooting | |
How to contribute (all skill levels welcome) | |
Version history |
Testing
86% test coverage across Windows, macOS, and Linux (Python 3.11 & 3.12).
pytest # run all tests
pytest --cov=src --cov-report=html # with coverage report20+ test files covering signal analysis, fault detection, severity assessment, ML models, report generation, RAG search, and real bearing fault data validation.
Roadmap
52 MCP endpoints (43 tools, 1 resource, 4 prompts) with modular architecture
Claude Code plugin (7 skills, 2 agents, 3 commands)
86% test coverage, CI/CD on 3 platforms
Docker + SSE/HTTP transport for enterprise deployment
Semantic document search (FAISS + TF-IDF)
Customizable severity thresholds
Remaining useful life (RUL) estimation models (linear, exponential, Weibull degradation)
Trend analysis and degradation onset detection
Multi-signal trending and historical comparison
Real-time streaming (MQTT/Kafka)
Fleet dashboard for multi-asset monitoring
CMMS integration (SAP, Maximo, Infor)
Ideas? Open a discussion or create an issue.
Related
claude-stwinbox-diagnostics — Extends this project by connecting a physical edge sensor (STEVAL-STWINBX1) to Claude via MCP, with Claude Skills for guided condition monitoring. Same analysis engine, real hardware, operator-friendly reports.
Contributing
Contributions welcome from everyone — not just programmers. Domain experts, technical writers, and testers are equally valued. See CONTRIBUTING.md for paths tailored to your background.
Quick start: browse Issues for good first issue or help wanted labels.
Citation
@software{dimaggio_predictive_maintenance_mcp_2025,
title = {Predictive Maintenance MCP Server},
author = {Di Maggio, Luigi Gianpio},
year = {2025},
version = {0.8.0},
url = {https://github.com/LGDiMaggio/predictive-maintenance-mcp},
doi = {10.5281/zenodo.17611542}
}License
MIT — see LICENSE. Sample data is CC BY-NC-SA 4.0 (non-commercial); for commercial use, replace with your own machinery data.
Acknowledgments
FastMCP framework · Model Context Protocol by Anthropic · Sample data from MathWorks · Core development assisted by Claude
An open-source predictive maintenance AI agent and condition monitoring copilot — built to support reliability engineers and the developer community.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LGDiMaggio/predictive-maintenance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server