Skip to main content
Glama

Resemble AI Voice Generation MCP Server

by obaid
setup_venv.sh2.61 kB
#!/bin/bash # Setup script for Resemble AI MCP Server using Python venv # This script creates a Python virtual environment with Python 3.10+ and installs all required packages # Set error handling set -e echo "=== Setting up virtual environment for Resemble AI MCP Server ===" # Check if Python 3.10 or higher is available python_version="" check_python_version() { local python_cmd=$1 local version_output=$($python_cmd --version 2>&1) local major_version=$(echo $version_output | grep -oE 'Python 3\.([0-9]+)' | grep -oE '3\.([0-9]+)') local minor_version=$(echo $major_version | cut -d. -f2) if [[ $major_version == "3."* ]] && [[ $minor_version -ge 10 ]]; then python_version=$python_cmd echo "Found compatible Python version: $version_output" return 0 fi return 1 } # Try different Python commands for cmd in python3.11 python3.10 python3 python; do if command -v $cmd >/dev/null 2>&1; then if check_python_version $cmd; then break fi fi done if [ -z "$python_version" ]; then echo "Error: Python 3.10 or higher is required but not found." echo "Please install Python 3.10+ and try again." exit 1 fi # Create virtual environment echo "Creating virtual environment using $python_version..." $python_version -m venv venv # Activate virtual environment echo "Activating virtual environment..." source venv/bin/activate # Install packages echo "Installing required packages..." pip install uvicorn fastapi python-dotenv requests pydantic httpx sse-starlette # Install MCP package from GitHub echo "Installing MCP package from GitHub..." pip install git+https://github.com/modelcontextprotocol/python-sdk.git # Create .env file if it doesn't exist if [ ! -f .env ]; then echo "Creating .env file..." if [ -f .env.example ]; then cp .env.example .env else cat > .env << EOL # Resemble AI API credentials RESEMBLE_API_KEY=your_api_key_here # Output settings OUTPUT_DIR=./output AUDIO_FORMAT=mp3 # Server settings HOST=0.0.0.0 PORT=8083 EOL fi echo "Please edit .env file and add your Resemble AI API key" else echo ".env file already exists, keeping existing configuration" fi # Create output directory echo "Creating output directory..." mkdir -p output echo "" echo "=== Setup Complete ===" echo "" echo "To activate the environment and run the server:" echo "source venv/bin/activate" echo "python -m src.cli --implementation mcp --port 8083" echo "" echo "To connect Cursor to the server, use the SSE URL:" echo "http://localhost:8083/sse" 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/obaid/resemble-mcp'

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