#!/bin/bash
# Setup script for GPT Researcher MCP Server
# Check if Python is installed
if ! command -v python &> /dev/null; then
echo "Python is not installed. Please install Python 3.10 or higher."
exit 1
fi
# Check Python version
python_version=$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
required_version="3.10"
if [ "$(printf '%s\n' "$required_version" "$python_version" | sort -V | head -n1)" != "$required_version" ]; then
echo "Python version $python_version is not supported. Please use Python 3.10 or higher."
exit 1
fi
echo "Setting up GPT Researcher MCP Server..."
# Create virtual environment
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python -m venv venv
fi
# Activate virtual environment
source venv/bin/activate
# Install dependencies
echo "Installing dependencies..."
pip install -r requirements.txt
# Check if .env file exists
if [ ! -f ".env" ]; then
echo "Creating .env file from example..."
cp .env.example .env
echo "Please edit .env file and add your API keys before running the server."
exit 1
fi
# Run the server
echo "Starting GPT Researcher MCP Server..."
python server.py
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/assafelovic/gptr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server