Industrial predictive maintenance: vibration analysis, bearing faults, ISO 20816-3
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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 8 diagnostic skills. It's designed to support and accelerate expert decision-making.
Get running in ~3 minutes. On Windows, one script wires everything into Claude Desktop β it installs the venv, pre-compiles dependencies, and writes claude_desktop_config.json for you (OneDrive / cloud-sync paths included):
Restart Claude Desktop, then try:
"Load real_train/OuterRaceFault_1.csv and check if the bearing is healthy."
Install the package:
Find the full path to uvx (which uvx on macOS/Linux, where uvx on Windows), then add to your client config β ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
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.
More options: install from source Β· VS Code setup Β· Docker / HTTPS deployment Β· use with local LLMs (Ollama)
Full diagnostic workflow: load signal β spectral analysis β fault detection β severity assessment β report generation
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 37 specialized MCP endpoints (34 tools + 3 prompts) running locally on your machine. Every signal is referenced by a single signal_id handle from load to report. Your data never leaves your infrastructure.
| Tool | Description |
|---|---|
load_signal | Load vibration file(s) (CSV, WAV, MAT, NPY, Parquet, raw binary .bin/.raw/.dat with declared decode metadata) with declared sampling rate and unit β returns the signal_id handle |
list_signals | Browse signal files on disk (scope="disk") or loaded signals in memory (scope="memory") |
get_signal_info | Signal metadata (sampling rate, duration, declared unit, source metadata) |
generate_test_signal | Create a synthetic signal, auto-registered and immediately analyzable |
clear_signals | Remove one signal or the whole in-memory cache |
| Tool | Description |
|---|---|
analyze_fft | Frequency spectrum with automatic peak detection |
analyze_envelope | Envelope analysis for bearing fault detection (default band 500β5000 Hz) |
analyze_statistics | Time-domain features (RMS, kurtosis, crest factor) |
extract_features_from_signal | Segmented statistical feature extraction |
compute_power_spectral_density | Power spectral density (Welch method) |
compute_spectrogram_stft | Time-frequency spectrogram |
| Tool | Description |
|---|---|
assess_severity | Unified ISO 20816-3 severity assessment (signal or direct RMS reading, custom thresholds) β requires a declared signal unit, never guesses |
check_bearing_faults | Unified fault-frequency matching (catalog bearing, explicit frequencies, or explicit geometry) |
diagnose_vibration | Integrated evidence-based diagnosis pipeline (one call) |
calculate_bearing_characteristic_frequencies | Expected fault frequencies from bearing geometry |
search_bearing_catalog | Look up verified, source-traced bearing geometry |
train_anomaly_model | Train novelty detection on healthy baselines |
predict_anomalies | Score a signal against a trained model (bounded output) |
| Tool | Description |
|---|---|
search_documentation | Semantic search over equipment manuals |
read_manual_excerpt | Read pages from a manual |
extract_manual_specs | Extract structured specs from PDFs |
list_machine_manuals | Browse available documentation |
| Tool | Description |
|---|---|
plot_signal | Interactive time-domain plot |
generate_fft_report | Interactive frequency analysis report |
generate_envelope_report | Envelope analysis with fault markers |
generate_iso_report | Severity zone visualization |
generate_diagnostic_report | Integrated diagnostic report, HTML and PDF, wording authored by the server |
generate_diagnostic_report_docx | Structured Word document report |
generate_pca_visualization_report | PCA anomaly projection |
generate_feature_comparison_report | Cross-signal feature comparison |
list_html_reports | Report management (list all or inspect one) |
| Tool | Description |
|---|---|
analyze_signal_trend | Within-recording screening: feature trend + degradation onset in one call |
estimate_rul | Remaining Useful Life from repeated measurements over time (linear, exponential, Kalman) β refuses single-recording extrapolation |
| Tool | Description |
|---|---|
generate_maintenance_recommendations | Maintenance recommendations from severity zone + canonical fault types |
| Prompt | Description |
|---|---|
diagnose_bearing | Complete bearing fault diagnostic decision tree |
diagnose_gear | Gear fault detection workflow |
quick_diagnostic_report | Fast health screening |
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.
Claude Code plugin: domain skills activate automatically, slash commands for quick diagnostics
| 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 |
| prognostics | Within-recording trend screening and multi-measurement RUL estimation |
| 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 |
| Command | Example |
|---|---|
/pm-diagnose | /pm-diagnose bearing_signal.csv β full fault diagnosis |
/pm-screen | /pm-screen bearing_signal.csv β quick health check |
/pm-report | /pm-report bearing_signal.csv full β generate all 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 |
The project ships with 20 real bearing vibration signals from production machinery tests β ready to use out of the box.
Try: "Load real_train/OuterRaceFault_1.csv and diagnose the bearing fault."
Full dataset documentation: data/README.md
The 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.
Standards implemented: ISO 13374 (diagnostic architecture), ISO 20816-3 (vibration severity classification), MIMOSA OSA-CBM (condition-based maintenance framework).
Key design choices:
| Guide | For |
|---|---|
| Quickstart for Engineers | Get results fast, no coding required |
| Quickstart for Developers | Understand MCP, extend the server |
| Plugin README | Claude Code plugin installation and usage |
| HTTPS Deployment | Docker + HTTPS for enterprise environments |
| Ollama Guide | Use with local LLMs (fully air-gapped) |
| Architecture | ISO 13374 block mapping and module design |
| Benchmark Methodology | How the CWRU diagnostic benchmark is measured |
| Examples | Complete diagnostic workflows |
| Installation | Detailed setup and troubleshooting |
| Contributing | How to contribute (all skill levels welcome) |
| Changelog | Version history |
86% test coverage across Windows, macOS, and Linux (Python 3.11 & 3.12).
20+ test files covering signal analysis, fault detection, severity assessment, ML models, report generation, RAG search, and real bearing fault data validation.
A blind, reproducible diagnostic-accuracy benchmark on the public CWRU Bearing Data Center dataset (12 kHz drive-end subset: 60 fault records + 4 normal baselines). Fault labels never reach the system under test β signals enter under opaque ids, a separate scorer is the only label reader, and blindness, checksum integrity, and determinism are enforced by CI-run guard tests, not prose. Results are stratified by the per-record diagnosability grades of the Smith & Randall (2015) reference study, so records that study found undiagnosable by any classical method are reported separately instead of inflating or deflating the headline.
On records the reference study grades clearly diagnosable (Y1+Y2, 44 records): characteristic fault frequency detected on 44/44, correct fault ranked first on 34/44 (77.3%), and 9/9 on the textbook-signature (Y1) stratum. On the 4 healthy baselines, 2 records raised a false indication under the same criterion.
The numbers above are read from the committed, re-runnable artifact (results.json) and drift-guarded by CI: every value is bound to its key in the artifact, and a mismatch fails the build. Methodology, blind protocol, and honest-benchmarking notes: docs/benchmark-methodology.md. Reproduce with:
signal_id handleIdeas? Open a discussion or create an issue.
I'd genuinely love to know. Whether you ran it on real machinery or just tried the sample data, drop a line in Discussions β one sentence about your machine or use case is enough. Real-world feedback directly shapes what gets built next.
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.
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.
MIT β see LICENSE. Sample data is CC BY-NC-SA 4.0 (non-commercial); for commercial use, replace with your own machinery data.
MCP Python SDK (descended from FastMCP) Β· 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.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/predictive-maintenance-mcp-server)<a href="https://allmcps.com/mcp/predictive-maintenance-mcp-server"><img src="https://allmcps.com/api/badge/predictive-maintenance-mcp-server?style=directory" alt="Predictive Maintenance MCP Server on AllMCPs" /></a>