This MCP server provides a multi-agent research framework that coordinates various AI agents to perform complex research tasks using the Message Control Protocol. When connected to an MCP-compatible client, you can use the deep_research
tool to automate research workflows.
Clone the repository
git clone https://github.com/yourusername/deep-research-mcp.git
cd deep-research-mcp
Set up environment variables
cp .env.example .env
Edit the .env
file to add your API keys and other required variables:
OPENAI_API_KEY=sk-123-yourkey
# Add any additional environment variables here
Install required dependencies
pip install -r multi_agents/requirements.txt
Configure your MCP client
Edit your claude_desktop_config.json
file to include:
{
"mcpServers": {
"deep-research-mcp": {
"command": "path/to/your/python/interpreter",
"args": [
"/path/to/this/project/deep-research-mcp/mcp_server.py"
]
}
}
}
Be sure to replace the paths with the actual paths on your system.
Run the MCP server with:
python mcp_server.py
This starts a FastMCP server locally, exposing the deep_research
tool to any connected MCP-compatible client.
With the server running, open your MCP-compatible client (such as Claude Desktop). The deep_research
tool should now be available through the client's tool interface.
The tool coordinates multiple specialized agents:
Each agent plays a specific role in the research workflow, allowing for complex tasks to be broken down and executed efficiently.
When using the tool through an MCP-compatible client, you'll typically:
The final result can be returned directly to your client or saved to files depending on the configuration.
.env
fileFor more complex errors, check the server logs which display in the terminal where you ran the server.
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.