### Install Dependencies and Run Server Source: https://github.com/assafelovic/gpt-researcher/blob/main/README.md Install project dependencies and start the GPT Researcher server. ```bash pip install -r requirements.txt python -m uvicorn main:app --reload ``` -------------------------------- ### Install and Run GPT Researcher MCP Server Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/mcp-server/claude-integration.md Commands to clone the repository, install dependencies, configure environment variables, and start the server. ```bash # Clone the repository (if you haven't already) git clone https://github.com/assafelovic/gptr-mcp.git # Install dependencies pip install -r requirements.txt # Set up your environment variables cp .env.example .env # Edit the .env file with your API keys # Run the server python server.py ``` -------------------------------- ### Run NextJS App with NPM Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/multi_agents/langgraph.md Commands to navigate to the frontend directory, set the required Node.js version, install dependencies, and start the development server. ```bash cd frontend/nextjs nvm install 18.17.0 nvm use v18.17.0 npm install --legacy-peer-deps npm run dev ``` -------------------------------- ### Install Dependencies Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/README.md Install the required documentation generator and project dependencies. ```console pip install pydoc-markdown cd website yarn install ``` -------------------------------- ### Set Up Environment Variables Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/mcp-server/getting-started.md Copy the example environment file and edit it to include your API keys for OpenAI and Tavily. ```bash cp .env.example .env ``` ```bash OPENAI_API_KEY=your_openai_api_key TAVILY_API_KEY=your_tavily_api_key ``` -------------------------------- ### Install Dependencies for GPT Researcher Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/blog/2026-03-03-gpt-researcher-ag2/index.md Clone the build-with-ag2 repository and install the necessary Python dependencies for the gpt-researcher example. ```bash git clone https://github.com/ag2ai/build-with-ag2.git cd build-with-ag2/ag-ui/gpt-researcher pip install -r requirements.txt ``` -------------------------------- ### Start Local Development Server Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/README.md Run these commands to generate documentation and launch the local development server. ```console pydoc-markdown yarn start ``` -------------------------------- ### Start FastAPI Server Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/frontend/vanilla-js-frontend.md Launch the application server using uvicorn. ```bash python -m uvicorn main:app ``` -------------------------------- ### Run NextJS Frontend via CLI Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/frontend/nextjs-frontend.md Commands to navigate, install dependencies, and start the development server manually. ```bash cd nextjs ``` ```bash nvm install 18.17.0 nvm use v18.17.0 ``` ```bash npm install --legacy-peer-deps ``` ```bash npm run dev ``` -------------------------------- ### Run with Docker Compose Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/getting-started/getting-started-with-docker.md Use this command to build and start the GPT-Researcher services using docker-compose. Ensure Docker Desktop is installed and configured. ```bash docker-compose up --build ``` ```bash docker compose up --build ``` -------------------------------- ### Clone GPT Researcher MCP Repository Source: https://github.com/assafelovic/gpt-researcher/blob/main/mcp-server/README.md Clone the new repository to get started with GPT Researcher MCP. Navigate into the cloned directory. ```bash git clone https://github.com/assafelovic/gptr-mcp.git cd gptr-mcp ``` -------------------------------- ### Install Dependencies and Run Bot via CLI Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/frontend/discord-bot.md Install project dependencies using npm and then run the bot using the 'npm run dev' command. This is the standard way to run the bot locally. ```bash # install dependencies npm install # run the bot npm run dev ``` -------------------------------- ### Install pango on MacOS and Linux Source: https://github.com/assafelovic/gpt-researcher/blob/main/docs/docs/gpt-researcher/gptr/troubleshooting.md Install the pango library for PDF generation support. ```bash brew install pango ``` ```bash sudo apt install libpango-1.0-0 ```