agentleFS
sandraschisandraschi/stems-mcp/llms-full.txt

stems-mcp

llms.txt1 starsChanged 3 months agoMITView on GitHub

Audio stem separation server using HTDemucs v4 via ONNX Runtime. stems-mcp is a FastMCP 3.4+ server with dual transport (stdio + HTTP). On first use it downloads the htdemucs.onnx model (~200 MB) from HuggingFace. Inference runs on CUDA if available, falling back to CPU. Portmanteau tool with 3 operations: All formats supported by soundfile: WAV, FLAC, OGG, AIFF, etc. Input is resampled to 44.1 kHz stereo internally (mono is duplicated); stems are written as 44.1 kHz stereo PCM_24 WAV.

We split this llms-full.txt into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All formats supported by soundfile: WAV, FLAC, OGG, AIFF, etc.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 3,225 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms-full.txt
# stems-mcp — Full Documentation

Audio stem separation server using HTDemucs v4 via ONNX Runtime.

## Architecture

stems-mcp is a FastMCP 3.4+ server with dual transport (stdio + HTTP).
On first use it downloads the htdemucs.onnx model (~200 MB) from HuggingFace.
Inference runs on CUDA if available, falling back to CPU.

## Setup

```powershell
# Create venv and install deps with CUDA ONNX Runtime (requires CUDA toolkit)
uv sync --extra gpu

# Or CPU-only (extras conflict: pick exactly one)
uv sync --extra cpu
```

## Running

### stdio mode (default, for Claude Desktop / Cursor)
```powershell
uv run stems-mcp
```

### HTTP mode (for webapp / REST clients)
```powershell
uv run stems-mcp --mode http
# Server listens on http://127.0.0.1:11126
```

## Environment Variables

| Variable | Default | Description |
|----------|---------|-------------|
| MCP_PORT | 11126 | HTTP transport port |
| MCP_HOST | 127.0.0.1 | Bind address |
| STEMS_MODEL_DIR | ~/.cache/stems-mcp | Model cache directory |

## Tools

### stems_separate

Portmanteau tool with 3 operations:

#### operation="separate"
Separates audio into 4 stems: vocals, drums, bass, other.
- input_path (str): Path to audio file
- output_dir (str): Directory for output WAV files

#### operation="separate_vocals"
Two-stem separation: vocals + other.
- input_path (str): Path to audio file
- output_dir (str): Directory for output WAV files

#### operation="status"
Returns model cache status and available ONNX providers (CUDA/CPU).

## REST API

- GET /api/health — Server health, uptime, provider info
- GET /api/v1/diagnostics — Full diagnostics with tool list and model status

## Model Details

- **Architecture**: Hybrid Transformer Demucs (HTDemucs) v4
- **Format**: ONNX (ops=17, float32)
- **Source**: https://huggingface.co/StemSplitio/htdemucs-onnx (MIT, SHA-256 verified on download)
- **Size**: 316 MB (316,446,953 bytes)
- **Contract**: input `mix` [1, 2, 343980] -> output `stems` [1, 4, 2, 343980], order drums/bass/other/vocals
- **Cache**: ~/.cache/stems-mcp/htdemucs.onnx

## Supported Audio Formats

All formats supported by soundfile: WAV, FLAC, OGG, AIFF, etc.
Input is resampled to 44.1 kHz stereo internally (mono is duplicated); stems are written as 44.1 kHz stereo PCM_24 WAV.

## Ports

| Port | Service |
|------|---------|
| 11126 | MCP HTTP / REST API backend |
| 11127 | Webapp frontend (reserved) |

Download now (ZIP)

  • In this repository2 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.