Logo de Audio Studio MCP

Audio Studio MCP

Communauté
kanaworksai-hue

Local AI BGM and sound effects for Claude Code and any MCP client. Stable Audio 3 on Apple Silicon (MLX) and Windows NVIDIA GPUs (PyTorch). No cloud, no API key.

Éditeurkanaworksai-hue
Dépôtaudio-studio-mcp
LanguePython
Forks
33
Étoiles
444
Outils disponibles
0
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    Audio Studio MCP propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    444 étoiles et 33 forks sur le dépôt associé.

English | 简体中文 | 日本語

🎧 Listen to samples · Quick start · Tools · FAQ · ⭐ Star

Audio Studio MCP gives Claude Code, Claude Desktop, Cursor and any other MCP client a sound studio that runs on your own Mac or Windows PC. 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 .json sidecar 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: on a Mac, results for the same seed are bit-for-bit identical to the official sa3 CLI. On Windows it calls the official Stable Audio 3 PyTorch API.

🎧 Hear it

All of these were generated by this server on an M1 Mac and were not edited by hand. Open the sample page →

SamplePrompt
Lo-fi cafemusic · 30 s · 85 BPMLo-fi hip-hop chill track with mellow electric piano, soft vinyl crackle, low-pass filtered drums…
Epic orchestralmusic · 30 sEpic cinematic orchestral trailer music with thundering taiko drums, soaring French horns…
Chiptune adventuremusic · 20 s · 150 BPMUpbeat 8-bit chiptune adventure theme with a bright square wave lead…
Glass shattersfx · 3 ssource: glass bottle · action: shattering on impact · material: thick green glass · space: concrete floor
Rain & thundersfx · 12 ssource: heavy rain and distant thunder · space: outdoor forest at night, wide stereo
Synthwave, extendededit · 20 s → 40 sedit_audio continue: a 20-second track extended to 40 seconds

MP3s are in docs/samples/, with prompts and seeds in samples.json.

🧭 How it works

🚀 Quick start

macOS (Apple Silicon)

Requirements:

  • Apple Silicon Mac (M1 or later), 16 GB RAM recommended
  • About 6 GB of disk for the model
  • git and ffmpeg (brew install ffmpeg)
bash
git clone https://github.com/kanaworksai-hue/audio-studio-mcp.git
cd audio-studio-mcp
./install.sh

The 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:

bash
claude mcp add --scope user audio-studio -- /path/to/audio-studio-mcp/.venv/bin/audio-studio-mcp

Windows (NVIDIA GPU)

Requirements:

  • 64-bit Windows 10 or 11 with an NVIDIA GPU (8 GB of VRAM or more) and a current driver. Tested on an RTX 3060 12 GB
  • About 14 GB of disk for the model and PyTorch
  • git (winget install Git.Git) and ffmpeg (winget install Gyan.FFmpeg)
  • A free Hugging Face account. The PyTorch weights are gated: open stabilityai/stable-audio-3-medium and accept the license once
powershell
git clone https://github.com/kanaworksai-hue/audio-studio-mcp.git
cd audio-studio-mcp
powershell -ExecutionPolicy Bypass -File install.ps1

The installer does the same steps as on macOS, but installs PyTorch with CUDA and downloads the official PyTorch checkpoint of the medium model (~10.4 GB). If you aren't logged in to Hugging Face yet, it asks for an access token with read permission (create one here). When it runs without a console (for example, started by an AI agent), it never asks: it prints the steps to log in and stops, and you re-run it after logging in. It finishes by printing the command to register the server:

powershell
claude mcp add --scope user audio-studio -- "C:\path\to\audio-studio-mcp\.venv\Scripts\audio-studio-mcp.exe"

Flash Attention is not needed. Without it, the runtime falls back to PyTorch's built-in attention.

Add this to claude_desktop_config.json, .cursor/mcp.json or your client's MCP config:

json
{
  "mcpServers": {
    "audio-studio": {
      "command": "/path/to/audio-studio-mcp/.venv/bin/audio-studio-mcp"
    }
  }
}

