Skip to main content
Glama

MCP Energy Server

by ebarros23
setup.sh1.99 kB
#!/bin/bash # MCP Energy Server - Setup Script # This script helps you get started quickly echo "🚀 MCP Energy Server Setup" echo "==========================" echo "" # Check Python version echo "Checking Python version..." python_version=$(python3 --version 2>&1 | awk '{print $2}') required_version="3.10" if [ "$(printf '%s\n' "$required_version" "$python_version" | sort -V | head -n1)" = "$required_version" ]; then echo "✅ Python $python_version detected" else echo "❌ Python 3.10+ required. You have $python_version" exit 1 fi echo "" # Create virtual environment echo "Creating virtual environment..." if [ ! -d "venv" ]; then python3 -m venv venv echo "✅ Virtual environment created" else echo "✅ Virtual environment already exists" fi echo "" # Activate virtual environment echo "Activating virtual environment..." source venv/bin/activate echo "✅ Virtual environment activated" echo "" # Install dependencies echo "Installing dependencies..." pip install --upgrade pip > /dev/null 2>&1 pip install -e . > /dev/null 2>&1 echo "✅ Dependencies installed" echo "" # Setup environment file if [ ! -f ".env" ]; then echo "Setting up environment file..." cp .env.example .env echo "✅ .env file created from template" else echo "✅ .env file already exists" fi echo "" # Test the server echo "Testing server..." timeout 2 python server.py > /dev/null 2>&1 & sleep 1 if pgrep -f "python server.py" > /dev/null; then pkill -f "python server.py" echo "✅ Server test successful" else echo "⚠️ Server test inconclusive (this is often normal)" fi echo "" echo "🎉 Setup Complete!" echo "" echo "Next steps:" echo "1. To test: python server.py" echo "2. For Claude Desktop: See QUICKSTART.md" echo "3. For GitHub: See DEPLOYMENT.md" echo "" echo "Quick test command:" echo " python server.py" echo "" echo "To activate the virtual environment in the future:" echo " source venv/bin/activate" 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/ebarros23/mcp-energy'

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