# Motor Current Signature Analysis

An MCP server that reads stator-current signals and flags rotor, bearing and stator faults from the spectrum.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9
- Author: LGDiMaggio
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/LGDiMaggio/mcp-motor-current-signature-analysis
- Updated: 2026-05-29
- HTML: https://affpapa.org/en/nevibecode/mcp/motor-current-signature-analysis

## What it does

The server inspects stator current for signs of damage: broken rotor bars, air-gap eccentricity, stator inter-turn shorts, bearing defects. It ships 21 tools covering slip and fault-frequency math from nameplate data, FFT spectra, Welch PSD, Hilbert envelope demodulation and STFT. One call to `run_full_diagnosis` walks the whole chain and returns a severity class — healthy, incipient, moderate or severe.

Signals come from CSV, TSV, WAV and `.npy` files. Big arrays stay out of the chat context: they land in `~/.mcsa_data/` as compressed `.npz` and come back as short IDs like `sig_xxxx` and `spec_xxxx`, surviving a server restart. A synthetic-signal generator with configurable fault injection is there for demos.

It runs through `uvx`, so there is no separate package install. You need `uv` on the machine — without it the `uvx` command is not found, and you should restart the terminal after installing it. Quick check: `uvx mcp-server-mcsa --help`.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-server-mcsa -- uvx mcp-server-mcsa
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-mcsa <command>

### Codex

**Platform CLI**
```bash
codex mcp add motor-current-signature-analysis -- uvx mcp-server-mcsa
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-mcsa <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "motor-current-signature-analysis": {
            "command": "uvx",
            "args": [
                "mcp-server-mcsa"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-mcsa <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "motor-current-signature-analysis": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "mcp-server-mcsa"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-mcsa <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add motor-current-signature-analysis uvx mcp-server-mcsa
```
uvx runs the command named after the package; if the README names another one, use uvx --from mcp-server-mcsa <command>

## When to use it
- spot broken rotor bars in a recorded stator-current signal
- derive bearing defect frequencies from geometry
- strip DC offset and filter a signal before spectral work
- grade fault severity from healthy through severe
- build a synthetic signal with a chosen fault for benchmarking

## Example prompts
- Load the signal from `current.csv` and compute the FFT spectrum
- Motor: 4 poles, 50 Hz, 1470 RPM. Generate a signal with a broken rotor bar and run a full diagnosis
- Compute bearing defect frequencies BPFO, BPFI, BSF and FTF from the geometry

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107701
- [Agent Skills Search Server](https://affpapa.org/en/nevibecode/mcp/agent-skills-search-server.md) — MCP server · ★ 26673
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23283
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [PraisonAI](https://affpapa.org/en/nevibecode/mcp/praisonai.md) — MCP server · ★ 9298

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
