We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wondermuttt/gtmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
start_server_chatgpt.shβ’2.25 KiB
#!/bin/bash
# Georgia Tech FastAPI Server for ChatGPT Integration
# This script starts the HTTP server that ChatGPT can connect to
set -e
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "π Starting Georgia Tech FastAPI Server for ChatGPT Integration..."
# Check if conda is available
if ! command -v conda &> /dev/null; then
echo "β Error: Conda not found in PATH"
exit 1
fi
# Check if gtmcp environment exists
if ! conda env list | grep -q "^gtmcp "; then
echo "β Error: gtmcp environment not found"
echo "Please run ./setup.sh first to create the environment"
exit 1
fi
# Activate environment
echo "π Activating conda environment..."
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate gtmcp
# Parse command line arguments
HOST=${1:-0.0.0.0}
PORT=${2:-8080}
# Check if config file exists
CONFIG_ARG=""
if [ -f "config.json" ]; then
CONFIG_ARG="--config config.json"
echo "π Using config.json"
else
echo "β οΈ Warning: config.json not found, using defaults"
fi
# Start the FastAPI server
echo "π Starting FastAPI server for ChatGPT..."
echo "π‘ Server will run on: http://$HOST:$PORT"
echo ""
echo "π ChatGPT Integration Setup:"
echo " 1. Open ChatGPT settings"
echo " 2. Go to Beta Features"
echo " 3. Enable 'Custom GPTs & Tools'"
echo " 4. Create new custom tool:"
echo " β’ Name: Georgia Tech MCP Server"
echo " β’ Description: Access GT course schedules and research"
echo " β’ URL: http://$HOST:$PORT"
echo ""
echo "π Available Endpoints:"
echo " β’ GET / - Server info"
echo " β’ GET /health - Health check"
echo " β’ GET /api/semesters - Available semesters"
echo " β’ GET /api/subjects/{term_code} - Subjects for semester"
echo " β’ GET /api/courses?term_code=X&subject=Y - Search courses"
echo " β’ GET /api/research?keywords=X - Search research papers"
echo ""
echo "π FEATURES:"
echo " β’ β OSCAR Course Search (500 error fixes applied)"
echo " β’ β Research Paper Search"
echo " β’ β JSON API responses"
echo " β’ β CORS enabled for ChatGPT"
echo ""
echo "π Press Ctrl+C to stop"
echo ""
python -m gtmcp.server_fastapi --host "$HOST" --port "$PORT" $CONFIG_ARG "$@"