On Windows the command is C:\\path\\to\\audio-studio-mcp\\.venv\\Scripts\\audio-studio-mcp.exe (backslashes doubled in JSON).

macOSWindowsEffect
--model all-Model allAlso download the small, fast sm-music and sm-sfx models (+2.6 GB on macOS, +7 GB on Windows)
--skip-weights-SkipWeightsDon't download now; the first generation downloads them
-y-YesInstall uv without asking

On macOS, downloads are anonymous; logging in with hf auth login raises Hugging Face's rate limit. On Windows, the PyTorch weights are gated: accept the license on each model page you download (medium, small-music, small-sfx) and log in.

[!TIP] Let your agent install it. Paste this into Claude Code: "Install https://github.com/kanaworksai-hue/audio-studio-mcp by following its README, including the notes for AI agents, then register it as an MCP server."

Notes for AI agents (Windows only; macOS needs no login): the weights are gated and need the user's own Hugging Face login.

  • Before downloading weights, check the login with hf auth whoami (after the first installer run: .venv\Scripts\hf.exe auth whoami). install.ps1 checks it too and stops with ACTION NEEDED when nobody is logged in.
  • If the user is not logged in, or the download fails with 401/403 (license not accepted, or accepted with another account), stop and pass the steps the installer printed on to the user: create a free account, accept the license on each model page, then run hf auth login in their own terminal. Wait until they say they are done, then re-run the installer.
  • Never ask the user to paste their token into the chat, and don't use -SkipWeights to get past this: generation would fail later with the same error.

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

ToolWhat it does
generate_audioText to BGM, instrument loop/stem or sound effect. 1–4 candidates per call, bpm, structured SFX fields
edit_audiovariation (re-style the whole clip), inpaint (regenerate a time range), continue (extend). 1–4 candidates
process_audioTrim → trim silence → mono → resample / loudness → seamless loop → fades → peak normalize or ceiling → WAV / OGG / FLAC. Never modifies the input
unload_modelsFree 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 seeds seed, seed+1, …. Use seed: -1 or 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. Use process_audio to normalize.
  • process_audio normalization: peak is common for SFX. loudness normalizes 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

VariableDefaultMeaning
AUDIO_STUDIO_OUTPUT_DIR<repo>/outputsWhere audio files are written
AUDIO_STUDIO_IDLE_UNLOAD_MIN10Free the models after this many idle minutes (0 = never)
AUDIO_STUDIO_SA3_MODELmediummedium (best quality, up to 380 s), sm-music or sm-sfx (small and fast, up to 120 s)
AUDIO_STUDIO_MLX_CACHE_GB1macOS: cap on MLX's buffer cache. Without it, a long generation can leave ~6 GB cached
AUDIO_STUDIO_DEVICEcuda if availableWindows/Linux: PyTorch device, e.g. cuda, cuda:1 or cpu
AUDIO_STUDIO_SA3_DIR<repo>/vendor/stable-audio-3Use another stable-audio-3 checkout
AUDIO_STUDIO_BACKENDautoauto, sa3-mlx (Apple Silicon) or sa3-torch (PyTorch, NVIDIA)
AUDIO_STUDIO_FFMPEGffmpeg on PATHPath 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.

bash
.venv/bin/audio-studio-mcp --http 8765 --preload
claude mcp add --scope user --transport http audio-studio http://127.0.0.1:8765/mcp

On Windows, start it with .venv\Scripts\audio-studio-mcp.exe --http 8765 --preload.

⚡ Performance

Medium model on an M1 Mac with 16 GB:

TaskTime
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 sm-music, warm~1 s

Medium model on Windows with an RTX 3060 12 GB:

TaskTime
Two 3 s sound effects, cold start (incl. ~20 s model load)~25 s
20 s of music, warm~1.3 s
Continue to 30 s, warm~2.2 s
380 s of music (the maximum), warm~15 s
15 s of music with sm-music, warm~0.7 s

