realtime-bpm-analyzer-mcp

v0.1.5
realtime-bpm-analyzer-mcp Checked 17 hours ago Published 4 days ago

A local MCP server that gives an assistant (Claude Desktop, Claude Code, any MCP client) the BPM of audio files on your disk.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_file Analyse the BPM of an audio file

Detects the tempo (BPM) of one audio file on this computer. Reads MP3, WAV, FLAC, OGG Vorbis and Opus (bundled decoders), plus M4A/AAC, AIFF and WMA through ffmpeg when it is installed. Returns the best tempo, the estimated chance it is right, the ranked candidates and the engine that ran. Files over 100 MB or 2048 MB of decoded audio (202 minutes at 44.1 kHz) are refused. A file that takes longer than 120 seconds is given up on. Runs on this computer: the audio is never uploaded.

ParameterTypeDescription
path *stringPath of the audio file. Absolute, or starting with ~ for the home folder.
enginestringTempo engine (default tempogram). The tempogram searches min_bpm..max_bpm instead of folding into it, so from about twice min_bpm a tempo can read half, as over about 179 BPM does by default. peaks fo…
max_bpmnumberHighest tempo to report, in BPM (default 180). Must be at least twice min_bpm. Any range other than 90 to 180 gives confidence null (unmeasured).
min_bpmnumberLowest tempo to report, in BPM (default 90). The peaks engine folds tempos by octaves into min_bpm..max_bpm, the tempogram searches that range. Any range other than 90 to 180 gives confidence null (un…

analyze_folder Analyse the BPM of every audio file in a folder

Detects the tempo (BPM) of the audio files in a folder on this computer, in path order. Reads MP3, WAV, FLAC, OGG Vorbis and Opus (bundled decoders), plus M4A/AAC, AIFF and WMA through ffmpeg when it is installed. Analyses at most 50 files per call: when next_offset is not null, call again with offset set to it for the next files. With recursive, walks sub-folders up to 16 levels deep and reads at most 10000 folder entries. Symbolic links to folders are not followed, and a link to a file outside the folder is refused. A file that cannot be read or decoded, or is over 100 MB or 2048 MB of decod…

ParameterTypeDescription
directory *stringPath of the folder. Absolute, or starting with ~ for the home folder.
enginestringTempo engine (default tempogram). The tempogram searches min_bpm..max_bpm instead of folding into it, so from about twice min_bpm a tempo can read half, as over about 179 BPM does by default. peaks fo…
max_bpmnumberHighest tempo to report, in BPM (default 180). Must be at least twice min_bpm. Any range other than 90 to 180 gives confidence null (unmeasured).
min_bpmnumberLowest tempo to report, in BPM (default 90). The peaks engine folds tempos by octaves into min_bpm..max_bpm, the tempogram searches that range. Any range other than 90 to 180 gives confidence null (un…
offsetintegerIndex of the first file to analyse, from a previous call's next_offset (default 0)
recursivebooleanAlso analyse sub-folders (default false)