Skip to main content
Glama

sfxbrew

Procedural game sound effects for humans and AI coding agents. Eastern (wuxia / xianxia) sounds plus the usual game sounds, synthesized locally, with no API keys, no network and no per-call cost.

  • 45 presets. Eastern instruments: guqin, pipa, erhu, bamboo flute, temple bell, gong, wind chime, wooden fish, war drum. Xianxia magic: sword qi, spell cast, heavenly thunder, lightning, breakthrough, talisman, alchemy, qi gathering. Combat: hit, explosion, laser, whoosh, arrow, sword clash, shield block. UI and items: click, confirm, error, notification, page turn, typing, coin, pickup, power-up, level up, chest open. Character: jump, land, footsteps on stone and grass. Ambience: rain, wind, campfire, stream, cave drip, monster growl

  • Every generation is a fresh variation; a seed reproduces it exactly

  • Output: 16-bit WAV, or a ~7 KB dependency-free JavaScript snippet that plays the same sound with Web Audio

  • Free for commercial use, no attribution required for the sounds you generate

For AI agents (MCP)

Claude Code:

claude mcp add sfxbrew -- npx -y sfxbrew mcp

Other MCP clients (Cursor, Windsurf, Claude Desktop …):

{
  "mcpServers": {
    "sfxbrew": { "command": "npx", "args": ["-y", "sfxbrew", "mcp"] }
  }
}

Tools:

Tool

What it does

list_presets

Presets and what each one is good for

generate_sfx

Write one or more WAV variants (and optionally a .js file with play functions)

render_patch

Render a hand-tuned patch JSON

get_js_code

One drop-in JS snippet with playX() functions for several sounds

export_pack

A game-engine folder: WAV variations or seamless loops + Godot .tres, Unity script, web player, README

Then just ask: "add a coin sound and a hit sound to my game".

Related MCP server: audiomade

Agent skill

A free SKILL.md that teaches your agent when and how to use SFX Brew: skills/sfxbrew/SKILL.md, also installable from Agensi.

Seamless loops and engine packs

Ambience and sustained sounds (rain, wind, campfire, stream, cave drip, thunder, wind chimes, war drums, monster growl) can be rendered as seamless loops of 10 to 120 seconds. The loop is stitched from several slightly different takes with equal-power crossfades, so it doesn't repeat every few seconds, and the WAV carries a loop point that Godot, FMOD, Wwise and GameMaker pick up automatically.

An engine pack is a folder (or a zip from the web editor) with WAV variations or loops plus:

  • godot/<name>.tres: an AudioStreamRandomizer that plays a random variation each time (Godot 4)

  • unity/SfxBrewPlayer.cs: drop on a GameObject, drag in the clips, call Play() (or tick Loop)

  • web/<name>.js: plain Web Audio player, playX() or startX() / stopX() for loops

CLI

npx sfxbrew list
npx sfxbrew coin --out assets/sfx/coin.wav
npx sfxbrew swordQi --count 5 --out assets/sfx/sword.wav
npx sfxbrew hit --seed 42 --js src/sfx.js
npx sfxbrew render my-patch.json --out boom.wav
npx sfxbrew rain --loop 30 --out assets/sfx/rain-loop.wav   # seamless loop with a WAV loop point
npx sfxbrew pack swordQi --count 8 --out .                   # Godot / Unity / web pack
npx sfxbrew pack campfire --loop 20 --out .

Music

Background music is composed and rendered locally too: one full piece per seed (intro, theme, contrast, theme, outro) as a seamless stereo WAV loop.

npx sfxbrew music list                                  # moods and stingers
npx sfxbrew music medieval --count 3 --out music/town.wav
npx sfxbrew music primitive --seed 7 --out music/stone-age.wav
npx sfxbrew stinger guiltChild --out music/guilt-child.wav

Moods: calm, battle, mystery, sad (Eastern), primitive (bone flute, hummed drone, log drums, sticks, shaker), tribal (clay ocarina, bamboo flute, plucked zither, frame drum), medieval (dorian fiddle and shawm, lute, bagpipe drone, tambourine). Stingers: victory, defeat, battleStart, treasure, breakthrough, and three quiet 2-3 s ones for dark moments: guiltCannibal, guiltChild, grief. MCP tool: generate_music.

Sound packs

Ready-made WAV packs: Xianxia & Wuxia Game Sound Pack on itch.io (44 sounds), or download any pack as a ZIP from sfxbrew.com/sounds.

Library

const sfx = require('sfxbrew');
const { patch, seed } = sfx.generate('coin');
const { bytes } = await sfx.renderWav(patch);

Browser editor

Tweak any sound with sliders and export WAV / JS in the web editor (same engine).

License

Code: MIT. Generated sounds: yours, free for any use.

A few presets (war drum, lightning, gong, erhu) use short CC0 recordings from Freesound, listed with their recordists in samples/CREDITS.md.

Available Tools

4 tools
generate_sfxGenerate sound effect WAV filesA

Synthesize game sound effects locally from a preset and write 16-bit mono 44.1 kHz WAV files. Free for commercial use, no attribution. Returns file paths, the seed of each variant (reuse it to get the exact same sound) and the patch JSON (edit it and call render_patch to fine-tune). Presets: swordQi, guqin, bell, gong, spell, thunder, lightning, breakthrough, talisman, alchemy, chime, flute, qiGather, pipa, erhu, woodfish, drum, coin, pickup, click, confirm, error, jump, hit, explosion, laser, powerUp, levelUp, whoosh, arrow, swordClash, footstepStone, rain, notify, footstepGrass, land, shieldBlock, wind, campfire, stream, caveDrip, pageTurn, typing, chestOpen, monsterGrowl.

Inputs: preset (required), out_path (required), seed, count, +2 more.