On a Mac, loaded models use about 5–7 GB of memory. On the RTX 3060, the medium model peaked at about 5.3 GB of VRAM. Models are freed after the idle timeout or by unload_models.

📝 Prompting tips

  1. English, 1–2 sentences, up to ~45 words. Avoid vocal words such as vocals, singer or lyrics.
  2. 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.

  3. 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

  4. 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).
  5. Timing instructions like "climax at 15 s" are not followed reliably. Generate first, then use inpaint or continue.
  6. The defaults steps=8 and cfg=1.0 are the official settings. For stricter prompt adherence, or to use negative_prompt, try cfg 3–7 (about 2× slower).
  7. Results vary a lot by seed. Ask for 2–4 variations and pick the best.

The full guide is also sent to the client as the server's instructions.

❓ FAQ

Windows: yes, with an NVIDIA GPU. See Quick start.

Linux: with an NVIDIA GPU it uses the same PyTorch backend and should work, but it is untested and has no installer yet. Clone the upstream runtime into vendor/stable-audio-3 at the commit pinned in install.sh, then run uv sync --extra cuda and hf auth login.

Intel Macs and AMD GPUs are not supported.

The environment was built with an x86_64 Python (for example an old Intel Homebrew under /usr/local) that runs under Rosetta, so MLX was skipped. install.sh now asks uv for an arm64 Python and recreates such a .venv, so re-running ./install.sh fixes it. If you set UV_PYTHON yourself, point it at an arm64 build: UV_PYTHON=cpython-3.11-macos-aarch64 ./install.sh.

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 total 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 (Stable Audio 3, PyTorch)
  • LoRA support (the upstream runtime already has it)

Issues and pull requests are welcome.

⭐ Like it? Star it

If Audio Studio made a sound you ended up using, please click ⭐ Star at the top of the repository page. It's free, takes one second, and helps more than it looks:

  • More people find it. Stars make the project easier to discover on GitHub, so more game developers and video makers get to use it.
  • It keeps updates coming. Every star tells me someone finds this useful. That's what keeps me working on the next update, like LoRA support.

Other ways to help: open an issue for a bug or an idea, or share a sound you made on X and tag @KanaWorks_AI.

🛠️ Development

bash
uv run pytest                              # offline tests, no model needed
.venv/bin/python scripts/smoke_test.py     # end-to-end with the real model (~30 s on an M1)

On Windows: .venv\Scripts\python scripts\smoke_test.py (~45 s on an RTX 3060, including model loading).

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 Silicon (MLX)
  backends/sa3_torch.py  Stable Audio 3 on NVIDIA GPUs (PyTorch)

A 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 (macOS: stable-audio-3-optimized; Windows: stable-audio-3-medium and the small models), not distributed here.
  • Brand: the KanaWorks_AI name, logo and the Kana character are © 東京AI映像合同会社 (Tokyo AI Visuals LLC) and are not covered by the MIT license. See docs/brand.
  • Built on: Stable Audio 3, MLX, PyTorch and the Model Context Protocol.

This is an independent project. It is not affiliated with or endorsed by Stability AI, Apple, NVIDIA or Anthropic.

Installation

TypingMind
{
  "mcpServers": {
    "audio-studio-mcp": {
      "command": "./.venv/bin/audio-studio-mcp",
      "args": []
    }
  }
}

Utilisez le serveur MCP Audio Studio MCP avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Audio Studio MCP connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez Audio Studio MCP en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Audio Studio MCP.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "audio-studio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Audio Studio MCP, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Audio Studio MCP.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Audio Studio MCP pour m’aider dans cette tâche ?
Audio Studio MCP
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec Audio Studio MCP.

Foire aux questions

À quoi sert le serveur MCP Audio Studio MCP ?

Audio Studio MCP est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Audio Studio MCP avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Audio Studio MCP avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Audio Studio MCP avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Audio Studio MCP connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Audio Studio MCP à TypingMind ?

Audio Studio MCP fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Audio Studio MCP propose-t-il dans TypingMind ?

Audio Studio MCP propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Audio Studio MCP ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Audio Studio MCP nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