Gemini MCP Server

Stateless MCP server that proxies research queries to Gemini CLI, reducing agent context/model usage

Local serverstdioGo

What is the Gemini MCP Server?

Stateless MCP server that proxies research queries to Gemini CLI, reducing agent context/model usage

What the server does

A lightweight, stateless MCP (Model Context Protocol) server that lets developer agents (Claude Code, GitHub Copilot) hand off deep repository analysis to the Gemini CLI. The server is read-only, returns structured JSON (as text content), and is designed to reduce the calling agent's context and model usage.

Gemini Researcher accepts queries from your AI agent and uses Gemini CLI to analyze your local code files. Results are returned as formatted JSON for your agent to use.

Credentials and setup notes

  • Node.js 18+ installed - Gemini CLI installed: npm install -g @google/gemini-cli - Gemini CLI authenticated (recommended: gemini → Login with Google) or set GEMINI_API_KEY Quick checks:

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
quick_queryflash -> flash_lite -> auto
deep_researchpro -> flash -> flash_lite -> auto
analyze_directoryflash -> flash_lite -> auto
validate_pathsPre-check file paths
health_checkDiagnostics
fetch_chunkGet chunked responses

How to install the Gemini MCP Server

{
  "mcpServers": {
    "gemini-researcher": {
      "command": "npx",
      "args": ["-y", "gemini-researcher"],
      "env": {
        "PROJECT_ROOT": "your-value",
        "GEMINI_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18+ installed - Gemini CLI installed: npm install -g @google/gemini-cli - Gemini CLI authenticated (recommended: gemini → Login with Google) or set GEMINI_API_KEY Quick checks:
VariableDescriptionRequired
PROJECT_ROOTConfiguration value read at startup.Optional
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Gemini to quick query.”
  • “Use Gemini to deep research.”
  • “Use Gemini to analyze directory.”

Frequently asked questions

Stateless MCP server that proxies research queries to Gemini CLI, reducing agent context/model usage Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.