Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP server for Motor Current Signature Analysis — fault detection in electric motors
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"mcsa": {
"command": "uvx",
"args": [
"mcp-server-mcsa"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add mcsa -- uvx mcp-server-mcsaวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"mcsa": {
"command": "uvx",
"args": [
"mcp-server-mcsa"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"mcsa": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-mcsa"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub LGDiMaggio ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.1) เข้า registry 9 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Draugr
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
After installing, restart your terminal so the
uv/uvxcommands are available.
uvx mcp-server-mcsa --help
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):
{
"mcpServers": { "mcsa": { "command": "uvx", "args": ["mcp-server-mcsa"] } } }
Then restart Claude Desktop.
Create (or edit) .vscode/mcp.json in your workspace:
{
"servers": { "mcsa": { "command": "uvx", "args": ["mcp-server-mcsa"] } } }
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.
Alternative: install with pip (not recommended — see note)
pip install mcp-server-mcsa
Then configure your client with:
{
"mcpServers": { "mcsa": { "command": "python", "args": ["-m", "mcp_server_mcsa"] } } }
⚠️ 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:
`json
{
"mcpServers": {
"mcsa": {
"command": "C:/Users/YOU/AppData/Local/.../python.exe",
"args": ["-m", "mcp_server_mcsa"]
}
}
}
`
Using
uvxavoids this problem entirely.
Alternative: install from source (for development)
git clone https://github.com/LGDiMaggio/mcp-motor-current-signature-analysis.git
cd mcp-motor-current-signature-analysis uv sync --dev
Configure the client to point to the local repo:
{
"mcpServers": { "mcsa": { "command": "uv", "args": ["--directory", "/absolute/path/to/mcp-motor-current-signature-analysis", "run", "mcp-server-mcsa"] } } }
Run tests:
uv run pytest
Debug with MCP Inspector:
uv run mcp dev src/mcp_server_mcsa/server.py
| 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.~/.mcsa_data/
signals/ sig_a1b2c3d4.npz ← loaded from CSV sig_e5f6g7h8.npz ← generated test signal spectra/ spec_i9j0k1l2.npz ← FFT result
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"
The server loads the file, preprocesses the signal, computes the spectrum, runs all fault detectors, and returns a complete JSON report with severity-classified results.
"Load the signal from
measurement.wav" → returnssignal_id: sig_a1b2
or: "Generate a test signal with a broken-rotor-bar fault" →
sig_c3d4
"Calculate motor parameters for a 4-pole motor, 50 Hz supply, running at 1470 RPM"
"What are the expected fault frequencies for this motor?"
"Preprocess signal sig_a1b2" → returns new
signal_id: sig_e5f6
"Compute the FFT spectrum of sig_e5f6" → returns
spectrum_id: spec_g7h8
"Check for broken rotor bars in spec_g7h8"
"Compute the envelope spectrum of sig_e5f6"
The run_full_diagnosis tool runs the entire pipeline on a stored signal in a single call:
Input: signal_id + motor nameplate data
Output: complete report with fault severities and recommendations
For bearing fault analysis, you need the bearing geometry (number of balls, ball diameter, pitch diameter, contact angle). The server will:
| Format | Extensions | Sampling Rate |
|---|---|---|
| CSV / TSV | .csv, .tsv, .txt | From time column or user-supplied |
| WAV | .wav | Embedded in header |
| NumPy | .npy | User-supplied |
Sidebands at $(1 \pm 2s) \cdot f_s$ where $s$ is slip and $f_s$ is supply frequency. Severity is classified by the dB ratio of sideband to fundamental amplitude.
ตัดมาแค่ช่วงต้น อ่านต่อใน repo