Skip to main content
Glama

Stem MCP Server

by tolutronics
setup.sh2.45 kB
#!/bin/bash # Stem MCP Server Setup Script # This script sets up the development environment for the Stem MCP Server set -e # Exit on any error echo "🎵 Setting up Stem MCP Server..." # Check Python version - use Python 3.12 if available, otherwise try 3.10+ if command -v python3.12 &> /dev/null; then PYTHON_CMD="python3.12" elif command -v python3.11 &> /dev/null; then PYTHON_CMD="python3.11" elif command -v python3.10 &> /dev/null; then PYTHON_CMD="python3.10" else echo "❌ Python 3.10+ is required for MCP compatibility" echo "Please install Python 3.10+ using:" echo " macOS: brew install python@3.12" echo " Ubuntu: sudo apt install python3.12" exit 1 fi python_version=$($PYTHON_CMD --version 2>&1 | awk '{print $2}') echo "✅ Python version: $python_version" # Check if FFmpeg is installed if ! command -v ffmpeg &> /dev/null; then echo "⚠️ FFmpeg is not installed. Please install it:" echo " macOS: brew install ffmpeg" echo " Ubuntu: sudo apt install ffmpeg" echo " Windows: choco install ffmpeg" echo "" read -p "Continue without FFmpeg? Some features may not work (y/N): " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1 fi else echo "✅ FFmpeg found" fi # Create virtual environment if it doesn't exist if [ ! -d "venv" ]; then echo "📦 Creating virtual environment..." $PYTHON_CMD -m venv venv fi # Activate virtual environment echo "🔄 Activating virtual environment..." source venv/bin/activate # Upgrade pip echo "⬆️ Upgrading pip..." pip install --upgrade pip # Install dependencies echo "📚 Installing dependencies..." pip install -e . # Check if CUDA is available echo "🔍 Checking for CUDA support..." $PYTHON_CMD -c "import torch; print('✅ CUDA available!' if torch.cuda.is_available() else '⚠️ CUDA not available (using CPU)')" 2>/dev/null || echo "⚠️ PyTorch not installed yet - will check after installation" # Create example directories echo "📁 Creating example directories..." mkdir -p examples/audio mkdir -p examples/output echo "" echo "🎉 Setup complete!" echo "" echo "Next steps:" echo "1. Activate the virtual environment: source venv/bin/activate" echo "2. Test the server: python -m stem_mcp.server --debug" echo "3. Configure your MCP client using mcp-config-example.json" echo "" echo "📖 See README.md for usage examples and API documentation" echo ""

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/tolutronics/audio-processing-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server