MCP server for generating sound effects using Meta's AudioGen
Project description
AudioGen MCP Server
An MCP server that generates sound effects from text descriptions using Meta's AudioGen model. Designed for Apple Silicon Macs.
Prerequisites
- macOS with Apple Silicon (M1/M2/M3/M4)
- Python 3.9-3.11 (3.12 not yet supported by audiocraft)
- ffmpeg:
brew install ffmpeg - ~4GB disk space for model weights
- ~8GB RAM recommended
Installation
uvx audiogen-mcp
That's it. The first run will download the AudioGen model (~2GB), which takes about 2 minutes.
Configure Claude Code
Option 1: CLI (Recommended)
claude mcp add audiogen uvx -- audiogen-mcp
Option 2: Manual JSON Configuration
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"audiogen": {
"command": "uvx",
"args": ["audiogen-mcp"]
}
}
}
Available Tools
| Tool | Description |
|---|---|
generate_sound_effect |
Generate a single sound effect from text |
generate_batch_sound_effects |
Generate multiple sounds at once |
list_generated_sounds |
List previously generated files |
get_model_status |
Check model and device status |
Example Prompts
Once configured, ask Claude Code to generate sounds:
- "Generate an explosion sound effect"
- "Create UI sounds: click, hover, and error"
- "Make a retro 8-bit power-up sound, 2 seconds long"
- "Generate footsteps on gravel, 5 seconds"
Prompt Tips
For best results, be specific:
# Good
"glass breaking, single wine glass falling on tile floor"
"8-bit arcade explosion, retro game style"
"button click, soft, satisfying UI sound"
# Less good
"glass sound"
"explosion"
"click"
Include style, mood, and context for better results.
Performance
- ~60 seconds to generate 5 seconds of audio
- First generation takes longer (model loading)
- Uses Metal Performance Shaders (MPS) for GPU acceleration
Output
Generated files save to ~/audiogen_outputs/ by default as WAV files.
Troubleshooting
Model download fails
Ensure stable internet and sufficient disk space. The model downloads from HuggingFace Hub.
Slow generation
Check device with get_model_status tool. CPU fallback is 10-20x slower than MPS.
MPS not available
Requires macOS 12.3+ and PyTorch 2.0+.
License
MIT License - see LICENSE file.
Acknowledgments
- Meta AudioCraft - The underlying AI model
- MCP - Model Context Protocol specification
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file audiogen_mcp-0.1.0.tar.gz.
File metadata
- Download URL: audiogen_mcp-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a444e0f0fc79a85a4e9a44b6ce983a4387a8e810c3776f3b86bc45c5494351a5
|
|
| MD5 |
1e68e11496ad9c4449bae30d96303c2c
|
|
| BLAKE2b-256 |
5a715d927f62963167efc5cf70053b260bc37ad2e34aec005d81618b9fd147b0
|
File details
Details for the file audiogen_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: audiogen_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbfa4896c239eb4784e18e76a087a1fd8be53680fb732dc11118250603b58515
|
|
| MD5 |
ed7206a175964537403a8c81ce932134
|
|
| BLAKE2b-256 |
b94313d8fe17fb7f13f4f657104c77552951bbf8b0fc57b09ad897ad33877de8
|