GPT Researcher MCP Server is a specialized service that enhances LLM applications with deep research capabilities. Unlike standard web search tools that return raw results requiring manual filtering, GPT Researcher autonomously explores multiple sources to deliver relevant, trusted, and up-to-date information optimized for LLM context windows.
Before installing the MCP server, ensure you have:
Clone the repository:
git clone https://github.com/assafelovic/gpt-researcher.git
cd gpt-researcher
Install dependencies:
cd gptr-mcp
pip install -r requirements.txt
Set up environment variables:
cp .env.example .env
Edit the .env
file with your API keys:
OPENAI_API_KEY=your_openai_api_key
TAVILY_API_KEY=your_tavily_api_key
You can start the MCP server using one of two methods:
python server.py
mcp run server.py
To integrate with Claude Desktop on Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
For detailed instructions, visit the Claude Desktop Integration guide.
The server provides several powerful research tools:
When using with Claude, you can request research like this:
User: "I'm considering investing in NVIDIA. Can you research the current state of the company, recent stock performance, latest product announcements, and analyst opinions?"
Claude will then use the appropriate research tools to gather information and present a comprehensive analysis. The process takes approximately 30-40 seconds but delivers higher quality information than standard search tools.
If you encounter issues:
.env
fileFor additional assistance:
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.