A comprehensive suite of audio processing tools exposed as MCP tools via DeclarAgent, enabling AI assistants to perform professional audio tasks like trimming, normalizing, compressing, and analyzing music files.
The SAS Audio Processor represents a significant advancement in audio production tooling, offering 25 specialized audio processing tools that integrate seamlessly with AI assistants through the Model Context Protocol (MCP). This suite transforms how developers and musicians interact with audio files, making professional-grade audio processing accessible through natural language commands.
What Makes SAS Audio Processor Different
Unlike traditional audio software that requires manual operation through complex interfaces, SAS Audio Processor exposes every tool as a structured MCP command. This means AI assistants like Claude Code can now perform sophisticated audio tasks through simple conversational requests. The system processes WAV files exclusively and returns structured JSON results, creating a reliable pipeline for automated audio workflows.
The Complete Toolset
The processor organizes its 25 tools into five functional categories:
Processing Tools handle fundamental audio manipulation:
trimdetects downbeats and cuts audio to precise bar lengthstime-stretchchanges tempo without affecting pitchconvertadjusts sample rates and bit depthsmonoconverts stereo to monosilence-removetrims dead space from recordingssplit-barsdivides audio into equal bar-length segments
Effects Tools provide professional audio enhancement:
normalizeadjusts volume to target LUFS or peak levelsgainapplies precise volume changes in decibelscompressadds dynamics processing with customizable thresholdseqapplies parametric equalizationreverbadds spatial effects with room simulationlimitprevents clipping with brick-wall limitingfilterimplements high-pass or low-pass filteringpitch-shifttransposes audio by semitones
Analysis Tools extract musical information:
analyzedetects BPM, duration, sample rate, and channelsdetect-keyidentifies musical key and mode with confidence scoringloudnessmeasures integrated LUFS and peak levelsonset-detectfinds transient events in audio
MIDI Tools bridge audio and MIDI workflows:
melody-to-midiextracts monophonic melodies into MIDI files
Composite Tools combine multiple operations:
master-trackapplies normalize → compress → limit chainsample-prepruns analyze → trim → normalize → converttempo-matchanalyzes and time-stretches to target BPMfull-analysiscombines analyze + detect-key + loudnessmelody-extractnormalizes then extracts melody to MIDI
AI Integration in Practice
The real power emerges when these tools connect to AI assistants. Using DeclarAgent, developers can configure MCP servers that expose all 25 tools to Claude Code or other MCP-compatible clients. The setup process is straightforward:
- Install DeclarAgent via Go
- Clone and install the SAS Audio Processor
- Configure MCP settings in your editor's config file
- Start using audio tools through natural conversation
A typical workflow might look like: "Analyze this drum loop and tell me the BPM," followed by "Trim it to 4 bars and normalize to -14 LUFS," and finally "Now master it." Each step executes automatically, with the AI handling tool selection and parameter configuration.
Technical Implementation
Under the hood, each YAML plan file in the plans/ directory defines one MCP tool. DeclarAgent reads these at startup and exposes them to MCP clients. When a tool is called, DeclarAgent executes the sas-processor CLI, which outputs line-delimited JSON to stdout. This design enables real-time progress reporting for operations like trimming, where users see percent-complete updates.
Building and Deployment
The processor targets macOS 10.15+ and requires Python 3.9+. Developers can build self-contained binaries using PyInstaller, with the main binary weighing approximately 220MB due to dependencies like numpy, scipy, and librosa. Cross-architecture builds support both Apple Silicon and Intel processors.
Current Limitations
While powerful, the processor has some constraints:
- WAV format only (no MP3, FLAC, or other formats)
- macOS binary builds only (CLI works anywhere Python runs)
- Large binary size due to scientific computing dependencies
The Future of Audio Production
SAS Audio Processor exemplifies how AI integration is transforming creative workflows. By exposing professional audio tools through natural language interfaces, it lowers the barrier to entry for music production while accelerating expert workflows. The combination of 25 specialized tools, MCP integration, and AI assistant compatibility creates a new paradigm where audio processing becomes as simple as having a conversation.
The project's MIT license and comprehensive documentation make it accessible for both individual creators and enterprise teams looking to automate audio processing tasks. As AI assistants become more capable, tools like SAS Audio Processor will likely become standard components in creative and development workflows.

Comments
Please log in or register to join the discussion