That's one sentence; but the instruction is no more than 2 sentences, so 2 is fine. Let me make it two sentences for clarity.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@That's one sentence; but the instruction is no more than 2 sentences, so 2 is fine. Let me make it two sentences for clarity.generate a 30-second lo-fi background loop and export it as a seamless OGG"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🎧 Listen to samples · Quick start · Tools · FAQ
Audio Studio MCP gives Claude Code, Claude Desktop, Cursor and any other MCP client a sound studio that runs on your own Mac. Ask for background music or a sound effect in plain language; the model generates it locally with Stable Audio 3. Then it can loop it, normalize the loudness and export it for your game engine or video editor. There is no cloud service and no API key, and generating doesn't cost anything.
✨ Highlights
Reproducible: every file gets a
.jsonsidecar with its prompt, seed and settings.Prompting built in: the server teaches the client the official Stable Audio 3 prompt format, so a request like "make it sound like a creaky door" becomes a prompt the model understands.
Same output as upstream: for the same seed, results are bit-for-bit identical to the official
sa3CLI.
Related MCP server: AbletonMCP
🎧 Hear it
All of these were generated by this server on an M1 Mac and were not edited by hand. Open the sample page →
Sample | Prompt | |
Lo-fi cafemusic · 30 s · 85 BPM | Lo-fi hip-hop chill track with mellow electric piano, soft vinyl crackle, low-pass filtered drums… | |
Epic orchestralmusic · 30 s | Epic cinematic orchestral trailer music with thundering taiko drums, soaring French horns… | |
Chiptune adventuremusic · 20 s · 150 BPM | Upbeat 8-bit chiptune adventure theme with a bright square wave lead… | |
Glass shattersfx · 3 s | source: glass bottle · action: shattering on impact · material: thick green glass · space: concrete floor | |
Rain & thundersfx · 12 s | source: heavy rain and distant thunder · space: outdoor forest at night, wide stereo | |
Synthwave, extendededit · 20 s → 40 s |
|
MP3s are in docs/samples/, with prompts and seeds in samples.json.
🧭 How it works
flowchart LR
U["You<br/>“make a cozy cafe BGM”"] --> C["Claude Code · Desktop<br/>Cursor · any MCP client"]
C -- "MCP" --> S["audio-studio-mcp<br/>generate · edit · process"]
S --> M["Stable Audio 3<br/>MLX on Apple Silicon"]
M --> F["WAV / OGG / FLAC + .json<br/>ready for game & video"]🚀 Quick start
Requirements:
Apple Silicon Mac (M1 or later), 16 GB RAM recommended
About 6 GB of disk for the model
gitandffmpeg(brew install ffmpeg)
git clone https://github.com/kanaworksai-hue/audio-studio-mcp.git
cd audio-studio-mcp
./install.shThe installer sets up uv if needed, clones the official Stable Audio 3 runtime into vendor/ at a tested commit, creates .venv/, and downloads the medium model (1.4B, ~5.9 GB) from Hugging Face. It finishes by printing the exact command to register the server:
claude mcp add --scope user audio-studio -- /path/to/audio-studio-mcp/.venv/bin/audio-studio-mcpAdd this to claude_desktop_config.json, .cursor/mcp.json or your client's MCP config:
{
"mcpServers": {
"audio-studio": {
"command": "/path/to/audio-studio-mcp/.venv/bin/audio-studio-mcp"
}
}
}Option | Effect |
| Also download the small, fast |
| Don't download now; the first generation downloads them |
| Install |
Downloads are anonymous. Logging in with hf auth login raises Hugging Face's rate limit.
Let your agent install it. Paste this into Claude Code: "Install https://github.com/kanaworksai-hue/audio-studio-mcp by following its README, then register it as an MCP server."
Then just ask:
"Make a 60-second lo-fi BGM loop at 85 BPM for a cafe scene, give me 3 candidates."
"I need a heavy wooden door slamming in a stone hallway. Export it as OGG for Godot."
"Extend this track to 90 seconds and normalize it to −16 LUFS."
🧰 Tools
Tool | What it does |
| Text to BGM, instrument loop/stem or sound effect. 1–4 candidates per call, |
|
|
| Trim → trim silence → mono → resample / loudness → seamless loop → fades → peak normalize or ceiling → WAV / OGG / FLAC. Never modifies the input |
| Free the model memory right away |
audio_type:music/instrument/sfx/raw. The server adds the prefix the model was trained with (TrackType: Music, VocalType: Instrumental,…). Without the SFX prefix, sound effects often come out as music.variations: 1–4 candidates with seedsseed, seed+1, …. Useseed: -1or leave it out for a random seed.sound_source/sound_action/sound_material/sound_space: describe a sound effect by what makes it, how it evolves, its texture and the space it is in.peak_ceiling_db(default −1): a safety ceiling. Louder peaks are turned down and quieter audio is never boosted. Useprocess_audioto normalize.process_audionormalization:peakis common for SFX.loudnessnormalizes to a target LUFS: −14 for streaming/video, −16 for game BGM, −23 for broadcast.
Generated files are 44.1 kHz 24-bit stereo WAV, written to outputs/ in this folder. Each one has a <name>.json next to it. Processed files keep the original generation info under source.
⚙️ Configuration
Variable | Default | Meaning |
|
| Where audio files are written |
|
| Free the models after this many idle minutes ( |
|
|
|
|
| Cap on MLX's buffer cache. Without it, a long generation can leave ~6 GB cached |
|
| Use another stable-audio-3 checkout |
|
|
|
|
| Path to ffmpeg |
Pass them with claude mcp add ... -e NAME=value or in the env block of your client config.
Each client session normally starts its own server process. Models load on the first call and are freed after the idle timeout. To keep one warm process for every session, run it as a local HTTP server. It only listens on 127.0.0.1.
.venv/bin/audio-studio-mcp --http 8765 --preload
claude mcp add --scope user --transport http audio-studio http://127.0.0.1:8765/mcp⚡ Performance
Medium model on an M1 Mac with 16 GB:
Task | Time |
Two 3 s sound effects, cold start | ~13 s |
20 s of music, warm | ~10 s (2× real time) |
Continue to 35 s, incl. loading the encoder | ~27 s |
15 s of music with | ~1 s |
Loaded models use about 5–7 GB of memory. They are freed after the idle timeout or by unload_models.
📝 Prompting tips
English, 1–2 sentences, up to ~45 words. Avoid vocal words such as vocals, singer or lyrics.
Music: genre + adjectives → lead instruments → supporting layers → drums/rhythm → mood. Put the tempo in
bpm.Lo-fi hip-hop chill track with mellow electric piano, soft vinyl crackle, low-pass filtered drums and soft plucked bass for a relaxed, dreamy vibe.
Sound effects: fill in source, action, material and space.
source: glass bottle / action: shattering on impact, fragments scattering / material: thick green glass, sharp bright transient / space: concrete floor, close-up, dry
Match the length to the content: impacts 1–3 s, actions 3–6 s, ambience 6–15 s+, loops 6–20 s, full tracks 120–300 s (max 380 s).
Timing instructions like "climax at 15 s" are not followed reliably. Generate first, then use
inpaintorcontinue.The defaults
steps=8andcfg=1.0are the official settings. For stricter prompt adherence, or to usenegative_prompt, trycfg3–7 (about 2× slower).Results vary a lot by seed. Ask for 2–4
variationsand pick the best.
The full guide is also sent to the client as the server's instructions.
❓ FAQ
Not yet. It needs an Apple Silicon Mac today. The model runtime sits behind a backend interface, and a Windows backend for NVIDIA GPUs is planned.
No. Stable Audio 3 generates instrumental music and sound effects. It cannot produce intelligible singing or lyrics.
The code here is MIT. The model weights are under the Stability AI Community License, which sets the terms for the model and what it generates. Read it before commercial use. At the time of writing it allows commercial use for individuals and organizations with less than US$1M in annual revenue.
It hasn't been tested. The medium model needs about 5–7 GB while loaded, so 16 GB is recommended. The small sm-music / sm-sfx models are lighter.
Use WAV or OGG for loops. MP3 adds padding at the start and end, so it can't loop seamlessly. Also try a longer loop_crossfade_ms, or ask the model to cut on a bar line.
🗺️ Roadmap
Apple Silicon backend (Stable Audio 3, MLX)
Windows backend for NVIDIA GPUs
LoRA support (the upstream runtime already has it)
Issues and pull requests are welcome.
🛠️ Development
uv run pytest # offline tests, no model needed
.venv/bin/python scripts/smoke_test.py # end-to-end with the real model (~30 s)src/audio_studio_mcp/
server.py MCP tools (backend-independent)
prompts.py prompt building and the instructions sent to clients
post.py post-processing and export
backends/base.py backend interface
backends/sa3_mlx.py Stable Audio 3 on Apple SiliconA new platform is added as another backend in backends/.
📄 License and credits
This project: MIT.
Stable Audio 3 runtime: downloaded into
vendor/at install time. It is © Stability AI and MIT-licensed.Model weights: licensed under the Stability AI Community License. They are downloaded from Hugging Face, not distributed here.
Brand: the KanaWorks_AI name, logo and the Kana character are © KanaWorks_AI and are not covered by the MIT license. See docs/brand.
Built on: Stable Audio 3, MLX and the Model Context Protocol.
This is an independent project. It is not affiliated with or endorsed by Stability AI, Apple or Anthropic.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.
MCP server for Producer/Riffusion AI music generation
AI image, video, voice and music generation over MCP, routed to Veo 3.1, Seedance 2.5 and more.
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language control over Ableton Live for generating musical patterns, melodies, and full song arrangements. It also provides tools for sample searching and mixing assistance through an OSC-based connection with Claude Desktop.1MIT
- FlicenseBqualityDmaintenanceControl Ableton Live from Claude Code via the Model Context Protocol (MCP). Create/edit tracks, control plugins, fire clips, edit MIDI notes, capture audio — all through natural language.100-
- AlicenseNot gradedqualityDmaintenanceEnables semantic search of local audio samples by describing sounds, MIDI generation, stem separation, and other music production tools from Claude Desktop.2MIT
- AlicenseNot gradedqualityDmaintenanceExposes text-to-audio sound effect generation as an MCP tool, allowing clients like Claude Desktop to generate sound effects locally using a diffusion model, with support for AMD ROCm and Apple Silicon.Apache 2.0