Sonicmatch logo

Sonicmatch

Analyze video mood and pace, then recommend license-safe BGM with a mix spec.

Install Sonicmatch

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sonicmatch": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/js713-lab/sonic-match-mcp.git",
        "sonicmatch-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio sonicmatch -- uvx --from git+https://github.com/js713-lab/sonic-match-mcp.git sonicmatch-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx --from git+https://github.com/js713-lab/sonic-match-mcp.git sonicmatch-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Tools12

What Sonicmatch lets your agent do. Expand a tool for its parameters.

Self-reported~226 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 60d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · sonicmatch-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars153Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed12Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

Sonicmatch

CI PyPI License: MIT MCP Registry Python 3.10+

Video-native MCP server for license-safe BGM. Watches the footage — not the script — and returns a shortlist, a 12–20s hook, and an ffmpeg ducking spec.

Sonicmatch — video in, license-safe BGM out. Ingest, Analyze, Match, Mix.

Package / CLI: sonicmatch-mcp. A Model Context Protocol server for Claude Desktop, Cursor, Codex, and other MCP clients. Drop an Instagram Reel, YouTube Short, or TikTok-style clip. Get royalty-free / Creative Commons matches with the license printed on every row.

Video-to-BGM already exists. The wedge is not “I also match music”:

  • it watches the footage, not the script
  • it returns a hook window + ffmpeg ducking spec
  • it is agent-native
  • it prints the license instead of lying

Catalog quality will kill or save this. More tools will not.

Code
Video or URL in
  → scene / mood / pace / speech analysis
  → license-safe BGM shortlist
  + beat/cut hints
  + optional mix preview

Do not treat this as “script in → YouTube Music search out.” That already exists (mcp-bgm-recommender). Sonicmatch watches the video.

You ownYou do not own
Local file / public URL ingestPlatform music licenses
Mood, energy curve, speech vs silence, scene cutsMeta/TikTok “trending audio” graph
CC / royalty-free catalogs + optional paid adaptersSpotify / IG official libraries
Ranked tracks, preview URLs, mix spec, ffmpegAuto-publish to Instagram

North star: ingest_video → analyze_video_music → recommend_bgm → preview_mix → export_mix_spec

License warning (read this)

  • The code is MIT.
  • Every track has its own license. It is printed on every recommendation.
  • Nothing here is an official Instagram sticker, TikTok Commercial Music Library track, or YouTube Audio Library API result.
  • Do not recommend commercial pop unless the adapter is explicitly a user-owned licensed library.
  • CC-BY still needs attribution. CC-BY-NC is not ok for ads / shops. Non-commercial tracks are never auto-recommended.
  • For ads / shops, wire a user-owned Artlist / Epidemic JSON (examples/user_library.example.json). Do not scrape those sites.
  • Content ID can still hit you if you point at the wrong source. A CC label is not a waiver.

Demo

I dropped ./clip.mp4. Analyze it for an Instagram Reel and recommend 5 instrumental BGMs. Then mix the top pick with ducking and give me the ffmpeg command.

That prompt is the product. Install below, wire Claude Desktop, Cursor, or Codex, and paste it.

Quick start

Requires Python 3.10+ and ffmpeg / ffprobe on PATH. yt-dlp is optional and off by default (SONICMATCH_ALLOW_YTDLP=0) because platform extractors break and may violate ToS. Prefer a local file.

The PyPI project is sonicmatch-mcp. The console script is sonicmatch-mcp, which is what uvx and pipx run. python -m sonicmatch is the same server. The PyPI badge stays empty until the first tag is published. Install from git until then. Maintainer steps: PUBLISH.md.

Works today (git)

bash
uvx --from git+https://github.com/js713-lab/sonic-match-mcp.git sonicmatch-mcp
Terminal
pip install git+https://github.com/js713-lab/sonic-match-mcp.git
sonicmatch-mcp --version   # or: python -m sonicmatch --version

After the first PyPI release

bash
uvx sonicmatch-mcp
# or
pipx install sonicmatch-mcp
sonicmatch-mcp --version

From a clone (editable + tests)

bash
git clone https://github.com/js713-lab/sonic-match-mcp.git
cd sonic-match-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env   # optional keys

# stdio (Claude Desktop / Cursor / Codex)
sonicmatch-mcp

# streamable HTTP (web editors). No authentication. Keep it on loopback.
sonicmatch-mcp --http --port 8765
bash
# same clone, uv
uv venv && uv pip install -e ".[dev]"
uv run sonicmatch-mcp
bash
pytest          # generates tiny color mp4s with ffmpeg
ruff check src tests

The seed catalog is about 20 Reel-editor rows (cafe, product, talking-head, travel, food, fashion, event) plus a vocal fixture and a CC-BY-NC fixture. It runs without API keys. Gemini, Jamendo, and Freesound are optional and degrade with a note in the tool response. Seed rows have no hosted audio on purpose — preview_mix synthesizes a demo bed. For real ads, point SONICMATCH_LIBRARY_PATH / EPIDEMIC_LIBRARY_PATH / ARTLIST_LIBRARY_PATH at JSON you already licensed.

VariableRequiredWhat it does
GEMINI_API_KEYnoGemini video understanding for analyze_video_music
JAMENDO_CLIENT_IDnoJamendo search
FREESOUND_API_KEYnoFreesound beds and loops
SONICMATCH_LIBRARY_PATHnoUser-owned library JSON. Also EPIDEMIC_LIBRARY_PATH, ARTLIST_LIBRARY_PATH
SONICMATCH_ALLOW_YTDLPno1 turns on platform URL ingest. Default 0
SONICMATCH_MAX_DOWNLOAD_MBnoDownload cap. Default 200
SONICMATCH_HTTP_HOST / SONICMATCH_HTTP_PORTno--http bind. Default 127.0.0.1:8765

