Gemini Researcher is a lightweight, stateless MCP server that allows developer agents to perform deep repository analysis using the Gemini CLI, returning structured JSON results.
From the registry: Stateless MCP server that proxies research queries to Gemini CLI, reducing agent context/model usage
$ npm install -g @google/gemini-cli$ geminiPlease install the `gemini-researcher` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Node.js 18+** — Requires Node.js 18 or later
- **Gemini CLI** — Install Google's Gemini CLI globally Run: `npm install -g @google/gemini-cli`
- **Authenticate Gemini CLI** — Run gemini and login with Google, or set GEMINI_API_KEY Run: `gemini`
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["gemini-researcher"]
- optional environment variables:
- `PROJECT_ROOT`: Override project root directory for analysis (example: `<your-project-path>`)
- `GEMINI_API_KEY`: Gemini API key (alternative to CLI login) (example: `<your-gemini-api-key>`)
- `GEMINI_RESEARCHER_ENFORCE_ADMIN_POLICY`: Set to 0/false to relax read-only policy enforcement (example: `1`)
Note: Stateless, read-only MCP that hands off deep repo analysis to Gemini CLI. Reduces calling agent's token/context usage.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GEMINI_API_KEYrequiredRequired for authenticating the Gemini CLI.GEMINI_RESEARCHER_ENFORCE_ADMIN_POLICYControls strict enforcement of the read-only policy.PROJECT_ROOTSets the project root directory for analysis.AI Agents Framework with Self Reflection and MCP support