loading…
Search for a command to run...
loading…
Remove vocals, extract instrumentals, and split any song into up to six stems — directly from Claude Desktop, Cursor, or any MCP client. Supports local audio fi
Remove vocals, extract instrumentals, and split any song into up to six stems — directly from Claude Desktop, Cursor, or any MCP client. Supports local audio files, YouTube URLs, and SoundCloud track
npm npm downloads License: MIT stemsplit-mcp MCP server
AI stem separation as a Model Context Protocol (MCP) server. Remove vocals, build karaoke tracks, isolate dialogue, or split any song into vocals, drums, bass, piano, guitar, and other stems — directly from Claude Desktop, Cursor, Cline, Windsurf, Zed, or any other MCP-compatible client. Works with local audio files (MP3, WAV, FLAC, M4A, OGG, AAC) and YouTube URLs.
Powered by the StemSplit API (HTDemucs / Demucs models on GPU). The server exchanges only file paths and JSON over MCP — audio bytes never pass through the LLM context. They flow directly between your machine, StemSplit's API, and Cloudflare R2.
Audio separation basics
/karaoke slash command returns just the instrumentalyoutube.com or youtu.be URL and get separated stems backAudio production & post-production
AI & developer pipelines
Content & media
Agentic workflows
stemsplit-mcp runs as a local stdio MCP server, so it works in any client that supports the standard MCP transport:
| Tool | Use case |
|---|---|
separate_stems |
Upload a local audio file or pass a direct audio URL; get back local file paths to the separated stems |
separate_youtube |
Submit a YouTube URL; get back local file paths to the vocals and instrumental stems |
separate_soundcloud |
Submit a SoundCloud track URL; get back local file paths to the vocals and instrumental stems |
get_job / list_jobs |
Inspect existing stem jobs |
get_youtube_job / list_youtube_jobs |
Inspect existing YouTube jobs |
get_soundcloud_job / list_soundcloud_jobs |
Inspect existing SoundCloud jobs |
get_balance |
Check remaining StemSplit credits |
download_stems |
Re-download outputs from a completed job (re-mints fresh 1-hour presigned URLs) |
Plus five ready-made prompts (slash commands): karaoke, isolate_dialogue, sampler_pack, youtube_instrumental, soundcloud_instrumental.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"stemsplit": {
"command": "npx",
"args": ["-y", "stemsplit-mcp"],
"env": {
"STEMSPLIT_API_KEY": "sk_live_your_key_here"
}
}
}
}
Restart Claude Desktop. Type /karaoke or just ask: "Separate the vocals from ~/Music/demo.mp3".
Add to ~/.cursor/mcp.json (or per-workspace <workspace>/.cursor/mcp.json):
{
"mcpServers": {
"stemsplit": {
"command": "npx",
"args": ["-y", "stemsplit-mcp"],
"env": {
"STEMSPLIT_API_KEY": "sk_live_your_key_here"
}
}
}
}
Any MCP client that supports stdio-launched servers works. Use the same npx -y stemsplit-mcp command and pass STEMSPLIT_API_KEY via the client's env mechanism.
sk_live_...)| Env var | Required | Default | Description |
|---|---|---|---|
STEMSPLIT_API_KEY |
Yes | — | API key, must start with sk_live_ |
STEMSPLIT_API_BASE_URL |
No | https://stemsplit.io/api/v1 |
Override for self-hosted or staging |
STEMSPLIT_DEFAULT_OUTPUT_DIR |
No | ~/Downloads/stemsplit |
Base directory where stems are saved. Each job gets a <jobId>/ subdirectory unless you pass outputDir to the tool call |
separate_stemsSubmit an audio file or direct URL for stem separation.
{
"source": "/Users/me/Music/song.mp3",
"outputType": "BOTH",
"quality": "BEST",
"outputFormat": "MP3",
"wait": true
}
| Field | Type | Default | Notes |
|---|---|---|---|
source |
string (required) | — | Local path (absolute or ~/...) or direct https:// audio URL. Do not pass YouTube URLs here; use separate_youtube |
outputType |
VOCALS | INSTRUMENTAL | BOTH | FOUR_STEMS | SIX_STEMS |
BOTH |
SIX_STEMS requires quality=BEST |
quality |
FAST | BALANCED | BEST |
BEST |
|
outputFormat |
MP3 | WAV | FLAC |
MP3 |
|
fileName |
string | derived | Display name for the job |
wait |
boolean | true |
If true, poll until done and download stems to disk |
timeoutSeconds |
integer | 600 |
Max wait when wait=true |
pollIntervalSeconds |
integer | 5 |
|
outputDir |
string | ~/Downloads/stemsplit/<jobId>/ |
Where to write stems |
Returns (wait=true):
{
"jobId": "job_abc123",
"status": "COMPLETED",
"creditsCharged": 180,
"outputDir": "/Users/me/Downloads/stemsplit/job_abc123",
"stems": {
"vocals": "/Users/me/Downloads/stemsplit/job_abc123/vocals.mp3",
"instrumental": "/Users/me/Downloads/stemsplit/job_abc123/instrumental.mp3"
}
}
separate_youtubeSame shape, but takes youtubeUrl instead of source. Output is fixed to vocals + instrumental, MP3, BEST quality (this is the StemSplit API's contract for YouTube jobs).
get_job, list_jobs, get_youtube_job, list_youtube_jobs, get_balance, download_stemsThin wrappers over the corresponding StemSplit /api/v1 endpoints. download_stems re-fetches the job first to mint fresh 1-hour presigned URLs, so the expiry never matters.
Read-only context the LLM can pull on demand.
| URI | Returns |
|---|---|
stemsplit://balance |
Live credit balance |
stemsplit://jobs/recent |
The 20 most recent stem jobs |
stemsplit://jobs/{jobId} |
Detail snapshot with fresh download URLs |
stemsplit://youtube-jobs/{jobId} |
YouTube job detail with fresh URLs |
stemsplit://soundcloud-jobs/{jobId} |
SoundCloud job detail with fresh URLs |
| Prompt | Argument | Behavior |
|---|---|---|
karaoke |
source |
Run separate_stems (BOTH) and hand back the instrumental path |
isolate_dialogue |
source |
Run separate_stems (VOCALS) for podcast cleanup or transcription prep |
sampler_pack |
source |
Run separate_stems (SIX_STEMS, BEST) and list every stem path |
youtube_instrumental |
youtubeUrl |
Run separate_youtube and hand back the instrumental path |
soundcloud_instrumental |
soundcloudUrl |
Run separate_soundcloud and hand back the instrumental path |
Karaoke from a local file (Claude Desktop):
Make a karaoke version of
~/Music/demo.mp3.
Claude calls separate_stems with outputType="BOTH", polls for ~60s, and returns:
Done. Karaoke (instrumental) is at:
/Users/me/Downloads/stemsplit/job_abc123/instrumental.mp3
Six-stem sampler pack (Cursor):
Split
./loops/break.wavinto all six stems for sampling.
Cursor calls separate_stems with outputType="SIX_STEMS", quality="BEST", outputDir="./loops/break-stems", and reports each file path so you can drop them into your DAW.
Instrumental from YouTube:
Get me the instrumental of
https://youtu.be/dQw4w9WgXcQ.
Claude calls separate_youtube, polls until COMPLETED, downloads vocals.mp3 and instrumental.mp3 to ~/Downloads/stemsplit/<jobId>/, and returns the instrumental path.
Clean vocals for transcription (Claude Desktop):
Transcribe the lyrics from
~/Music/interview-with-music.mp3— there's a music bed underneath, clean it up first.
Claude calls separate_stems with outputType="VOCALS" to strip the music bed, then passes vocals.mp3 to a transcription tool (e.g. Whisper via another MCP server). The result is a clean transcript with none of the background music interfering.
Batch acapella extraction (Cursor agent):
Extract acapellas from every MP3 in
./tracks/and save them to./acapellas/.
Cursor iterates the directory, calls separate_stems with outputType="VOCALS" and a custom outputDir per file, and returns a list of acapella paths ready for a remix session or AI training dataset.
Vocal isolation → stems for remix (Claude Desktop):
I want to remix
~/Music/original.wav. Give me the acapella and all the individual instrument stems separately.
Claude calls separate_stems twice — once with outputType="VOCALS" for the clean acapella, once with outputType="SIX_STEMS" for the full stem pack — and hands back all seven file paths organized by stem type.
Use separate_youtube (or the /youtube_instrumental slash command) to extract vocals and an instrumental from any YouTube video.
{
"youtubeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
Accepted URL formats
| Format | Example |
|---|---|
| Standard watch URL | https://www.youtube.com/watch?v=VIDEO_ID |
| Short URL | https://youtu.be/VIDEO_ID |
| Embed URL | https://www.youtube.com/embed/VIDEO_ID |
| Mobile URL | https://m.youtube.com/watch?v=VIDEO_ID |
| Bare video ID | dQw4w9WgXcQ (11 characters) |
Limits
Example (Claude Desktop)
Get me the instrumental of
https://youtu.be/dQw4w9WgXcQ.
Claude calls separate_youtube, polls until COMPLETED (~60s for a 3-minute video), and returns:
Done. Files saved to ~/Downloads/stemsplit/<jobId>/
vocals.mp3
instrumental.mp3
Use separate_soundcloud (or the /soundcloud_instrumental slash command) to extract vocals and an instrumental from any public SoundCloud track.
{
"soundcloudUrl": "https://soundcloud.com/artist/track-name"
}
Accepted URL formats
| Format | Example |
|---|---|
| Standard track URL | https://soundcloud.com/artist/track-name |
| Mobile URL | https://m.soundcloud.com/artist/track-name |
| Short URL | https://on.soundcloud.com/AbCdE |
Limits
Example (Claude Desktop)
Remove the vocals from
https://soundcloud.com/artist/my-track.
Claude calls separate_soundcloud, polls until COMPLETED, and returns:
Done. Files saved to ~/Downloads/stemsplit/<jobId>/
vocals.mp3
instrumental.mp3
Example (Cursor agent)
Extract the acapella from every SoundCloud URL in
./tracks.txtand save each to./acapellas/.
Cursor reads the file, iterates the URLs, calls separate_soundcloud with outputDir set per track, and returns a list of all saved acapella paths.
mp3, wav, flac, m4a, ogg, webm, aac, wmahttps:// URL serving one of the formats above (the StemSplit API fetches it server-side)youtube.com/watch?v=..., youtu.be/..., youtube-nocookie.com/embed/..., or a bare 11-character video IDsoundcloud.com/artist/track, m.soundcloud.com/artist/track, or on.soundcloud.com/shortcode (public tracks only, max 15 minutes)Limits: 100 MB / 60 minutes per file. 1 credit = 1 second of audio. Credits are deducted at job submission.
| Symptom | Fix |
|---|---|
STEMSPLIT_API_KEY is required |
Set the env var in your MCP client config |
[INVALID_API_KEY_FORMAT] |
Key must start with sk_live_. Generate a fresh one at stemsplit.io/app/settings/api |
[INSUFFICIENT_CREDITS] |
The error includes a purchaseUrl. Top up at stemsplit.io/app/billing |
[RATE_LIMIT_EXCEEDED] |
Default per-key limit is 60 requests/minute. The error includes retryAfterSeconds |
[FILE_TOO_LARGE] / [AUDIO_TOO_LONG] |
Trim or compress the file. Limits are 100 MB and 60 minutes |
[POLL_TIMEOUT] |
Increase timeoutSeconds on the tool call or set wait: false and poll get_job separately |
YouTube URL passed to separate_stems |
Use separate_youtube instead |
SoundCloud URL passed to separate_stems |
Use separate_soundcloud instead |
[TRACK_NOT_FOUND] on SoundCloud job |
Track is private, a playlist/set, or unavailable. Only public single tracks are supported |
git clone https://github.com/StemSplit/stemsplit-mcp
cd stemsplit-mcp
npm install
npm run typecheck
npm run lint
npm test
npm run build
STEMSPLIT_API_KEY=sk_live_... npm run inspect
npm run inspect launches the MCP Inspector for interactive testing.
Add the install snippet above to claude_desktop_config.json, restart Claude, then ask:
Remove the vocals from
~/Music/song.mp3.
Claude calls the separate_stems tool, waits for the job to complete (~30–60s for a 3-minute track), and hands back the local path to the instrumental file. Or use the /karaoke slash command directly.
Yes. Use the separate_youtube tool or the /youtube_instrumental slash command. The StemSplit API handles the YouTube download server-side and returns vocals + instrumental stems. Output is fixed to vocals + instrumental, MP3, BEST quality.
Vocals, instrumental, drums, bass, other, piano, and guitar. Six-stem output (adding piano and guitar) requires quality=BEST and is only available for stem jobs (not YouTube jobs).
The web app is point-and-click. This MCP server lets you orchestrate stem separation through natural-language prompts to an LLM, or programmatic tool calls from any MCP client. Same backend (HTDemucs / Demucs on GPU), different interface. Use the web app for one-off jobs; use the MCP server when you want to chain stem separation with other tools (transcription, translation, agentic pipelines) inside an LLM-driven workflow.
No. The MCP server is a local stdio process that talks to the StemSplit cloud API over HTTPS. Audio bytes are uploaded directly to Cloudflare R2 via presigned PUT (your API key never crosses the network with the audio). Stem separation runs on StemSplit's GPU workers. If you want fully local separation, look at demucs or demucs-onnx.
StemSplit uses a pay-per-second model: 1 credit = 1 second of audio. Credits are deducted at job submission. New accounts include free credits. Check current pricing at stemsplit.io/pricing.
Input: MP3, WAV, FLAC, M4A, OGG, WebM, AAC, WMA (up to 100 MB / 60 minutes). Output: MP3, WAV, or FLAC.
By default, in ~/Downloads/stemsplit/<jobId>/ with one file per stem. Override per-call with outputDir or globally with the STEMSPLIT_DEFAULT_OUTPUT_DIR env var.
Yes. stemsplit-mcp follows the MCP spec exactly. Any client that speaks the stdio transport works. For programmatic Node.js / TypeScript clients, see @modelcontextprotocol/sdk.
Pass wait: false to separate_stems or separate_youtube. You'll get the jobId back immediately and can poll later with get_job / get_youtube_job. Or set a longer timeoutSeconds (up to 3600s).
Sign up at stemsplit.io and generate a key at stemsplit.io/app/settings/api. The key format is sk_live_....
MIT (c) 2026 StemSplit
stem separation MCP, vocal remover MCP, karaoke generator MCP, Claude Desktop audio, Cursor audio tools, instrumental extractor, acapella extractor, AI stem splitter, MCP audio server, remove vocals from MP3, isolate vocals, split audio into stems, YouTube vocal remover, SoundCloud vocal remover, SoundCloud stem separator, SoundCloud instrumental extractor, HTDemucs MCP, Demucs MCP, MCP server for stem separation.
Run in your terminal:
claude mcp add stemsplit-vocal-remover-stem-separator -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.