プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Gemini Researcher

作者:capyBearistaバージョン 1.0.2i★ –iパソコンで動く
レジストリ名io.github.capyBearista/gemini-researcher

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶
  • 入力が必要なもの:GEMINI_API_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: GEMINI_API_KEY, PROJECT_ROOT, RESPONSE_CHUNK_SIZE_KB, CACHE_TTL_MS, DEBUG, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_CLOUD_PROJECT, VERTEX_AI_PROJECT

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "gemini-researcher": {
      "command": "npx",
      "args": [
        "-y",
        "gemini-researcher"
      ],
      "env": {
        "GEMINI_API_KEY": "your-value",
        "PROJECT_ROOT": "your-value",
        "RESPONSE_CHUNK_SIZE_KB": "your-value",
        "CACHE_TTL_MS": "your-value",
        "DEBUG": "your-value",
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "VERTEX_AI_PROJECT": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add gemini-researcher --env GEMINI_API_KEY=your-value --env PROJECT_ROOT=your-value --env RESPONSE_CHUNK_SIZE_KB=your-value --env CACHE_TTL_MS=your-value --env DEBUG=your-value --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GOOGLE_CLOUD_PROJECT=your-value --env VERTEX_AI_PROJECT=your-value -- npx -y gemini-researcher

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "gemini-researcher": {
      "command": "npx",
      "args": [
        "-y",
        "gemini-researcher"
      ],
      "env": {
        "GEMINI_API_KEY": "your-value",
        "PROJECT_ROOT": "your-value",
        "RESPONSE_CHUNK_SIZE_KB": "your-value",
        "CACHE_TTL_MS": "your-value",
        "DEBUG": "your-value",
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "VERTEX_AI_PROJECT": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "gemini-researcher": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gemini-researcher"
      ],
      "env": {
        "GEMINI_API_KEY": "your-value",
        "PROJECT_ROOT": "your-value",
        "RESPONSE_CHUNK_SIZE_KB": "your-value",
        "CACHE_TTL_MS": "your-value",
        "DEBUG": "your-value",
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "VERTEX_AI_PROJECT": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • GEMINI_API_KEY 秘密 env
    Gemini API key (optional if you already authenticated Gemini CLI via "gemini" login)
  • PROJECT_ROOT env
    Override the project root directory used for path validation (defaults to current working directory)
  • RESPONSE_CHUNK_SIZE_KB env
    Chunk size threshold (KB) for large responses (default: 10)
  • CACHE_TTL_MS env
    Chunk cache TTL in milliseconds (default: 3600000 / 1 hour)
  • DEBUG env
    Enable debug logging (set to "true" or "1")
  • GOOGLE_APPLICATION_CREDENTIALS env
    Vertex AI / Google auth: path to a service account JSON credentials file
  • GOOGLE_CLOUD_PROJECT env
    Vertex AI / Google auth: GCP project ID (used by some auth configurations)
  • VERTEX_AI_PROJECT env
    Vertex AI / Google auth: Vertex AI project identifier (used by some auth configurations)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント capyBearista で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの5718件のうち0%よりスターが多い
  • このカテゴリのほかの5718件のうち2%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5718件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Gemini Researcherは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:GEMINI_API_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.2)がレジストリに届いたのは10 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

Up-to-date docs for AI agents

作者:upstash広く使われている↓ 97.3万/週★ 6.4万一昨日更新

パソコンでもクラウドでも

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

作者:DeusData広く使われている↓ 1.8万/週★ 4.8万22 日前更新

パソコンで動く

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs広く使われている★ 52132 か月前更新

クラウドで動く✓ exa.ai

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Gemini Researcher

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.

Status: v1 complete. Core features are stable, but still early days. Feedback welcome!

If this saved you tokens, ⭐ please consider giving it a star! :)

The primary goals:

  • Reduce agent context usage by letting Gemini CLI read large codebases locally and do its own research
  • Reduce calling-agent model usage by offloading heavy analysis to Gemini
  • Keep the server stateless and read-only for safety

Why use this?

Instead of copying entire files into your agent's context (burning tokens and cluttering the conversation), this server lets Gemini CLI read files directly from your project. Your agent sends a research query, Gemini reads and synthesizes using its large context window, and returns structured results. You save tokens, your agent stays focused, and complex codebase analysis becomes practical.

Verified clients: Claude Code, Cursor, VS Code (GitHub Copilot)

[!NOTE]

It definitely works with other clients, but I haven't personally tested them yet. Please open an issue if you try it elsewhere!

Table of contents

  • Gemini Researcher
  • Overview
  • Prerequisites
  • Quickstart
  • Step 1: Validate environment
  • Step 2: Configure your MCP client
  • Step 3: Restart your MCP client
  • Step 4: Test it
  • Tools
  • Example workflows
  • Docker
  • Platform guides
  • Troubleshooting (common issues)
  • Contributing
  • License

Overview

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.

Runtime safety

The server runs Gemini CLI with safety restrictions enabled. See docs/runtime-contract.md for full technical details.

Default invocation pattern:

gemini [ -m <model> ] --output-format json --approval-mode default [--admin-policy <path>] -p "<prompt>"

Key safety points:

  • Uses --approval-mode default (not yolo mode) for controlled execution
  • Enforces read-only policy by default to prevent file changes
  • Policy blocks mutating tools like write_file, replace, run_shell_command
  • Strict enforcement can be disabled with GEMINI_RESEARCHER_ENFORCE_ADMIN_POLICY=0 (not recommended)
Auth and health check

Run health_check with includeDiagnostics: true to see auth status and server health.

authStatusWhat it meansImpact
configuredGemini CLI is authenticatedServer ready to use
unauthenticatedNo valid authentication foundServer marked as degraded
unknownCould not verify auth statusServer marked as degraded

health_check.status values:

  • ok: Gemini CLI is available, auth is working, and safety policy is enforced
  • degraded: Setup incomplete, auth unclear, or safety policy disabled

Prerequisites

  • 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:

node --version

gemini --version

Quickstart

Step 1: Validate environment

Run the setup wizard to verify Gemini CLI is installed and authenticated:

npx gemini-researcher init
Step 2: Configure your MCP client

Standard config works in most of the tools:

{

"mcpServers": { "gemini-researcher": { "command": "npx", "args": [ "gemini-researcher" ] } } }

[!NOTE]

On native Windows, some MCP hosts use shell-less process spawning and may not resolve npm command shims reliably (npx, gemini).

If startup fails with launch errors (spawn ... ENOENT / GEMINI_CLI_LAUNCH_FAILED despite working in PowerShell), prefer Docker or WSL for immediate reliability.

See the full remediation tree in docs/platforms/windows.md.

VS Code

Add to your VS Code MCP settings (create .vscode/mcp.json if needed):

{

"servers": { "gemini-researcher": { "command": "npx", "args": [ "gemini-researcher" ] } } }

Claude Code

Option 1: Command line (recommended)

Local (user-wide) scope

# Add the MCP server via CLI

claude mcp add --transport stdio gemini-researcher -- npx gemini-researcher

Verify it was added

claude mcp list

Project scope

Navigate to your project directory, then run:

# Add the MCP server via CLI

claude mcp add --scope project --transport stdio gemini-researcher -- npx gemini-researcher

Verify it was added

claude mcp list

Option 2: Manual configuration

Add to .mcp.json in your project root (project scope):

{

"mcpServers": { "gemini-researcher": { "command": "npx", "args": [ "gemini-researcher" ] } } }

Or add to ~/.claude/settings.json for local scope.

After adding the server, restart Claude Code and use /mcp to verify the connection.

Cursor

Go to Cursor Settings -> Tools & MCP -> Add a Custom MCP Server. Add the following configuration:

{

"mcpServers": { "gemini-researcher": { "type": "stdio", "command": "npx", "args": [ "gemini-researcher" ] } } }

[!NOTE]

The server automatically uses the directory where the IDE opened your workspace as the project root or where your terminal is. To analyze a different directory, optionally set PROJECT_ROOT:

Example

{

"mcpServers": { "gemini-researcher": { "command": "npx", "args": [ "gemini-researcher" ], "env": { "PROJECT_ROOT": "/path/to/your/project" } } } }

Step 3: Restart your MCP client
Step 4: Test it

Ask your agent: "Use gemini-researcher to analyze the project."

Tools

All tools return structured JSON (as MCP text content). Large responses are chunked (~10KB per chunk) and cached for 1 hour.

ToolPurposeWhen to use
quick_queryFast analysis with flash modelQuick questions about specific files or small code sections
deep_researchIn-depth analysis with pro modelComplex multi-file analysis, architecture reviews, security audits
analyze_directoryMap directory structureUnderstanding unfamiliar codebases, generating project overviews
validate_pathsPre-check file pathsVerify files exist before running expensive queries
health_checkDiagnosticsTroubleshooting server/Gemini CLI issues
fetch_chunkGet chunked responsesRetrieve remaining parts of large responses

Query tool fallback chains are family-aware:

  • quick_query: flash -> flash_lite -> auto
  • deep_research: pro -> flash -> flash_lite -> auto
  • analyze_directory: flash -> flash_lite -> auto

When using API-key auth, fallback also handles model-unavailable/unsupported errors (not only quota/capacity errors).

Example workflows

Understanding a security vulnerability:

Agent: Use deep_research to analyze authentication flow across @src/auth and @src/middleware, focusing on security

Quick code explanation:

Agent: Use quick_query to explain the login flow in @src/auth.ts, be concise

Mapping an unfamiliar codebase:

Agent: Use analyze_directory on src/ with depth 3 to understand the project structure

Full tool schemas (for reference)

quick_query

{

"prompt": "Explain @src/auth.ts login flow", "focus": "security", "responseStyle": "concise" }

deep_research

{

"prompt": "Analyze authentication across @src/auth and @src/middleware", "focus": "architecture", "citationMode": "paths_only" }

analyze_directory

{

"path": "src", "depth": 3, "maxFiles": 200 }

validate_paths

{

"paths": ["src/auth.ts", "README.md"] }

health_check

{

"includeDiagnostics": true }

fetch_chunk

{

"cacheKey": "cache_abc123", "chunkIndex": 2 }

Docker

A pre-built multi-platform Docker image is available on Docker Hub:

# Pull the image (works on Intel/AMD and Apple Silicon)

docker pull capybearista/gemini-researcher:latest

Run the server (mount your project and provide API key)

docker run -i --rm \ -e GEMINI_API_KEY="your-api-key" \ -v /path/to/your/project:/workspace \ capybearista/gemini-researcher:latest

For MCP client configuration with Docker:

{

"mcpServers": { "gemini-researcher": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GEMINI_API_KEY", "-v", "/path/to/your/project:/workspace", "capybearista/gemini-researcher:latest" ], "env": { "GEMINI_API_KEY": "your-api-key-here" } } } }

[!NOTE]

- The -i flag is required for stdio transport

- The container mounts your project to /workspace (the project root)

- Replace /path/to/your/project with your actual project path

- Replace your-api-key with your actual Gemini API key (this is required for Docker usage)

Platform guides

  • Native Windows launch model and remediation: docs/platforms/windows.md

Troubleshooting (common issues)

  • Remediation decision tree:
Error / signalRun this check firstChange this configuration next
GEMINI_CLI_LAUNCH_FAILED or spawn ... ENOENTgemini --help and npx --version in the same terminal profile used by your MCP hostPrefer Docker or WSL config. If staying native, point host command to a stable shim/binary path and restart host.
health_check warning: "resolves only through cmd /c fallback"Run health_check with includeDiagnostics: true and inspect diagnostics.resolutionUpdate host config to launch the reported .cmd shim directly instead of relying on cmd /c fallback.
MCP host cannot launch server via npxnpx --versionChange host server command from npx gemini-researcher to installed binary path (or Docker transport).
ADMIN_POLICY_UNSUPPORTED / output format unsupportedgemini --help and confirm --admin-policy, json, stream-jsonUpgrade Gemini CLI to v0.36.0+
AUTH_MISSING / AUTH_UNKNOWNgemini interactive login and rerun health_checkAuthenticate Gemini CLI or set GEMINI_API_KEY
  • GEMINI_CLI_NOT_FOUND: Install Gemini CLI: npm install -g @google/gemini-cli
  • GEMINI_CLI_LAUNCH_FAILED: This is a launch-path issue, not an auth/capability issue. On Windows, command shims can fail in shell-l

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く