Skip to main content
Glama
wavpolish-audio-forensics

wavpolish-audio-forensics

🎚️ wavpolish-mcp — Offline Audio LUFS Loudness & Fake-Lossless Spectrogram MCP + CLI

License: MIT Node >= 18 Zero API Key

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:


Quick Start (MCP Server for Claude Desktop, Claude Code, Cursor & Windsurf)

Add to your claude_desktop_config.json or .cursor/mcp.json:

{
  "mcpServers": {
    "wavpolish-audio-forensics": {
      "command": "npx",
      "args": ["-y", "github:fourgit/wavpolish-mcp"]
    }
  }
}

Related MCP server: loudcheck

Quick Start (Command-Line CLI)

Audit any local 16/24/32-bit .wav file (or .mp3/.flac/.m4a when ffmpeg is on your PATH):

npx -y github:fourgit/wavpolish-mcp audit ./my-master.wav

Sample output:

{
  "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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Loudness compliance verdicts against formal broadcast standards (EBU R128, ATSC A/85). Measures audio/video with ffmpeg and returns a pass/fail verdict with exact deltas and remediation parameters.
      2
      20 PyPI
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Audio perception for AI agents. Measure loudness, clipping, noise and pitch; view spectrograms; split audio into events; transcribe speech; compare before/after; and clean up, edit or synthesize sound. Runs locally, no API keys.
      14
      124 PyPI
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to measure a track's loudness and peak levels, strip artifacts left by AI generators, compare mastering presets, and master single tracks or batches to streaming targets via a hosted remote server or a local stdio bridge. Tracks are supplied as public HTTPS links, with analysis, cleanup and previews free and full masters limited by a daily free quota or credits.
      9
      MIT