# assafelovic/gpt-researcher

> gpt-researcher is an autonomous agent that conducts deep research on any data using any LLM provider. It produces detailed research reports with citations from web sources and local documents. A planner agent generates research questions, execution agents gather and summarize information for each question, and a publisher combines the findings into a final report. The project is written mainly in Python, with a Next.js frontend.

Source: https://github.com/assafelovic/gpt-researcher
Indexed: commit 5d84d2f on 2026-08-12 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: MCP server
- Language: Python
- Stars: 30,863 at index time
- License: Apache-2.0
- Code health: 7.3/10, Good
- Last commit: 2026-07-14
- Contributors: 285

## Install

From the README: https://github.com/assafelovic/gpt-researcher#install-as-claude-skill

Clone the gpt-researcher repository.
    git clone https://github.com/assafelovic/gpt-researcher.git

Move into the gpt-researcher folder.
    cd gpt-researcher

Set your API keys by exporting them or storing them in a .env file.
    export OPENAI_API_KEY={Your OpenAI API Key here}

Install the dependencies.
    pip install -r requirements.txt

Start the server.
    python -m uvicorn main:app --reload

## How it works

Research requests enter through the server in backend/server/app.py, which hosts the entry points for serving reports. backend/report_type/deep_research/main.py is the entry point for the deep research workflow, which explores a topic as a tree of subtopics with configurable depth and breadth. The gpt_researcher directory is the core engine and wires agents, prompts, configuration, scraping, retrieval and utility services into one research runtime. deep_agents/main.py starts the Deep Agents Runner, which handles corpus building, agent behavior and benchmark execution. The frontend/nextjs directory holds the Next.js client integration points, configuration and helpers for the user interface. The aggregated findings are written into a report that can be exported to PDF, Word and other formats.

- backend/report_type/deep_research/main.py: entry point
- backend/server/app.py: entry point
- deep_agents/main.py: entry point
- docs/blog/2023-09-22-gpt-researcher/index.md: entry point
- docs/blog/2023-11-12-openai-assistant/index.md: entry point
Modules: gpt_researcher, docs, frontend, tests, deep_agents, .triage, multi_agents, backend. 614 files, 63,716 lines, 1,606 symbols.

## Code health

- Score: 7.3/10 (Good)
- Rank: #125 of 257 ranked repos
- Hotspots: gpt_researcher/skills/deep_research.py, gpt_researcher/skills/researcher.py, gpt_researcher/utils/costs.py, gpt_researcher/llm_provider/generic/base.py, gpt_researcher/utils/llm.py
- Lowest file: gpt_researcher/skills/researcher.py
- Dead code: 27 findings

## Maintenance

- Last commit 2026-07-14, first commit 2023-05-12, 3,077 commits
- 285 contributors, bus factor 3

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/assafelovic/gpt-researcher/security

## More

- Page: https://repowise.dev/repo/assafelovic/gpt-researcher
- Ask this codebase: https://repowise.dev/repo/assafelovic/gpt-researcher/chat
- Docs: https://repowise.dev/repo/assafelovic/gpt-researcher/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/assafelovic/gpt-researcher
