demusic
Strips AI-baked background music from video clips while keeping dialogue and sound effects
The repository was last updated 11 days ago and is published under Apache-2.0.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- GitHub stars
- 0
- Last commit
- 11 days ago
- Language
- Python
About demusic
demusic is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
Native-audio video models often add a music bed nobody asked for, and cutting several such clips together leaves competing scores. demusic locates where the music is and replaces only those seconds, leaving the rest of the audio untouched and copying the picture stream without re-encoding.
Detection runs in steps: separate stems with Demucs, either locally or through your own fal key, check that the melodic stems are loud enough, then require an AudioSet classifier to hear music for two seconds in a row so engine hum, gunfire and room tone do not count. Inside detected spans the audio becomes dialogue plus impacts with a 0.25 second crossfade. The README reports 2 false positives on 164 clips with no music, and 33 of 87 clips flagged by ear, with misses mostly very quiet beds.
The CLI has check and strip commands, with check exiting 1 when music is found so it can fail a build. It needs Python 3.10 or newer and ffmpeg, and comes from a studio that releases its production tools under Apache-2.0.
Install
Run in a terminal
claude mcp add demusic --env FAL_KEY='<FAL_KEY>' -- uvx demusicAdd to claude_desktop_config.json
{
"mcpServers": {
"demusic": {
"command": "uvx",
"args": [
"demusic"
],
"env": {
"FAL_KEY": "<FAL_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"demusic": {
"command": "uvx",
"args": [
"demusic"
],
"env": {
"FAL_KEY": "<FAL_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"demusic": {
"type": "stdio",
"command": "uvx",
"args": [
"demusic"
],
"env": {
"FAL_KEY": "<FAL_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"demusic": {
"command": "uvx",
"args": [
"demusic"
],
"env": {
"FAL_KEY": "<FAL_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"demusic": {
"command": "uvx",
"args": [
"demusic"
],
"env": {
"FAL_KEY": "<FAL_KEY>"
}
}
}
}Configuration
DEMUSIC_SEPARATORdemucs (local, needs demusic[demucs]) | fal (needs FAL_KEY) - default demucsFAL_KEYOptional: your fal.ai key when DEMUSIC_SEPARATOR=falDEMUSIC_FFMPEGPath to ffmpeg (default: ffmpeg on PATH)
What it does
- Span-only replacement
- Only the seconds containing music are altered.
- No video re-encode
- The picture stream is copied unchanged.
- Conservative detection
- A loudness gate and a music classifier guard against false positives.
- Pipeline-friendly check
- demusic check exits 1 when a clip has music and supports JSON output.
- Separator choice
- Use local Demucs, fal.ai with your key, or stems you already made.
- Tunable modes
- Spans, whole-track or forced replacement, with an adjustable threshold.
Good for
- Clean music from AI-generated drama clips
- Fail a render pipeline when a clip contains a music bed
- Prepare clips before laying your own score
- Batch-process a folder of renders
Pricing
Open source
Prices change. Check dawnwood.ai before you buy.
demusic FAQ
What does it need installed?
Python 3.10 or newer and ffmpeg, plus Demucs locally or a fal.ai key.
Does it remove sound effects too?
No. It keeps dialogue, impacts and ambience.
Is it free?
The studio publishes it as a free Apache-2.0 tool.
What if it misses quiet music?
Lower the threshold or use force mode.
Is demusic free?
Yes. demusic is open source, so you can use and self-host it for free.
How do I add demusic to Claude Code?
Run this command in your terminal: claude mcp add demusic --env FAL_KEY='<FAL_KEY>' -- uvx demusic
What are the best alternatives to demusic?
The closest alternatives to demusic are HyperFrames by HeyGen, ffmpeg-skill, AvatarSay — Fictional Character & Talking Video MCP, ChartAnt and VfxSmith.
Alternatives to demusic

HyperFrames by HeyGen
MCP serverHosted MCP connector for creating and rendering videos from HTML through AI chat
- Remote
- Freemium
- 85.3K GitHub stars
- Design and media

ffmpeg-skill
MCP serverLocal FFmpeg video and audio editing tools for coding agents over MCP
Runs locally- Open source
- 6.9K GitHub stars
- Design and media

Generate fictional character portraits and lip-synced talking videos from text over MCP
- 10 tools
- Remote
- Freemium
- Design and media

ChartAnt
MCP serverRemote MCP server returning charts, maps and dashboards as hosted PNG links
- 51 tools
- Remote
- Freemium
- Design and media

VfxSmith
MCP serverSearch, generate, refine and export pixel art game effects from Claude Code or Codex
Not checked yet- Remote
- Freemium
- Design and media

CalderFlow
MCP serverTurn notes or specs into editable flowcharts, timelines and funnels from an AI assistant
- 10 tools
- Remote
- Free
- Design and media