Skip to main content

MCP server for AI-powered research using Gemini: quick grounded search + Deep Research Agent

Project description

Gemini Research MCP Server

License: MIT

MCP server for AI-powered research using Gemini. Fast grounded search + comprehensive Deep Research.

Tools

Tool Description Latency
research_web Fast web search with citations 5-30 sec
research_deep Multi-step autonomous research 3-20 min
research_followup Continue conversation after research 5-30 sec

Workflow

research_web  ─── quick lookup ───▶  Got what you need?  ── yes ──▶ Done
       │                                        │
       │                                       no
       │                                        ▼
       └──────────────────────────────▶  research_deep  ──▶  Comprehensive report
                                                 │
                                                 ▼
                                        research_followup  ──▶  Dive deeper

Features

  • Auto-Clarification: research_deep asks clarifying questions for vague queries via MCP Elicitation
  • MCP Tasks: Real-time progress with streaming updates
  • File Search: Search your own data alongside web using file_search_store_names
  • Format Instructions: Control report structure (sections, tables, tone)
  • Models Resource: Discover available models via research://models

Installation

pip install gemini-research-mcp
# or
uv add gemini-research-mcp

From source:

git clone https://github.com/fortaine/gemini-research-mcp
cd gemini-research-mcp
uv sync

Configuration

Variable Required Default Description
GEMINI_API_KEY Yes Google AI Studio API key
GEMINI_MODEL No gemini-3-flash-preview Model for research_web
DEEP_RESEARCH_AGENT No deep-research-pro-preview-12-2025 Agent for research_deep
cp .env.example .env
# Edit .env with your API key

Usage

VS Code MCP

Add to .vscode/mcp.json:

{
  "servers": {
    "gemini-research": {
      "command": "uvx",
      "args": ["gemini-research-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

Or run from source:

{
  "servers": {
    "gemini-research": {
      "command": "uv",
      "args": ["--directory", "path/to/gemini-research-mcp", "run", "gemini-research-mcp"],
      "envFile": "${workspaceFolder}/path/to/gemini-research-mcp/.env"
    }
  }
}

Command Line

uv run gemini-research-mcp
# or
uvx gemini-research-mcp

Development

uv sync --extra dev
uv run pytest
uv run mypy src/
uv run ruff check src/

Tests

uv run pytest                    # Unit tests
uv run pytest -m e2e             # E2E tests (requires GEMINI_API_KEY)
uv run pytest --cov=src/gemini_research_mcp  # With coverage

Pricing

Tool Typical Cost
research_web ~$0.01-0.05 per query
research_deep ~$2-5 per task

Deep Research uses ~80-160 searches and ~250k-900k tokens per task.

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_research_mcp-0.1.2.tar.gz (112.5 kB view details)

Uploaded Source

Built Distribution

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

gemini_research_mcp-0.1.2-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gemini_research_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 112.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gemini_research_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4fde7225e13b094154ed0d72cf192ea51ebc7e5893682dd6d60d405c993b878a
MD5 a5a99dbb87f3d27770cf374b561515e3
BLAKE2b-256 46f7f7717846a6f2a7f034446f01915112c9a1550b8d3ac20dcb27d83c8796d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gemini_research_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0bf0b924160847728702c8aa0fd9252ca1e23b362e3232f708ebe17438cf7e8f
MD5 1272618a3a04f97881c230c279f8ee99
BLAKE2b-256 6da33a929c3f30e488424eda32e8239fd4c3293da3a9435c9aae538dc719686b

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