sound-explorer
by blindpro
README.md
# Sound Explorer
A local MCP server that lets Claude Code browse, search, play and tag sounds in large sound libraries without flooding its context. It comes with Sound Tagger, a small screen reader friendly program for describing your own sounds.
Status: version 0.3. Browsing, search, playback, tagging, exporting into projects and splitting multi-take files work. Synonyms, typo tolerance and similar sounds are next; see docs/roadmap.md.
## The problem
When Claude Code looks for a sound it normally runs `ls`, `find` or `grep` over a folder. On a library with thousands of files that dumps huge listings into the conversation, which costs tokens and usage, fills the context window, and still does not answer the real question: which file is a short, soft, mono UI click?
## How it works
1. The server scans your sound folders once and builds a small local index (a SQLite database) with each sound's path, folder, tags, description, duration, channels, sample rate and size. Later scans only look at what changed.
2. Claude asks the server questions through a few MCP tools instead of reading folders.
3. Every answer is paged and size capped. Claude sees 25 results at a time, one short line each, plus a line saying how many more pages exist.
4. Search ranks results and looks at file names, folder names, tags and descriptions at once, with filters for duration, mono or stereo, format, loops and folder.
5. Claude can play a candidate sound on your speakers, ask what you think, and save your verdict as tags or a description.
Sounds do not need any extra data to be found. File and folder names are already searchable, so a pack folder called "Boom Library - Doors" matches a search for doors. Tags and descriptions, added with Sound Tagger or by Claude, make search better over time.
## The tools
1. `sound_tree` shows the folder structure with sound counts per folder, and never lists files.
2. `sound_ls` lists one folder a page at a time, folders first, then sounds.
3. `sound_search` does ranked search with filters, a page at a time.
4. `sound_info` gives full details for up to 10 sounds.
5. `sound_play` plays one sound on your speakers so you can judge it. It only exists when `playback_enabled` is true in the config.
6. `sound_export` copies chosen sounds into a project folder and keeps a credits file there. Claude gives the folder, and can save it as the default.
7. `sound_split` finds the separate takes inside one file, as in Boom Library packs, and plays or saves each one as its own file.
8. `sound_admin` reindexes, shows stats, lists libraries, and adds or removes tags and descriptions.
The full reference is in docs/tools.md.
## Sound Tagger
Sound Tagger is a small wxPython program for listening to your sounds and giving them tags and descriptions. It uses only standard Windows controls, so NVDA, JAWS and Narrator read it without extra setup. Every control has a label with an Alt shortcut letter, and every action is in the menus with its shortcut key.
Start it with `uv run sound-tagger` from this folder. On first run without a config it asks for your sound folder. Press F1 inside the program for the keys. The full guide is in docs/sound-tagger.md.
## Docs
1. docs/architecture.md covers how the server is built, the index, the paging model and the output budget.
2. docs/tools.md is the reference for every tool, with parameters and example output.
3. docs/search.md explains the query syntax, ranking and filters.
4. docs/library.md covers folder layout, naming, tag files and licensing.
5. docs/sound-tagger.md is the guide to the tagging program.
6. docs/roadmap.md lists what is done and what comes next.
## Tech
1. Python 3.11 or newer, managed with uv.
2. The official MCP Python SDK, version 2, talking to Claude Code over stdio.
3. SQLite with the FTS5 full text extension for the index. It is built into Python, so no database server is needed.
4. soundfile and mutagen for reading audio headers from WAV, FLAC, OGG, MP3, Opus, AIFF, M4A and WavPack files.
5. sounddevice for playback. Playback supports every format except M4A and WavPack, which are indexed but cannot be played yet.
6. wxPython for Sound Tagger.
## Setup
1. Install uv, then clone this repo: `git clone https://github.com/blindpro/sound-explorer-mcp.git`.
2. Copy `sound_explorer.example.toml` to `sound_explorer.toml` and list your sound folders in it. Or run Sound Tagger once and let it write the file for you.
3. Run `uv sync` in this folder.
4. Build the index with `uv run sound-explorer index`. It runs in two passes. First every sound is listed by name and folder, which takes minutes even for hundreds of thousands of sounds, and search works from then on. Then each sound's length and format are measured. On a USB hard drive that second pass can take a few hours for a very large library. It carries on where it stopped if interrupted, and the server also checks for changes each time it starts.
5. Register the server with Claude Code for every project, putting in the folder where you cloned this repo:
```
claude mcp add --scope user sound-explorer -- uv --directory "C:\path\to\sound_explorer" run sound-explorer serve
```
6. Restart Claude Code and run `/mcp` to confirm `sound-explorer` is connected.
## Using it from a terminal
The same queries work without Claude:
1. `uv run sound-explorer tree` shows the folder structure.
2. `uv run sound-explorer ls lib:footsteps/wood --page 2` lists one folder.
3. `uv run sound-explorer search soft click --in lib:ui --max 0.3 --channels mono` searches.
4. `uv run sound-explorer info 412` shows details for one sound.
5. `uv run sound-explorer play 412` plays a sound. Add `--full` to hear all of it.
6. `uv run sound-explorer tag 412 --add menu --description "Soft click for menus"` tags a sound.
7. `uv run sound-explorer export 412 418 --dest D:/Projects/my_game/sounds --rename menu_{n}` copies sounds into a project. Add `--remember` to make that folder the default.
8. `uv run sound-explorer split 412` lists the takes inside a file. `split 412 export --sounds 2 --dest D:/Projects/my_game/sounds` saves take 2.
9. `uv run sound-explorer stats` shows index statistics.
## Running the tests
Run `uv run pytest`. The tests build a small library of generated WAV files and use a fake audio device, so they need no real sounds and make no noise.
## License
MIT. See LICENSE. Sound Explorer ships no sounds. Only index and share sounds you have the rights to use.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues