wavpolish-audio-forensics
by fourgit
README.md
# 🎚️ wavpolish-mcp — Offline Audio LUFS Loudness & Fake-Lossless Spectrogram MCP + CLI
[](./LICENSE)
[](https://nodejs.org)
[-blue)](https://wavpolish.com/loudness-penalty?ref=github-mcp&utm_medium=readme&utm_campaign=mcp)
**`wavpolish-mcp`** is a zero-dependency Node.js Model Context Protocol (MCP) server and CLI for **objective audio release quality control**. Everything runs **100% offline on your machine** with zero API keys and zero file uploads:
1. **ITU-R BS.1770-4 Loudness & True Peak (`dBTP`)**: Exact K-weighted gated Integrated LUFS, 3-second Short-Term Max LUFS, 4x Catmull-Rom Hermite inter-sample True Peak, and Crest Dynamic Range.
2. **Streaming & Podcast Loudness Penalty Calculator**: Exact playback gain adjustments (`dB`) and pass/fail checks for **Spotify (`-14 LUFS`)**, **YouTube (`-14 LUFS`)**, **Apple Music (`-16 LUFS`)**, and **Broadcast Podcasts (`-16 LUFS / -1.5 dBTP`)**.
3. **16 kHz Fake-Lossless WAV & AI Harshness FFT Detector**: 1024-point Hann-windowed Radix-2 FFT spectral scan that catches `128 kbps` MP3s re-saved as fake `24-bit` WAVs (`<= 16.0 kHz` brickwall shelf) and flags `3.8–7.2 kHz` neural vocoder metallic sibilance.
> **Prefer a visual browser meter?** Try the free zero-upload WebAudio tools directly:
> - [Free Online LUFS & Loudness Penalty Analyzer](https://wavpolish.com/loudness-penalty?ref=github-mcp&utm_medium=readme&utm_campaign=mcp)
> - [Free 0–24 kHz 2D Audio Spectrogram & Fake-Lossless Checker](https://wavpolish.com/audio-spectrogram?ref=github-mcp&utm_medium=readme&utm_campaign=mcp)
> - [WavPolish 24-Bit WAV Mastering & 6-Stem Studio](https://wavpolish.com/?ref=github-mcp&utm_medium=readme&utm_campaign=mcp)
---
## Quick Start (MCP Server for Claude Desktop, Claude Code, Cursor & Windsurf)
Add to your `claude_desktop_config.json` or `.cursor/mcp.json`:
```json
{
"mcpServers": {
"wavpolish-audio-forensics": {
"command": "npx",
"args": ["-y", "github:fourgit/wavpolish-mcp"]
}
}
}
```
---
## Quick Start (Command-Line CLI)
Audit any local `16/24/32-bit` `.wav` file (or `.mp3/.flac/.m4a` when `ffmpeg` is on your `PATH`):
```bash
npx -y github:fourgit/wavpolish-mcp audit ./my-master.wav
```
Sample output:
```json
{
"file": "/Users/producer/my-master.wav",
"loudness": {
"durationSec": 184.2,
"sampleRate": 48000,
"channels": 2,
"integratedLufs": -9.4,
"shortTermMaxLufs": -7.8,
"truePeakDbtp": 0.3,
"crestDynamicRangeDb": 8.9,
"penalties": {
"spotifyNormalDb": -4.6,
"youtubeDb": -4.6,
"appleMusicSoundCheckDb": -6.6,
"podcastBroadcastDb": -6.6,
"truePeakClippingRisk": true,
"podcastCompliancePass": false,
"streamingCompliancePass": false
}
},
"spectral": {
"nyquistKhz": 24,
"effectiveCutoffKhz": 15.8,
"verdict": "fake_lossless_mp3_transcode_cutoff",
"isFakeLosslessSuspect": true,
"aiHarshnessBandRatioDb": -1.4,
"isAiHarshnessSuspect": true
}
}
```
---
## Included MCP Tools
| Tool Name | Description |
|---|---|
| `audit_audio_loudness` | Measure local audio Integrated LUFS, Short-Term Max, 4x True Peak (`dBTP`), Dynamic Range, and platform penalties |
| `detect_fake_lossless_and_ai_harshness` | 1024-point Hann FFT scan flagging `16 kHz` MP3 transcode shelves and `3.8–7.2 kHz` metallic vocal harshness |
| `calculate_streaming_penalty` | Zero-file calculator returning Spotify, YouTube, Apple Music, and Podcast gain adjustments from any LUFS/dBTP pair |
| `recommend_mastering_chain` | Output concrete EQ, de-harshing, compression, and True Peak ceiling chains for streaming, AI songs, EDM, or podcasts |
## License
MIT © [WavPolish](https://wavpolish.com/?ref=github-mcp&utm_medium=readme&utm_campaign=mcp)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues