Skip to main content

Gemini DeepSearch MCP - Automated research agent with Google Gemini models

Project description

Gemini DeepSearch MCP

Gemini DeepSearch MCP is an automated research agent that leverages Google Gemini models and Google Search to perform deep, multi-step web research. It generates sophisticated queries, synthesizes information from search results, identifies knowledge gaps, and produces high-quality, citation-rich answers.

Features

  • Automated multi-step research using Gemini models and Google Search
  • FastMCP integration for both HTTP API and stdio deployment
  • Configurable effort levels (low, medium, high) for research depth
  • Citation-rich responses with source tracking
  • LangGraph-powered workflow with state management

Usage

Development Server (HTTP + Studio UI)

Start the LangGraph development server with Studio UI:

make dev

Local MCP Server (stdio)

Start the MCP server with stdio transport for integration with MCP clients:

make local

Testing

Run the test suite:

make test

Test the MCP stdio server:

make test_mcp

Use MCP inspector

make inspect

With Langsmith tracing

GEMINI_API_KEY=AI******* LANGSMITH_API_KEY=ls******* LANGSMITH_TRACING=true make inspect

API

The deep_search tool accepts:

  • query (string): The research question or topic to investigate
  • effort (string): Research effort level - "low", "medium", or "high"
    • Low: 1 query, 1 loop, Flash model
    • Medium: 3 queries, 2 loops, Flash model
    • High: 5 queries, 3 loops, Pro model

Returns:

  • answer: Comprehensive research response with citations
  • sources: List of source URLs used in research

Requirements

  • Python 3.12+
  • GEMINI_API_KEY environment variable

Installation

Install directly using uvx:

uvx install gemini-deepsearch-mcp

Claude Desktop Integration

To use the MCP server with Claude Desktop, add this configuration to your Claude Desktop config file:

macOS

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "gemini-deepsearch": {
      "command": "uvx",
      "args": ["gemini-deepsearch-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      },
      "timeout": 180000
    }
  }
}

Windows

Edit %APPDATA%/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "gemini-deepsearch": {
      "command": "uvx",
      "args": ["gemini-deepsearch-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      },
      "timeout": 180000
    }
  }
}

Linux

Edit ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "gemini-deepsearch": {
      "command": "uvx",
      "args": ["gemini-deepsearch-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      },
      "timeout": 180000
    }
  }
}

Important:

  • Replace your-gemini-api-key-here with your actual Gemini API key
  • Restart Claude Desktop after updating the configuration
  • Set ample timeout to avoid MCP error -32001: Request timed out

Alternative: Local Development Setup

For development or if you prefer to run from source:

{
  "mcpServers": {
    "gemini-deepsearch": {
      "command": "uv",
      "args": ["run", "python", "main.py"],
      "cwd": "/path/to/gemini-deepsearch-mcp",
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      }
    }
  }
}

Replace /path/to/gemini-deepsearch-mcp with the actual absolute path to your project directory.

Once configured, you can use the deep_search tool in Claude Desktop by asking questions like:

  • "Use deep_search to research the latest developments in quantum computing"
  • "Search for information about renewable energy trends with high effort"

Agent Source

The deep search agent is from the Gemini Fullstack LangGraph Quickstart repository.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_deepsearch_mcp-0.1.2.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_deepsearch_mcp-0.1.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file gemini_deepsearch_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: gemini_deepsearch_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for gemini_deepsearch_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 48bb279db4c7707c724c92aabe5a313003c716d64326811853fa78144f7d5cea
MD5 22a793a20e32d904306524d120e0279a
BLAKE2b-256 5045a29263b225d2b37eb2583c6a1a2a50e9f648b4cc7fb988f9c2cc4de5b3ef

See more details on using hashes here.

File details

Details for the file gemini_deepsearch_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_deepsearch_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6fa3f96b85a2eb503b08b0a2903c6c61e1b71effdfe5982cf492fd3e2e571fe
MD5 144a51830bc6b06cc855a410bfd42335
BLAKE2b-256 b9da3214f419589fd1c57399e18bb0fde5dc69070f0ac20fbfee78736b897ef3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page