Features

  • Watches the picture. Gemini video understanding when GEMINI_API_KEY is set; otherwise local ffmpeg / audio heuristics (optional Whisper, PySceneDetect, librosa).
  • License on every row. CC / royalty-free / user-owned library. Non-commercial tracks are never auto-recommended. Generated beds stay out of auto recs.
  • Editor-shaped output. 12–20s hook in/out, speech ducking, ffmpeg recipe, mix spec for CapCut / Premiere / DaVinci / your agent.
  • Agent-native MCP. stdio for Claude Desktop and Cursor; streamable HTTP for web editors. Never ships raw multi-MB video through the payload — you get an asset_id.
  • Works without API keys. 20-track seed catalog for Reels. Optional Jamendo, Freesound, and user-owned Artlist / Epidemic JSON.
  • Cuts on the beat. suggest_cuts snaps scene cuts to a BPM grid and returns EDL-ish intro / peak / outro.
  • Brand lock. Save BPM / mood / no-vocals kits and pass brand_kit=… into recommend_bgm.
  • Series, not one-offs. analyze_batch (max 20) clusters mood and returns one shared mini-playlist.
  • Honest about closed graphs. No fake “trending audio,” official IG stickers, or Content-ID-safe stamps. yt-dlp platform ingest is opt-in.

Tools

ToolWhat it does
statusffmpeg / keys / seed count / day-1 risk gates
ingest_videoLocal path or HTTPS URL → asset_id (never video bytes). Platform URLs need SONICMATCH_ALLOW_YTDLP=1
analyze_video_musicMood, energy curve, speech, scenes, hook window, BPM, search queries
recommend_bgm3–7 ranked tracks + why + license + hook in/out
search_musicFree-text / BPM / mood over seed + optional catalogs
get_trackOne track’s metadata, license, attribution, URLs
preview_mixHook trim, loop, optional ducking → preview files + ffmpeg + mix spec
export_mix_specMix spec + ffmpeg + attribution (no render unless render=true)
suggest_cutsBeat grid, snapped scene cuts, EDL, intro / peak / outro
generate_bedDemo bed marked source=generated. Requires i_understand_not_commercially_cleared=true
save_brand_kitPersist BPM / moods / no-vocals for recommend_bgm(brand_kit=…)
analyze_batchUp to 20 clips → mood cluster + shared mini-playlist

Also ships a prompt template: “Score this video like an IG music sticker.”

Product rules (Instagram-like, not Instagram)

  • Prefer instrumental when speech_coverage > 0.25
  • Recommend a hook window, not the whole song
  • Show why (cuts at 0.8s average, 112 BPM, warm gold hour)
  • Always return license + attribution text
  • 3–7 tracks, not 40
  • User can override mood / genre / no-lyrics / platform / energy
  • Never claim “cleared for Instagram official sticker” unless it actually is

Example

Prompt:

I dropped ./clip.mp4. Analyze it for an Instagram Reel and recommend 5 instrumental BGMs. Then mix the top pick with ducking and give me the ffmpeg command.

The agent should call, in order:

  1. ingest_video with the local path. The result is an asset_id, not video bytes.
  2. analyze_video_music with platform_hint set to instagram_reel.
  3. recommend_bgm with that asset_id and max_results of 5.
  4. preview_mix on the top track with ducking, then export_mix_spec.

A recommendation row carries score, reason, suggested_in_out (the hook), ducking, license_ok_for_platform, and content_id_risk (unknown or likely, never cleared). Seed fixtures include seed_golden_hour_latte (CC0-1.0) and seed_indie_porch_110 (CC-BY-4.0). They have no hosted audio. preview_mix synthesizes a demo bed. CC-BY-NC rows are searchable and are not auto-recommended.

Claude Desktop

claude_desktop_config.json. From git, no clone:

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sonicmatch

Sonicmatch is an MCP server that analyzes video footage for mood, pace, speech, silence, and scene cuts, then recommends license-safe background music. It returns ranked tracks with licenses, hook windows, beat/cut hints, and an ffmpeg ducking or mix specification for workflows using Claude Desktop, Cursor, or other MCP clients.

Install Sonicmatch with Python 3.10+ and ffmpeg/ffprobe available on PATH, then run `pip install git+https://github.com/js713-lab/sonic-match-mcp.git` followed by `sonicmatch-mcp`. You can also use `uvx`, run it from a clone, or start streamable HTTP with `sonicmatch-mcp --http --port 8765`.

Sonicmatch accepts local video files and public URLs. Local files are preferred; URL extraction through `yt-dlp` is optional and disabled by default with `SONICMATCH_ALLOW_YTDLP=0`.

Sonicmatch returns video analysis, a ranked shortlist of background music, license information for each track, a 12–20-second hook window, beat and cut hints, and an optional mix preview or ffmpeg ducking specification.

Sonicmatch prints each track’s license but does not guarantee platform clearance or commercial-use rights. CC-BY tracks require attribution, CC-BY-NC tracks are not suitable for ads or shops, and commercial libraries should be connected through a user-owned licensed library rather than scraped.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSonicmatch AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sonicmatch?style=directory)](https://allmcps.com/mcp/sonicmatch)
HTML Embed
<a href="https://allmcps.com/mcp/sonicmatch"><img src="https://allmcps.com/api/badge/sonicmatch?style=directory" alt="Sonicmatch on AllMCPs" /></a>