Skip to main content

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

Project description

Gemini Research MCP Server

PyPI version Python 3.12+ License: MIT

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

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
list_research_sessions List saved research sessions instant
export_research_session Export to Markdown, JSON, or DOCX instant

Workflow

research_web  ─── quick lookup ───▶  Got what you need?  ── yes ──▶ Done
       │                                        │
       │                                       no
       │                                        ▼
       └──────────────────────────────▶  research_deep  ──▶  Comprehensive report
                                                 │
                                                 ▼
                                        research_followup  ──▶  Dive deeper
                                                 │
                                                 ▼
                                      export_research_session  ──▶  Share as DOCX/MD

Features

  • Auto-Clarification: research_deep asks clarifying questions for vague queries via MCP Elicitation
  • MCP Tasks: Real-time progress with streaming updates
  • Session Persistence: Research sessions are automatically saved and can be resumed later
  • Export Formats: Export to Markdown, JSON, or professional DOCX with Table of Contents
  • 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
GEMINI_SUMMARY_MODEL No gemini-3.0-flash Model for session summaries (fast)
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": ["--from", "gemini-research-mcp[docx]", "gemini-research-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

Note: The [docx] extra enables Word document export. For basic usage without DOCX: "args": ["gemini-research-mcp"]

Or run from source:

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

Command Line

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

DOCX Export

Export research sessions to professional Word documents with:

  • Cover page with title, date, and research metadata
  • Clickable Table of Contents with navigation to sections
  • Professional typography: Calibri fonts, 1-inch margins, 1.5x line spacing
  • Executive summary with elegant formatting
  • Full research report with proper heading hierarchy
  • Sources section with full clickable URLs
  • Metadata table with session details

Installation

# Install with DOCX support
pip install 'gemini-research-mcp[docx]'
# or
uv add 'gemini-research-mcp[docx]'

Features

Feature Description
Cover Page Title, date, duration, tokens, AI agent
Clickable TOC Internal hyperlinks navigate to sections
Professional Styling Calibri fonts, proper heading hierarchy (H1-H4)
Page Margins Standard 1-inch (2.54cm) margins
Heading Spacing keep_with_next prevents orphan headings
Sources Full URLs as clickable hyperlinks
Pure Python No external binaries (Pandoc not required)

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.2.1.tar.gz (145.9 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.2.1-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gemini_research_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 145.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gemini_research_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f289035e32b08425618da8528c883a7a3f64e3446067b726903a4c3dc77667e3
MD5 d2501ec706e15aa53f3ebac60e5cecbf
BLAKE2b-256 a08bccdc066825fc35085deafd45f00e270cf84b40153a1c5df4517e534f3766

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_research_mcp-0.2.1.tar.gz:

Publisher: publish.yml on fortaine/gemini-research-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for gemini_research_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9490e1967ce6ee723d44304354fff4dd416b7e7191fa1e033e4c994a2f2cb93
MD5 4c72f89c78fd343f4affa30dc5e31654
BLAKE2b-256 08b25bb7b65984b2e2a231ff6cd28ed9601bc83cbc9ff701023b4ec81a2e2ac2

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_research_mcp-0.2.1-py3-none-any.whl:

Publisher: publish.yml on fortaine/gemini-research-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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