Repository hosting for the MCP server code, accessed through cloning for installation.
Supported as a web retriever option for the quick_search tool, allowing search queries through Google's search engine.
Integrates with OpenAI's API for powering the research functionality, requiring an API key for operation.
🔍 GPT Researcher MCP Server
Why GPT Researcher MCP?
While LLM apps can access web search tools with MCP, GPT Researcher MCP delivers deep research results. Standard search tools return raw results requiring manual filtering, often containing irrelevant sources and wasting context window space.
GPT Researcher autonomously explores and validates numerous sources, focusing only on relevant, trusted and up-to-date information. Though slightly slower than standard search (~30 seconds wait), it delivers:
- ✨ Higher quality information
- 📊 Optimized context usage
- 🔎 Comprehensive results
- 🧠 Better reasoning for LLMs
💻 Claude Desktop Demo
https://github.com/user-attachments/assets/ef97eea5-a409-42b9-8f6d-b82ab16c52a8
Resources
research_resource
: Get web resources related to a given task via research.
Primary Tools
deep_research
: Performs deep web research on a topic, finding the most reliable and relevant informationquick_search
: Performs a fast web search optimized for speed over quality, returning search results with snippets. Supports any GPTR supported web retriever such as Tavily, Bing, Google, etc... Learn more herewrite_report
: Generate a report based on research resultsget_research_sources
: Get the sources used in the researchget_research_context
: Get the full context of the research
Prompts
research_query
: Create a research query prompt
Prerequisites
Before running the MCP server, make sure you have:
- Python 3.11 or higher installed
- Important: GPT Researcher >=0.12.16 requires Python 3.11+
- API keys for the services you plan to use:
⚙️ Installation
- Clone the GPT Researcher repository:
- Install the gptr-mcp dependencies:
- Set up your environment variables:
- Copy the
.env.example
file to create a new file named.env
:
- Edit the
.env
file and add your API keys and configure other settings:
- Copy the
You can also add any other env variable for your GPT Researcher configuration.
🚀 Running the MCP Server
You can run the MCP server in several ways:
Method 1: Directly using Python
Method 2: Using the MCP CLI (if installed)
Method 3: Using Docker (recommended for production)
Option A: Standalone Mode
This is the simplest way to run the server if you don't need to connect to other containers:
Option B: With Network for n8n Integration
If you need to connect to other services like n8n on the same network:
Note: The Docker image uses Python 3.11 to meet the requirements of gpt-researcher >=0.12.16. If you encounter errors during the build, ensure you're using the latest Dockerfile from this repository.
Once the server is running, you'll see output indicating that the server is ready to accept connections. You can verify it's working by:
- Accessing the OpenAPI docs at http://localhost:8000/docs
- Testing the MCP endpoint at http://localhost:8000/mcp
Integrating with Claude
You can integrate your MCP server with Claude using:
Claude Desktop Integration - For using with Claude desktop application on Mac
For detailed instructions, follow the link above.
💻 Claude Desktop Integration
To integrate your locally running MCP server with Claude for Mac, you'll need to:
- Make sure the MCP server is installed and running
- Configure Claude Desktop:
- Locate or create the configuration file at
~/Library/Application Support/Claude/claude_desktop_config.json
- Add your local GPT Researcher MCP server to the configuration
- Restart Claude to apply the configuration
- Locate or create the configuration file at
For complete step-by-step instructions, see the Claude Desktop Integration guide.
📝 Example Usage with Claude
🔧 Troubleshooting
If you encounter issues while running the MCP server:
- Make sure your API keys are correctly set in the
.env
file - Check that you're using Python 3.11 or higher (required by gpt-researcher >=0.12.16)
- Ensure all dependencies are installed correctly
- Check the server logs for error messages
If you're running with Docker and experiencing issues:
- Verify the container is running:
docker ps | grep gpt-mcp-server
- Check container logs:
docker logs gpt-mcp-server
- Confirm the server is binding to all interfaces - logs should show listening on 0.0.0.0:8000
- If you see dependency errors during build:
- Ensure you're using the updated Dockerfile with Python 3.11
- Try rebuilding with the
--no-cache
flag:docker build --no-cache -t gpt-mcp-server .
- Check the version of gpt-researcher in your requirements.txt matches the Python version
For local installation issues:
👣 Next Steps
- Explore the MCP protocol documentation to better understand how to integrate with Claude
- Learn about GPT Researcher's core features to enhance your research capabilities
- Check out the Advanced Usage guide for more configuration options
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
📞 Support / Contact
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enhances LLM applications with deep autonomous web research capabilities, delivering higher quality information than standard search tools by exploring and validating numerous trusted sources.
Related MCP Servers
- AsecurityAlicenseAqualityIntegrates Tavily's search API with LLMs to provide advanced web search capabilities, including intelligent result summaries, domain filtering for quality control, and configurable search parameters.Last updated -3649JavaScriptMIT License
- -securityFlicense-qualityEnables LLMs to perform sophisticated web searches through proxy servers using Tavily's API, supporting comprehensive web searches, direct question answering, and recent news article retrieval with AI-extracted content.Last updated -1Python
- -securityAlicense-qualityProvides AI-powered web search capabilities using Tavily's search API, enabling LLMs to perform sophisticated web searches, get direct answers to questions, and search recent news articles.Last updated -53PythonMIT License
- -securityAlicense-qualityEnables LLMs to autonomously retrieve and explore web content by fetching pages and recursively following links to a specified depth, particularly useful for learning about topics from documentation.Last updated -TypeScriptMIT License