AudioGen MCP Server
Provides tools to generate high-quality sound effects from text descriptions using Meta's AudioGen model, supporting both single and batch audio generation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Related MCP server: moss-soundeffect
Installation
Due 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-mcpThe first run will download the AudioGen model (~2GB).
Configure Claude Code
claude mcp add audiogen ~/.audiogen-env/bin/python -- -m audiogen_mcp.serverOr add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"audiogen": {
"command": "/Users/YOUR_USERNAME/.audiogen-env/bin/python",
"args": ["-m", "audiogen_mcp.server"]
}
}
}Available Tools
Tool | Description |
| Start a background generation job, returns job_id |
| Poll job status by job_id until completed |
| List all jobs and their current status |
| List previously generated audio files |
| Check if model is loaded and device info |
How It Works
Generation runs in the background to avoid timeouts:
Call
generate_sound_effectwith your prompt → returnsjob_idPoll
check_generation_statuswith thejob_idevery 10-15 secondsWhen status is
completed, the result includesfile_path
Example Prompts
Once configured, ask Claude Code to generate sounds:
"Generate an explosion sound effect"
"Create a dark ambient tension drone, 10 seconds"
"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"
"dark ambient tension drone, synth pad, ominous low frequency rumble"
# Less good
"glass sound"
"explosion"
"ambient"Include style, mood, and context for better results.
Performance
~18 seconds to generate 1 second of audio on Apple Silicon
5 seconds of audio ≈ 90 seconds generation time
10 seconds of audio ≈ 180 seconds generation time
First generation takes longer (model loading ~5s)
Uses Metal Performance Shaders (MPS) for GPU acceleration
Output
Generated files save to ~/audiogen_outputs/ by default as WAV or OGG files.
Troubleshooting
Installation fails with xformers error
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-isolationModel 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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Generate sound effects and music from text for games, apps and videos. Returns audio file URLs.
Turn any LLM multimodal; generate images, voices, videos, 3D models, music, and more.
Make all the audio for your game from a single prompt. Describe your game and your AI assistant plans every sound it needs (sound effects, ambience loops, music tracks and character voice lines), then generates them all in one go. You get several AI versions of each sound and keep the ones you like. Sounds are organized per game in folders and scenes, and the free Godot plugin installs them into your project, ready to play with one line of code. Works with Claude, Claude Code, Cursor and any MCP client, with OAuth login (no API key needed). Free plan included; sounds can be used in commercial games.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered audio processing including stem separation, vocal extraction, loop creation, and musical analysis using state-of-the-art Demucs models. Designed for music producers and audio engineers working with Logic Pro and other DAWs.13-
- 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
- AlicenseNot gradedqualityDmaintenanceEnables local generation of game sound effects from text prompts using Stability AI's Stable Audio Open model, with no API keys or per-generation cost.1MIT
- AlicenseNot gradedqualityAmaintenanceGives Claude Code, Claude Desktop, Cursor and any other MCP client a local sound studio that turns plain-language requests into background music, instrument loops and sound effects, then re-styles, regenerates or extends them and exports seamless loops, fades and loudness-normalized WAV, OGG or FLAC files. Everything runs on Apple Silicon with no cloud service and no API key.604MIT