# Sonicmatch

> Match background music to video footage, with mix and license details.

- **URL**: https://followmcp.com/en/servers/sonic-match-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 153
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/js713-lab/sonic-match-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.10+
- **Auth**: Optional API key

## Overview
Sonicmatch is an MCP server for video editing workflows. It analyzes mood, pacing, speech, and scenes, recommends background music with license details, and provides hook windows, ducking mix specs, and ffmpeg guidance. It can run with its seed catalog; Gemini, Jamendo, and Freesound integrations require their optional credentials.

## Best for
- Editing or agent workflows that infer music direction from footage rather than a script.
- Users who want track license and attribution details with recommendations.
- Creators who use ffmpeg and need hook, ducking, or cut specifications.

## Not for
- Users seeking official Instagram, TikTok, or YouTube libraries or trending audio graphs.
- Users who need a guarantee that tracks are safe from Content ID claims.
- Users seeking platform music licensing or automatic video publishing.

## Required permissions
- Needs access to the user-specified local video or an allowed HTTPS video URL; videos are referenced by asset_id.
- Video processing and mixing require ffmpeg and ffprobe to be available locally.
- Gemini, Jamendo, and Freesound features use the optional GEMINI_API_KEY, JAMENDO_CLIENT_ID, and FREESOUND_API_KEY respectively.
- Optional user-library paths should point to JSON data or tracks the user has already licensed.

## Risks
- The code is MIT licensed, but each track has its own license; CC-BY requires attribution and non-commercial tracks are unsuitable for ads or shops.
- A CC or royalty-free label does not mean Content-ID safe; a source label does not replace license verification.
- Generated demo music is not commercially cleared and is excluded from automatic recommendations.
- HTTP mode has no authentication; the README advises binding it to loopback only.
- Platform URL ingest is disabled by default; enabling yt-dlp may encounter platform terms issues or extractor changes.

## Client config (JSON)
```json
{
  "mcpServers": {
    "sonicmatch": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/js713-lab/sonic-match-mcp.git",
        "sonicmatch-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "",
        "JAMENDO_CLIENT_ID": "",
        "FREESOUND_API_KEY": ""
      }
    }
  }
}
```

## Tools (12)
- `status`: Check ffmpeg, optional keys, seed catalog count, and risk gate status.
- `ingest_video`: Ingest a local path or HTTPS URL and return an asset_id; platform URL ingest requires yt-dlp to be explicitly enabled.
- `analyze_video_music`: Analyze video mood, energy, speech, scenes, hook window, BPM, and search queries.
- `recommend_bgm`: Recommend 3 to 7 ranked tracks with reasons, license details, and suggested hook windows.
- `search_music`: Search the seed catalog and optional catalogs by text, BPM, or mood.
- `get_track`: Get one track's metadata, license, attribution requirements, and URLs.
- `preview_mix`: Trim or loop a hook, optionally duck speech, and produce preview files, an ffmpeg command, and a mix spec.
- `export_mix_spec`: Export a mix spec, ffmpeg command, and attribution; it does not render unless render=true.
- `suggest_cuts`: Snap scene cuts to a beat grid and return an edit decision list with intro, peak, and outro suggestions.
- `generate_bed`: Generate a demo background bed; the call requires acknowledgment that it is not commercially cleared.
- `save_brand_kit`: Save BPM, mood, and no-vocals preferences for use in recommendations.
- `analyze_batch`: Analyze up to 20 clips, cluster their moods, and return a shared mini-playlist.
