sox-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sox-mcpinspect audio file sample.wav"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SoX MCP Server
A Model Context Protocol (MCP) server that provides powerful audio inspection and processing capabilities to LLM agents. This server wraps the SoX (Sound eXchange) command-line utilities, allowing AI agents to "hear" and manipulate audio files through structured JSON interfaces.
🚀 Features
Agents can use this server to perform a wide range of audio tasks:
Inspection: Get detailed metadata (duration, sample rate, channels, bitrate, format, encoding) and statistical analysis (RMS, peak level, etc.) from audio files.
Conversion: Convert audio between formats (e.g. WAV to MP3).
Processing:
Resample audio to different sample rates.
Adjust volume, normalize peaks, or apply gain.
Trim audio or remove silence (VAD).
Remix or swap audio channels.
Concatenate or mix multiple audio files.
Apply a vast array of SoX effects (reverb, equalizer, delay, etc.).
Generation: Generate pure sine tones, white noise, or silence for testing.
Discovery: List audio files within a directory with optional extension filtering.
Related MCP server: Audio Analysis MCP Server
📋 Prerequisites
Python 3.10+
SoX Utilities: You must have the
soxandsoxiexecutables installed on your system and available in yourPATH.Windows: Download from sox.sourceforge.net or install via
choco install sox.macOS:
brew install soxLinux:
sudo apt-get install sox libsox-fmt-all
🛠️ Installation
1. Clone the repository
git clone <repository-url>
cd sox-mcp-server2. Set up a Virtual Environment
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate3. Install Dependencies
pip install -r requirements.txt💻 Development
Running the Server
The server uses the MCP standard I/O transport. To run it manually for debugging:
python sox_mcp_server.pyTesting
We provide a smoke test script to verify the server and its connection to the SoX binaries:
# Ensure you are in your virtual environment
python test_smoke.pyEnvironment Variables
If sox or soxi are not in your system PATH, you can specify their location using the SOX_PATH environment variable.
🤖 Integration
Claude Desktop
To use this server with the Claude Desktop app, add it to your configuration file.
Config Location:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Configuration Example:
{
"mcpServers": {
"sox-mcp": {
"command": "C:\\path\\to\\your\\project\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\your\\project\\sox_mcp_server.py"
],
"env": {
"SOX_PATH": "C:\\Program Files\\sox\\sox.exe"
}
}
}
}Note: Use absolute paths for the python executable and the server script. If sox is not in your system PATH, use the SOX_PATH environment variable as shown above.
LM Studio
LM Studio supports MCP servers. To add this server:
Open LM Studio.
Navigate to the MCP section in the settings/sidebar.
Click Add Server (or equivalent depending on your version).
Select Command/Stdio as the connection type.
Enter the following:
Command: The path to your
.venv\Scripts\python.exe.Arguments: The absolute path to
sox_mcp_server.py.
Click Save/Connect.
🛠️ Tool List
Tool | Description |
| Get complete metadata for one or more files. |
| List files in a directory with optional extension filtering. |
| Convert audio formats and change bit depth. |
| Change the sample rate of an audio file. |
| Merge, split, or swap audio channels. |
| Trim time ranges or auto-trim silence. |
| Normalize or adjust gain (dB). |
| Append, merge, or mix multiple files. |
| Apply any SoX effect (reverb, EQ, etc.). |
| Compute RMS, peak, and other playback statistics. |
| Generate test tones or noise files. |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bingo-tango/sox-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server