Skip to main content
Glama

cuebox

UGC music discovery, variant lineage, and FFmpeg audio cueing CLI (cue) + MCP (cue-mcp) for AI video editing agents.

Zero third-party Python dependencies (pure Python 3.10+ stdlib + ffmpeg/ffprobe).

Features

  • Pluggable UGC Providers: Ships with Audius (public API, zero API key required, native Remix lineage) and Local audio folder/file scanning; ready for SoundCloud, YouTube, and TikTok URL adapters.

  • Cross-Platform Variant Lineage (SQLite): Automatically normalizes titles and classifies variants (original, cover, remix, slowed_reverb, sped_up, piano, orchestral, instrumental, phonk, lofi, mashup) under a shared work_id.

  • FFmpeg Audio Analysis & Cueing: Measures duration, integrated LUFS, true peak, and highest-energy Hook Window, then trims/loops with fade-in/fade-out and loudness normalization (-14 LUFS, etc.).

  • Dual Interface: Same core service exposed as cue CLI (human-readable + --json) and cue-mcp (standard JSON-RPC 2.0 MCP stdio server).

Related MCP server: mcp-daw

Quick Start

Requires Python 3.10+ and ffmpeg / ffprobe on PATH.

uv venv .venv
uv pip install --python .venv/bin/python -e .

CLI (cue)

# Search UGC tracks on Audius (zero API key needed)
.venv/bin/cue search "cyberpunk phonk" --limit 5

# Filter by variant, duration, or vocals
.venv/bin/cue search "piano cover" --variant piano --duration 30-240 --json

# Discover remixes & cross-platform variants of the same work
.venv/bin/cue versions audius:<track_id>

# Import a remote track (downloads audio + analyzes LUFS & hook window) or local folder
.venv/bin/cue import audius:<track_id>
.venv/bin/cue import ./my-music-folder

# Clip 15s starting at the detected high-energy hook window with fades and -14 LUFS
.venv/bin/cue clip audius:<track_id> -o clip.wav --hook --duration 15 --fade-in 0.3 --fade-out 1.5 --lufs -14

MCP Server (cue-mcp)

Add to Claude Desktop, Cursor, or Antigravity MCP config:

{
  "mcpServers": {
    "cuebox": {
      "command": "/path/to/cuebox/.venv/bin/cue-mcp"
    }
  }
}

Exposed tools:

  • music_search — multi-provider & local search with variant/BPM/duration/vocals filters

  • music_versions — find variants/remixes sharing the same work lineage

  • music_related — discover related tracks

  • music_preview — return stream/page URLs and metadata

  • music_import — download remote track or scan local files into SQLite

  • music_analyze — measure duration, LUFS, true peak, and hook window

  • music_clip — FFmpeg trim/loop/fade/LUFS export

Development

.venv/bin/python -m unittest discover -s tests -v

License

MIT — see LICENSE.

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
      Not graded
      quality
      C
      maintenance
      Enables AI agents to create and edit Strudel music code, render offline WAV audio, and obtain structured hearing reports with waveform, spectrogram, BPM, and onset analysis.
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to build songs by editing a JSON song model: searching a licence-tagged sample library, adding step-pattern and time-stretched loop tracks, setting gain/pan, describing songs, and rendering them to 44.1 kHz WAV/MP3 with release-safety warnings. Songs and renders are read from and written to a project root, so an agent can go from empty project to finished track through MCP tool calls.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to perform deterministic, sample-accurate music production, DJ mixing, audio editing, stem separation, and loudness mastering through non-destructive timeline operations and structured MCP tools.
      Mozilla Public 2.0
    • A
      license
      C
      quality
      B
      maintenance
      Enables AI agents to compose and edit full songs—chords, drums, bass lines, melodies, and lyrics—with built-in instruments, effects, mixing, mastering, previews, and mix analysis. It also supports importing/exporting audio and MIDI and running local or API-backed generative audio workflows.
      95
      2
      MIT