MCP server for Motor Current Signature Analysis β fault detection in electric motors
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Motor Current Signature Analysis.
inspect_signal_fileInspect a signal file format and metadata without loading
load_signal_from_fileLoad a current signal from CSV / WAV / NPY file β returns `signal_id
calculate_motor_paramsCompute slip, sync speed, rotor frequency from motor data
compute_fault_frequenciesCalculate expected fault frequencies for all common fault types
compute_bearing_frequenciesCalculate BPFO, BPFI, BSF, FTF from bearing geometry
preprocess_signalDC removal, filtering, normalisation, windowing pipeline β returns new `signal_id
A Model Context Protocol (MCP) server for Motor Current Signature Analysis (MCSA) β non-invasive spectral analysis and fault detection in electric motors using stator-current signals.
mcp-server-mcsa turns any LLM into a predictive-maintenance expert. By integrating advanced techniques such as Fast Fourier Transform (FFT) and envelope analysis, the system can listen to a motor's electrical signature and automatically identify mechanical and electrical anomalies β all through natural language.
MCSA is an industry-standard condition-monitoring technique that analyses the harmonic content of the stator current to detect rotor, stator, bearing, and air-gap faults in electric motors β without requiring vibration sensors, downtime, or physical access to the machine. This server brings the full MCSA diagnostic workflow to any MCP-compatible AI assistant (Claude Desktop, VS Code Copilot, and others), enabling both interactive expert analysis and automated condition-monitoring pipelines.
.npy files~/.mcsa_data/ as compressed .npz files; referenced by short IDs (sig_xxxx, spec_xxxx) to keep large arrays out of the chat context; data survives server restarts| Tool | Description |
|---|---|
inspect_signal_file | Inspect a signal file format and metadata without loading |
load_signal_from_file | Load a current signal from CSV / WAV / NPY file β returns signal_id |
calculate_motor_params | Compute slip, sync speed, rotor frequency from motor data |
compute_fault_frequencies | Calculate expected fault frequencies for all common fault types |
compute_bearing_frequencies | Calculate BPFO, BPFI, BSF, FTF from bearing geometry |
preprocess_signal | DC removal, filtering, normalisation, windowing pipeline β returns new signal_id |
compute_spectrum | Single-sided FFT amplitude spectrum β returns spectrum_id |
compute_power_spectral_density | Welch PSD estimation β returns spectrum_id |
find_spectrum_peaks | Detect and characterise peaks in a spectrum |
detect_broken_rotor_bars | BRB fault index with severity classification |
detect_eccentricity | Air-gap eccentricity detection via sidebands |
detect_stator_faults | Stator inter-turn short circuit detection |
detect_bearing_faults | Bearing defect detection from current spectrum |
compute_envelope_spectrum | Hilbert envelope spectrum for modulation analysis |
compute_band_energy | Integrated spectral energy in a frequency band |
compute_time_frequency | STFT analysis with optional frequency tracking |
generate_test_current_signal | Synthetic motor current with optional faults β returns signal_id |
run_full_diagnosis | Complete MCSA diagnostic pipeline from signal or signal_id |
diagnose_from_file | Complete MCSA diagnostic pipeline directly from file |
list_stored_data | List all signals and spectra persisted on disk |
clear_stored_data | Delete one or all stored items from disk |
| URI | Description |
|---|---|
mcsa://fault-signatures | Reference table of fault signatures, frequencies, and empirical thresholds |
| Prompt | Description |
|---|---|
analyze_motor_current | Step-by-step guided workflow for MCSA analysis |
uv is the recommended Python package manager. It handles everything (Python, packages, virtual environments) in a single tool and is used throughout the MCP ecosystem.
Windows (PowerShell):
macOS / Linux:
After installing, restart your terminal so the
uv/uvxcommands are available.
You should see the help text. That's it β no pip install needed. uvx downloads and runs the package automatically in an isolated environment.
Pick your client and add the configuration below. No other steps are required.
Open the config file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonAdd mcsa inside the mcpServers object (create the file if it doesn't exist):
Then restart Claude Desktop.
Create (or edit) .vscode/mcp.json in your workspace:
Go to Settings β MCP Servers β Add new server:
commanduvx mcp-server-mcsaIn your MCP client, try:
"Generate a test signal with a broken rotor bar fault and run a full diagnosis. Motor: 4 poles, 50 Hz, 1470 RPM."
If the server responds with a diagnostic report, you're all set.
Then configure your client with:
β οΈ Common issue on Windows: if you installed Python from the Microsoft Store, the
mcp-server-mcsacommand may not be in your PATH, causing a "server disconnected" error. In that case, find your Python path withpython -c "import sys; print(sys.executable)"and use the full path in the config:Using
uvxavoids this problem entirely.
Configure the client to point to the local repo:
Run tests:
Debug with MCP Inspector:
| Problem | Fix |
|---|---|
| "server disconnected" on Claude Desktop | Check the logs at %APPDATA%\Claude\logs\ (Windows) or ~/Library/Logs/Claude/ (macOS). Most common cause: the command in the config is not found. Use uvx to avoid PATH issues. |
uvx: command not found | Restart your terminal after installing uv. On Windows, you may need to close and reopen PowerShell. |
mcp-server-mcsa: command not found (pip) | The script wasn't added to PATH. Use python -m mcp_server_mcsa instead, or switch to uvx. |
| Server starts but tools don't appear | Make sure you restarted the MCP client after editing the config. |
Signals and spectra are persisted to disk as compressed .npz files
in ~/.mcsa_data/ (configurable via the MCSA_DATA_DIR environment
variable). This means:
sig_xxxx,
spec_xxxx) and compact summaries are returned to the LLM.Use list_stored_data to see everything on disk and clear_stored_data
to remove items.
The fastest way to analyse a measured signal is the diagnose_from_file
tool. Simply provide the file path and motor nameplate data:
"Diagnose the motor from
C:\data\motor_phaseA.csvβ 50 Hz supply, 4 poles, 1470 RPM"
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
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/motor-current-signature-analysis)<a href="https://allmcps.com/mcp/motor-current-signature-analysis"><img src="https://allmcps.com/api/badge/motor-current-signature-analysis?style=directory" alt="Motor Current Signature Analysis on AllMCPs" /></a>