Deep Research Agent MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install -r requirements.txt
export GEMINI_API_KEY=your_key
python -m src.mcp_server.server
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "GEMINI_API_KEY=${GEMINI_API_KEY}" deep-research-mcp -- node "<FULL_PATH_TO_DEEP_RESEARCH_MCP>/dist/index.js"

Replace <FULL_PATH_TO_DEEP_RESEARCH_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:GEMINI_API_KEY+ 1 optional
README.md

A LangGraph-powered research agent that performs iterative web searches

Deep Research Agent MCP Server

šŸ” Intelligent AI Research Agent - A sophisticated LangGraph-powered research agent wrapped as a Model Context Protocol (MCP) server for seamless integration with AI assistants like Claude, Cursor, and other MCP-compatible clients.

✨ Features

**Advanced Research Capabilities**

  • Multi-Step Research: Conducts iterative web research with reflection and refinement loops
  • Google Search Integration: Uses Google Search API with advanced grounding metadata
  • AI-Powered Analysis: Leverages multiple Gemini models (2.0 Flash, 2.5 Flash, 2.5 Pro) for different tasks
  • Comprehensive Reports: Generates structured research reports with proper citations and source verification
  • Configurable Depth: Customizable research loops and query generation parameters

**MCP Server Integration**

  • FastMCP Server: Built on FastMCP for seamless MCP protocol support
  • Real-time Streaming: Progress updates streamed to clients during research execution
  • HTTP Transport: Accessible via HTTP for remote deployment and integration
  • Health Monitoring: Built-in health checks and statistics endpoints
  • Error Handling: Robust error handling with detailed logging

**Deployment Ready**

  • Docker Support: Containerized for easy deployment
  • Render Integration: One-click deployment to Render platform
  • Environment Configuration: Flexible configuration via environment variables
  • Scalable Architecture: Designed for concurrent research requests

Architecture

Research Agent Workflow

graph TD
    A[Research Topic Input] --> B[Query Generation]
    B --> C[Web Research]
    C --> D[Content Analysis]
    D --> E[Reflection & Gap Analysis]
    E --> F{Research Complete?}
    F -->|No| G[Generate Follow-up Queries]
    G --> C
    F -->|Yes| H[Final Report Generation]
    H --> I[Structured Output with Citations]
    
    subgraph "AI Models Used"
        J[Gemini 2.0 FlashQuery Generation]
        K[Gemini 2.0 FlashWeb Research]
        L[Gemini 2.5 FlashReflection]
        M[Gemini 2.5 ProFinal Report]
    end
    
    B -.-> J
    C -.-> K
    E -.-> L
    H -.-> M

MCP Server Architecture

graph TB
    subgraph "Client Applications"
        A1[Claude Desktop]
        A2[Cursor IDE]
        A3[Custom MCP Client]
    end
    
    subgraph "MCP Server (FastMCP)"
        B1[HTTP Transport Layer]
        B2[Research Tool Handler]
        B3[Progress Streaming]
        B4[Health & Stats Endpoints]
    end
    
    subgraph "LangGraph Research Agent"
        C1[Query Generation Node]
        C2[Web Research Node]
        C3[Reflection Node]
        C4[Final Answer Node]
    end
    
    subgraph "External Services"
        D1[Google Search API]
        D2[Gemini AI Models]
    end
    
    A1 --> B1
    A2 --> B1
    A3 --> B1
    B1 --> B2
    B2 --> B3
    B2 --> C1
    C1 --> C2
    C2 --> C3
    C3 --> C4
    C2 --> D1
    C1 --> D2
    C3 --> D2
    C4 --> D2

Deployment Architecture

graph TB
    subgraph "Development"
        A1[Local Development]
        A2[Docker Compose]
    end
    
    subgraph "Production Deployment"
        B1[Render Platform]
        B2[Docker Container]
        B3[Custom Cloud Deploy]
    end
    
    subgraph "MCP Server Container"
        C1[FastMCP HTTP Server]
        C2[LangGraph Agent]
        C3[Health Monitoring]
        C4[Environment Config]
    end
    
    A1 --> C1
    A2 --> C1
    B1 --> C1
    B2 --> C1
    B3 --> C1

šŸš€ Quick Start

1. **Render Deployment (Recommended)**

Deploy to Render in 5 minutes:

  1. Fork this repository to your GitHub account

  2. Create Render account at render.com

  3. Deploy service:

    • Click "New +" → "Web Service"
    • Connect your GitHub repository
    • Configure settings:
      Name: deep-research-mcp-server
      Runtime: Python 3
      Build Command: pip install -r requirements.txt
      Start Command: python -m src.mcp_server.server
      
  4. Add environment variables:

    GEMINI_API_KEY = your_gemini_api_key_here
    PORT = 8000
    
  5. Deploy and get your server URL: https://your-service-name.onrender.com

2. **Local Development**

# Clone repository
git clone https://github.com/your-username/deep-research-mcp.git
cd deep-research-mcp

# Install dependencies
pip install -r requirements.txt

# Set environment variables
export GEMINI_API_KEY=your_gemini_api_key_here

# Run MCP server
python -m src.mcp_server.server

3. **Docker Deployment**

# Build Docker image
docker build -t deep-research-mcp .

# Run container
docker run -p 8000:8000 \
  -e GEMINI_API_KEY=your_gemini_api_key \
  deep-research-mcp

šŸ”§ Configuration

Environment Variables

| Variable | Description | Default | Re

Tools (1)

research_agentPerforms iterative web research on a given topic, generates queries, analyzes content, and produces a structured report with citations.

Environment Variables

GEMINI_API_KEYrequiredAPI key for accessing Gemini models
PORTPort for the HTTP server

Configuration

claude_desktop_config.json
{"mcpServers": {"deep-research": {"command": "python", "args": ["-m", "src.mcp_server.server"], "env": {"GEMINI_API_KEY": "your_api_key_here"}}}}

Try it

→Research the current state of quantum computing and provide a summary of the top 3 breakthroughs in 2024.
→Conduct a deep research report on the impact of AI regulations on small businesses in the EU.
→Find recent developments in fusion energy and explain the technical challenges mentioned in the latest research papers.
→Perform a multi-step research analysis on the history and future outlook of renewable energy storage technologies.

Frequently Asked Questions

What are the key features of Deep Research Agent?

Iterative web research with reflection and refinement loops. Google Search API integration with grounding metadata. Multi-model support including Gemini 2.0 Flash and 2.5 Pro. Generation of structured research reports with citations. Real-time progress streaming for research execution.

What can I use Deep Research Agent for?

Generating comprehensive background reports for complex technical topics. Automating literature reviews for academic or professional research. Synthesizing information from multiple web sources into a single cited document. Performing gap analysis on specific industry trends or research fields.

How do I install Deep Research Agent?

Install Deep Research Agent by running: pip install -r requirements.txt && export GEMINI_API_KEY=your_key && python -m src.mcp_server.server

What MCP clients work with Deep Research Agent?

Deep Research Agent works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Deep Research Agent docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare