mcp-soundfx
An MCP server that runs Stability AI's Stable Audio Open 1.0 locally on NVIDIA GPUs, enabling AI agents to generate broadcast-quality 44.1 kHz stereo WAV sound effects from text prompts fully offline with no API costs.
README
mcp-soundfx
Local text-to-SFX generation for AI agents. An MCP server that runs Stability AI's Stable Audio Open 1.0 on your own NVIDIA GPU, so any MCP-capable agent (Claude Code, Claude Desktop, etc.) can generate broadcast-quality 44.1 kHz stereo WAV sound effects from text prompts — fully offline after the initial model download, no API costs, no usage limits.
Built and used in production at Core Epoch to generate shipping game audio: UI clicks, inhale/exhale foley, ambient loops, and achievement stingers, all authored by an agent iterating on prompts and auditioning seeds.
What it does
Exposes one tool, generate_sound:
| Parameter | Description |
|---|---|
prompt |
Sound description, written like a brief to a sound designer ("glass shattering on a tile floor", "retro 8-bit coin pickup") |
output_path |
Absolute path for the output .wav |
negative_prompt |
Qualities to steer away from ("hiss, static, distortion") |
duration_seconds |
Up to 47 s (UI clicks: 0.5–1.5 s, impacts: 2–5 s, ambience: 10–30 s) |
steps |
50 = fast draft, 100 = production, 200 = max fidelity |
seed |
Deterministic per (prompt, seed) — change to audition variations |
The tool's docstring embeds a full prompt-engineering and negative-prompt guide, so the agent reads how to write good audio prompts without any human in the loop. The model excels at SFX, foley, ambience, and musical phrases; it does not generate speech or vocals.
VRAM-friendly by design: the pipeline loads in float16 (~2.5 GB VRAM), generates, and is torn down after every call — so it coexists with games, renderers, or anything else that owns the GPU between generations.
Setup
Requirements: Windows/Linux, Python 3.10+, NVIDIA GPU with ~3 GB free VRAM, CUDA-capable torch.
-
Accept the gated model license (one time): log into Hugging Face and accept the terms on the stable-audio-open-1.0 page, then create a Read token at Token Settings.
-
Install:
cd mcp-soundfx python -m venv .venv .venv\Scripts\activate # Windows (source .venv/bin/activate on Linux) pip install torch --index-url https://download.pytorch.org/whl/cu121 pip install -r requirements.txt -
Register the server with your MCP client. For Claude Code / Claude Desktop:
{ "mcpServers": { "mcp-soundfx": { "command": "powershell.exe", "args": ["-ExecutionPolicy", "Bypass", "-File", "C:\\path\\to\\mcp-soundfx\\run.ps1"], "env": { "HF_TOKEN": "hf_your_read_token" } } } }The launch scripts use
.venvnext to the script by default; setMCP_SOUNDFX_VENVto point elsewhere. -
Smoke test (optional, ~30 s on first run after model download):
python test_generation.py
The first generation downloads the model weights (~2.5 GB) to your Hugging Face cache; everything after that is offline.
Why an MCP server instead of a script?
Because the interesting workflow is agentic: "give the pause menu a soft airy whoosh, try three variations, keep the least clicky one" is a conversation, not a command line. Putting the generator behind MCP means the agent owns the loop — prompt, generate, listen (via whatever playback tool it has), re-prompt — and sound design becomes something you delegate rather than operate.
License
The server code is MIT © 2026 Core Epoch LLC.
The model (Stable Audio Open 1.0) is gated and separately licensed by Stability AI under the Stability AI Community License — free for research, non-commercial, and commercial use by entities under $1M annual revenue; you accept those terms directly with Stability AI when you unlock the model, and generated outputs are yours. This project is not affiliated with or endorsed by Stability AI.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.