API & MCP
Everything a person can do on Audio Spectrum Analyzer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://soundscapespectrumanalyzer.usefulweb.site/api/v1/calculate– run Audio Spectrum AnalyzerGET https://soundscapespectrumanalyzer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Audio Spectrum Analyzer
Analyses an audio file (WAV directly; MP3, FLAC, Ogg, M4A and AIFF are decoded with ffmpeg first): averaged FFT spectrum chart, the strongest peak frequencies, spectral centroid and roll-off, spectral slope, RMS, peak, crest factor, DC offset, clipped samples, octave-band levels and a waveform overview.
| Field | Type | Default | Description |
|---|---|---|---|
file (required) | file | — | Audio file. WAV (PCM 8/16/24/32-bit or float), or MP3, FLAC, Ogg/Opus, M4A, AIFF; max 50 MB, the first 10 minutes are analysed. Files are processed in a private temporary folder and not kept. |
fftSize | select (1024, 2048, 4096, 8192, 16384) | "4096" | FFT size. Larger = finer frequency resolution (sample rate ÷ size), fewer averaged frames. |
window | select (hann, hamming, rectangular) | "hann" | Window |
peaks | integer | 5 | Peaks to list |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://soundscapespectrumanalyzer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
soundscape_spectrum_analyzer - Local stdio connector:
node src/mcp-stdio.ts --tool=soundscape-spectrum-analyzer
{
"mcpServers": {
"soundscape-spectrum-analyzer": { "type": "http", "url": "https://soundscapespectrumanalyzer.usefulweb.site/mcp" }
}
}