gemini-deepsearch-mcp
Documentation
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 devLocal MCP Server (stdio)
Start the MCP server with stdio transport for integration with MCP clients:
make localTesting
Run the test suite:
make testTest the MCP stdio server:
make test_mcpUse MCP inspector
make inspectWith Langsmith tracing
GEMINI_API_KEY=AI******* LANGSMITH_API_KEY=ls******* LANGSMITH_TRACING=true make inspectAPI
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
Return Format
HTTP MCP Server (Development mode):
- answer: Comprehensive research response with citations
- sources: List of source URLs used in research
Stdio MCP Server (Claude Desktop integration):
- file_path: Path to a JSON file containing the research results
The stdio MCP server writes results to a JSON file in the system temp directory to optimize token usage. The JSON file contains the same `answer` and `sources` data as the HTTP version, but is accessed via file path rather than returned directly.
Requirements
- Python 3.12+
- `GEMINI_API_KEY` environment variable
Installation
Install directly using uvx:
uvx install gemini-deepsearch-mcpClaude 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
Frequently asked questions
What is gemini-deepsearch-mcp?
gemini-deepsearch-mcp is a Model Context Protocol (MCP) server listed in the TrackMCP directory.
How do I install gemini-deepsearch-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is gemini-deepsearch-mcp open source?
Yes — it is hosted on GitHub at https://github.com/alexcong/gemini-deepsearch-mcp and has 24 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP