loading…
Search for a command to run...
loading…
Enables users to generate sound effects from text descriptions using Meta's AudioGen model. Specifically designed for Apple Silicon Macs, it supports single and
Enables users to generate sound effects from text descriptions using Meta's AudioGen model. Specifically designed for Apple Silicon Macs, it supports single and batch audio generation directly from natural language prompts.
An MCP server that generates sound effects from text descriptions using Meta's AudioGen model. Designed for Apple Silicon Macs.
brew install ffmpegDue to audiocraft's complex dependencies (xformers doesn't build on Apple Silicon), installation requires a specific order:
# Create virtual environment with Python 3.11
uv venv ~/.audiogen-env --python 3.11
source ~/.audiogen-env/bin/activate
# Install audiocraft without its problematic dependencies
uv pip install audiocraft --no-deps
# Install the actual dependencies (skipping xformers)
uv pip install torch torchaudio transformers huggingface_hub encodec einops \
flashy num2words sentencepiece librosa av julius spacy torchmetrics \
hydra-core hydra-colorlog demucs lameenc
# Install audiogen-mcp
uv pip install audiogen-mcp
The first run will download the AudioGen model (~2GB).
claude mcp add audiogen ~/.audiogen-env/bin/python -- -m audiogen_mcp.server
Or add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"audiogen": {
"command": "/Users/YOUR_USERNAME/.audiogen-env/bin/python",
"args": ["-m", "audiogen_mcp.server"]
}
}
}
| Tool | Description |
|---|---|
generate_sound_effect |
Start a background generation job, returns job_id |
check_generation_status |
Poll job status by job_id until completed |
list_generation_jobs |
List all jobs and their current status |
list_generated_sounds |
List previously generated audio files |
get_model_status |
Check if model is loaded and device info |
Generation runs in the background to avoid timeouts:
generate_sound_effect with your prompt → returns job_idcheck_generation_status with the job_id every 10-15 secondscompleted, the result includes file_pathOnce configured, ask Claude Code to generate sounds:
For best results, be specific:
# Good
"glass breaking, single wine glass falling on tile floor"
"8-bit arcade explosion, retro game style"
"dark ambient tension drone, synth pad, ominous low frequency rumble"
# Less good
"glass sound"
"explosion"
"ambient"
Include style, mood, and context for better results.
Generated files save to ~/audiogen_outputs/ by default as WAV or OGG files.
This is expected on Apple Silicon. The server mocks xformers at runtime since it's only needed for CUDA. If audiocraft installation fails, try:
uv pip install torch torchaudio
uv pip install audiocraft --no-build-isolation
Ensure stable internet and sufficient disk space. The model downloads from HuggingFace Hub.
Check device with get_model_status tool. CPU fallback is 10-20x slower than MPS.
Requires macOS 12.3+ and PyTorch 2.0+.
MIT License - see LICENSE file.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"audiogen-mcp-server": {
"command": "npx",
"args": []
}
}
}