get_js_codeGet drop-in JavaScript for soundsA
Read-only

Return one self-contained JavaScript snippet (Web Audio, ~7 KB, no dependencies, no audio files) that defines play functions for several sounds. Best for browser games: paste it in and call e.g. playCoin() after a user gesture. Each sound is either {name, preset, seed} or {name, patch}.

Inputs: sounds (required).

list_presetsList sound presetsA
Read-only

List the procedural sound effect presets (Eastern wuxia/xianxia sounds and general game sounds) with category, tags and what each is good for. Optionally filter by category (combat, magic, instrument, ui, items, character, ambience, creature) or a search query such as "metal", "calm" or "sword". Every call to generate_sfx with a preset gives a new random variation; pass a seed to reproduce one.

Inputs: query, category.

render_patchRender a custom sound patchA

Render a hand-edited patch (for example one returned by generate_sfx with changed values) to a WAV file. A patch is JSON: { layers: Layer[1..6], reverb 0-1, echo 0-0.9, echoTime s, drive 0-1, crush 0|1-16 bits, gain 0-1 }. Layer fields (all optional, defaults in brackets): type: "tone"|"fm"|"string"|"pluck"|"bell"|"noise" ["tone"]; wave: "sine"|"triangle"|"square"|"sawtooth" (tone/fm/pluck) string: physically modelled plucked string (Karplus-Strong); bright 0-1 [0.5] = darker (guqin) to brighter (pipa); decay = ring time bell: partials = [[ratio, amplitude, decayMultiplier 0-1], ...] (max 16) for custom bells, gongs, wood blocks; default is a metal bar sample: a CC0 recording; sample = one of drum-center-loud, drum-center-soft, drum-edge-loud, drum-rim, lightning-1, lightning-2, gong-1, gong-2, erhu-d3, erhu-f5, sword-clash, footstep-stone, arrow, footstep-grass, land, shield-block, page-turn, typewriter, chest-open, monster-growl, campfire, stream; pitch / pitchEnd semitones (slide over slideTime); offset s into the recording; set hold ≈ recording length to let it ring naturally (lengths s: drum-center-loud 2.7, drum-center-soft 2.7, drum-edge-loud 3.5, drum-rim 1.8, lightning-1 6.5, lightning-2 7, gong-1 10, gong-2 12, erhu-d3 4.9, erhu-f5 6, sword-clash 7.2, footstep-stone 5.4, arrow 4, footstep-grass 3.2, land 2.1, shield-block 3.6, page-turn 8.75, typewriter 4.55, chest-open 11.1, monster-growl 12.8, campfire 10.4, stream 10.4) freq, freqEnd: Hz, pitch slides exponentially from freq to freqEnd; slideTime: s the slide takes (0 = whole sound) hold: s to stay at full volume before the decay starts (louder, more violent bodies) repAccel: gap multiplier per repeat (<1 speeds up, e.g. 0.86 for an accelerating drum build-up); repGain: loudness multiplier per repeat (>1 crescendo) freqPeak / cutoffPeak (Hz, 0 = off): go up to this value by the end of attack, then down to freqEnd / cutoffEnd (Doppler-like pass-by for swishes) start: s delay; attack: s; decay: s (exponential fade); vol: 0-1 filter: "none"|"lowpass"|"highpass"|"bandpass"; cutoff, cutoffEnd: Hz; sweepTime: s (0 = whole); q: resonance vib: vibrato depth in cents; vibRate: Hz rep: number of repeats; repGap: s between repeats; repStep: pitch step per repeat; scale: "penta"|"chromatic" (unit of repStep) jitter 0-1: random gaps (1 = Poisson-like) and loudness per repeat; pitchJitter: semitones of random pitch/cutoff per repeat (crackles, bubbles, debris) noise layers: color "white"|"pink"|"brown"; any layer: trem 0-1 + tremRate Hz = wavering loudness (flames, rumble) patch.seed: integer that fixes the random pattern of jitter unison: 1-5 stacked voices; detune: cents spread fmRatio, fmIndex, fmDecay: FM modulator ratio, depth and how fast the depth decays (type "fm" only) Tips: punchy impacts = short noise layer (decay ~0.01) + tone with fast slideTime (~0.04); metallic = fm or bell; keep total vol*gain under ~1.

Inputs: patch (required), out_path (required), name, js_path.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a clear role in the pipeline: discover presets, synthesize from a preset, render a hand-edited patch, and export browser JS. The only mild overlap is that generate_sfx and render_patch both output WAV files, but their inputs (preset vs. patch JSON) and intended stages are clearly distinguished.

    Naming Consistency5/5

    All four names follow a clean verb_noun snake_case pattern: list_presets, generate_sfx, render_patch, get_js_code. The convention is predictable and readable.

    Tool Count5/5

    Four tools is compact and well-scoped for a procedural SFX generator, and each tool earns its place in a coherent discover → generate → fine-tune → export workflow. Nothing feels redundant or missing at the count level.

    Completeness4/5

    The core lifecycle is covered: browsing presets, generating variants with seeds, editing patch JSON for fine-tuning, and exporting playable JS snippets. Minor gaps remain, such as no audio preview/playback tool and no way to list, manage, or delete previously generated files.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Generates four game-ready AI sound effect candidates from a text description, lets users audition them, and installs only the selected WAV into Unity, Godot, or generic game projects.
      6
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables coding agents to synthesize and play video-game sound effects by translating natural-language descriptions into layered synthesis specs, then rendering normalized WAV files.
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to search, rank, and retrieve 330 synthesized sound effects, themes, and spoken lines, and to generate ready-to-paste playback code or whole-app sound kits through a zero-dependency stdio MCP interface.
      1
      MIT