Gemini MCP Toolのロゴ

Gemini MCP Tool

コミュニティ
Lykhoyda

MCP server for AI-to-AI collaboration — bridge Claude with Gemini, Codex, and other LLMs for code review, second opinions, and plan debate

公開者Lykhoyda
リポジトリask-llm
言語TypeScript
フォーク
5
スター
18
利用可能なツール
6
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Gemini MCP Toolは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 6個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには18件のスターと5件のフォークがあります。

Ask LLM

Give your AI coding assistant a second opinion — from a different model.

Claude Code, Codex CLI, Cursor, Claude Desktop, or any of 40+ MCP clients can call Codex, Claude, Grok, Antigravity, Ollama, or Gemini to review a diff, debate a plan, or catch the bug the first model missed. Standard MCP; no prompt hacks.

CI Release GitHub Release npm License: MIT

Quick Start · Choose a reviewer · Claude Code plugin · Docs · Packages

text
You:    ask codex to review src/auth.ts for security issues
Codex:  ⚠ verifyToken() compares tokens with === — not timing-safe (line 42)
        ⚠ the session cookie is missing a SameSite attribute
Claude: Good catches — applying both fixes to src/auth.ts.

One prompt. A second model reviews independently; your assistant applies the fix. No copy-pasting between tools.

Why a second opinion?

Your primary AI is confident, but confidence isn't correctness. A second model with no stake in the first answer catches what it glossed over.

You want to…Ask LLM does
Review a diffA different model analyzes your changes and surfaces issues your primary AI missed
Debate a planSend an architecture proposal for critique, alternatives, and trade-off analysis
Get a second opinion on codeHave another model review an approach independently before you commit to it
Read more than fitsGemini and Antigravity ingest whole codebases in one call (1M+ tokens)
Keep it localRoute reviews through Ollama when nothing can leave your machine
Compare models side by sidemulti-llm fans one prompt out to several providers in parallel

Quick Start

Prerequisites: Node.js 20+ on Linux or macOS, and at least one provider CLI installed and authenticated (see Provider setup).

Claude Code

bash
# One install, every provider — auto-detects what you have
claude mcp add --scope user ask-llm -- npx -y @ask-llm/mcp
# first-class alternative after `npm install -g @ask-llm/mcp`:
# claude mcp add --scope user ask-llm -- ask-llm-mcp

Then try: ask codex to review my last commit. Run npx @ask-llm/mcp doctor if anything looks off.

bash
claude mcp add --scope user codex -- npx -y @ask-llm/codex-mcp
claude mcp add --scope user grok -e XAI_API_KEY="$XAI_API_KEY" -- npx -y @ask-llm/grok-mcp
claude mcp add --scope user antigravity -- npx -y @ask-llm/antigravity-mcp
claude mcp add --scope user ollama -- npx -y @ask-llm/ollama-mcp
claude mcp add --scope user gemini -- npx -y @ask-llm/gemini-mcp

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (user):

json
{
  "mcpServers": {
    "ask-llm": { "command": "npx", "args": ["-y", "@ask-llm/mcp"] }
  }
}

Codex CLI

toml
# ~/.codex/config.toml
[mcp_servers.ask-llm]
command = "npx"
args = ["-y", "@ask-llm/mcp"]

Want Codex to consult Claude specifically? codex mcp add claude -- npx -y @ask-llm/claude-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "ask-llm": { "command": "npx", "args": ["-y", "@ask-llm/mcp"] }
  }
}

Pi

Pi has no built-in MCP client, so it installs the host package instead, which registers native ask-* tools plus the shared skills:

bash
pi install npm:@ask-llm/plugin

Then use /skill:codex-review, /skill:multi-review, /skill:compare, /skill:brainstorm, or just describe what you want. See the Pi host guide for trust, data-transfer, and compatibility details.

json
{ "command": "npx", "args": ["-y", "@ask-llm/mcp"] }

Swap @ask-llm/mcp for @ask-llm/codex-mcp, @ask-llm/claude-mcp, @ask-llm/grok-mcp, @ask-llm/antigravity-mcp, @ask-llm/ollama-mcp, or @ask-llm/gemini-mcp to install a single provider.

Choose your reviewer

The unified @ask-llm/mcp server is the recommended install: one registration, every provider you have, and parallel fan-out via multi-llm. Each provider is also available standalone.

ProviderBest forModel (default → fallback)Requires
CodexCode reasoning, targeted reviews, architecture critiquegpt-6-astra → gpt-5.6-terraOpenAI/Codex account
ClaudeAn independent Claude opinion from Codex or another non-Claude hostopus → sonnetClaude Code CLI; read-only workspace tools
GrokGrok 4.6 critique via xAI API or the official Grok CLIgrok-4.6, reasoning high (no fallback)XAI_API_KEY or Grok CLI; one explicit harness per call
AntigravitySubscription-backed second opinion; large-context readsgemini-3.1-pro → gemini-3.5-flash (--effort high)Google AI Pro/Ultra; agy CLI. Experimental, one-shot
OllamaPrivate, offline, zero-cost reviewqwen3.8:27b (no auto-fallback)Ollama running locally
GeminiWhole-codebase reads (1M+ tokens)gemini-3.1-pro-preview → gemini-3.8-flashEnterprise Gemini seat (see note)

Gemini CLI is enterprise-only since 2026-06-18. Google restricted Gemini CLI to Gemini Code Assist Standard/Enterprise seats; free, Google AI Pro, and Ultra accounts lost access. @ask-llm/gemini-mcp still installs, but non-enterprise accounts get actionable guidance instead of output. On a subscription plan, use Antigravity (Google's sanctioned successor, covered by AI Pro/Ultra), Codex, Claude, or Ollama. Announcement

Fallbacks fire only under each provider's documented conditions (quota for Gemini/Codex, overload for Claude, rate limit for Antigravity). Grok and Ollama never substitute a model: Grok sends the exact harness catalog ID unchanged, and Ollama returns a clear ollama pull error if the requested model isn't local. Full details in Model Selection.

The Ask LLM plugin (Claude Code, Cursor Agent, Pi)

MCP gives your assistant the tools. The plugin, @ask-llm/plugin, adds the workflows: slash-command reviews with a validation pipeline, multi-model brainstorming, and opt-in continuous pair review.

/plugin marketplace add Lykhoyda/ask-llm
/plugin install ask-llm@ask-llm-plugins
CommandWhat it does
/multi-reviewParallel Antigravity + Codex review with a 4-phase validation pipeline and consensus highlighting
/codex-review · /gemini-review · /ollama-review · /antigravity-reviewSingle-provider reviews with confidence filtering
/sol-reviewModel-pinned GPT-5.6 Sol review through Codex
/grok-reviewMetered Grok review through xAI with exact model attribution and no fallback
/fable-reviewIsolated, read-only review that requests the native Fable model and discloses runtime verification limits
/brainstormClaude Opus researches your real files in parallel with external providers, then synthesizes, weighting verified findings higher. Also supports an exact no-Gemini Grok + GPT-5.6 Sol panel routed through Cursor Agent
/compareRaw side-by-side answers from multiple providers, no synthesis
codex-pairOpt-in continuous review: Codex checks every Edit/Write/MultiEdit when a .codex-pair/context.md marker is present

Review agents follow a 4-phase pipeline inspired by Anthropic's code-review plugin: context gathering, prompt construction with explicit false-positive exclusions, synthesis, and source-level validation of each finding.

@ask-llm/plugin is one package, one version, one release lifecycle, and one canonical skill corpus. Claude Code loads its marketplace agents and hooks; Cursor Agent loads the adapted /codex-pair and /grok-pair skills through Agent Skills plus mcp.json (agent --plugin-dir ./packages/claude-plugin; see the Cursor Agent host guide); Pi loads explicit native tools, portable skill adapters, and a thin lifecycle extension.

CapabilityClaude CodeCursor AgentCodex CLI hostPi
Provider transportMCPMCP (mcp.json, unified ask-llm only)MCPnative Ask LLM tools (no built-in MCP)
Review/compare/brainstorm skillsyesAgent Skillstools only/skill:<name> + natural language
Isolated reviewer contexts / Fableyesno; fable-review excludednono; fable-review excluded
codex-pairhookson-demand persisted sessionnolifecycle extension
/grok-pairyes (explicit Cursor/xAI/CLI route)direct xAI/CLI routes via pinned unified ask-llm (or user-installed ask-grok)noexcluded
Blocking HIGH Stop gateopt-innonono; surfaced non-blockingly
Async pairing in one-shot printn/aon-demand skillnounsupported

Pi specifics: codex-pair requires the repository marker, Pi project trust, and interactive user-owned consent via /codex-pair; a committed marker alone never authorizes source transfer or cost. Pi surfaces findings non-blockingly and does not claim Claude's blocking Stop gate or one-shot print parity. fable-review is Claude Code-only. Provider CLI authentication is separate from Pi's host-model login. Update or remove with pi update npm:@ask-llm/plugin / pi remove npm:@ask-llm/plugin.

See the plugin docs for hooks, agents, and configuration.

MCP tools

ToolPackagePurpose
ask-llm@ask-llm/mcpUnified orchestrator: pick a provider per call, or fan out to every installed provider
multi-llm@ask-llm/mcpSend one prompt to multiple providers in parallel; returns per-provider responses and usage in one call
ask-codex@ask-llm/codex-mcpCodex CLI. GPT-6 Astra with Terra fallback. Omit sessionId for ephemeral use, or pass sessionId: "" first to persist and resume
ask-claude@ask-llm/claude-mcpClaude Code CLI. Opus with Sonnet fallback; native sessions; Read/Glob/Grep-only workspace access
ask-grok@ask-llm/grok-mcpOne-shot Grok prompt through explicit xai-api (default) or grok-cli; exact harness model ID; no harness/model fallback
ask-cursor-agent@ask-llm/mcpModel-neutral Cursor Agent harness: separate provider (claude, codex, gemini, grok) + exact Cursor catalog model verified against that family; read-only ask mode; no force/trust/spend changes or fallback
ask-antigravity@ask-llm/antigravity-mcpGoogle Antigravity (agy) for a subscription-backed second opinion. Experimental; one-shot
ask-ollama@ask-llm/ollama-mcpLocal Ollama. Fully private, zero cost. Server-side conversation replay via sessionId
ask-gemini@ask-llm/gemini-mcpGemini CLI with @ file syntax. 1M+ token context. Live progressive output via stream-json
ask-gemini-edit@ask-llm/gemini-mcpStructured OLD/NEW code edit blocks from Gemini
fetch-chunk@ask-llm/gemini-mcpRetrieve chunks from cached large responses
get-usage-statsallPer-session token totals, fallback counts, breakdowns by provider/model. In-memory only
diagnose@ask-llm/mcpSelf-diagnosis: Node version, PATH resolution, provider CLI presence and versions. Read-only
pingallConnection test

Session-capable ask-* tools accept an optional sessionId and return a structured AskResponse (provider, response, model, sessionId, usage) via MCP outputSchema alongside the human-readable text. Codex requires sessionId: "" on the first call for a resumable thread. The orchestrator also exposes usage://current-session as an MCP Resource for live JSON snapshots.

Things to say

ask codex to review the changes in src/auth.ts for security issues
ask claude for an independent opinion on this architecture        (from Codex or another non-Claude client)
ask antigravity to debate the plan in docs/design.md
ask ollama to explain src/config.ts                                 (runs locally, nothing leaves your machine)
ask gemini to summarize @. the current directory                    (1M+ context; @ syntax is Gemini-only)
use multi-llm to compare what codex and grok think about this approach

More patterns in How to Ask and Multi-Turn Sessions.

CLI

The @ask-llm/mcp binary (ask-llm-mcp) starts the MCP server when run with no arguments. With arguments it's a CLI; ask-llm-mcp --help is the canonical reference.

bash
# Diagnose your setup: Node version, PATH, provider CLI versions, env vars
npx @ask-llm/mcp doctor                       # human-readable
npx @ask-llm/mcp doctor --json                # full JSON, exit 1 on error
npx @ask-llm/mcp doctor --format toon         # bounded, versioned agent-facing TOON pilot
npx @ask-llm/mcp doctor --format toon --full  # full TOON escape hatch

# Interactive multi-provider REPL: switch providers, persist sessions, watch usage live
npx @ask-llm/mcp repl

The REPL keeps a session per provider (/provider codex, /new, /sessions, /usage) and inherits all executor behavior: quota fallback, stream-json output for Gemini, native session resume.

Provider setup

Install and authenticate whichever providers you want to consult. The unified server detects what's present.

ProviderSetup
Codex CLIInstall and sign in
Claude Code CLIInstall and sign in (for Codex or other clients consulting Claude)
xAI API / Grok CLISet XAI_API_KEY for the default metered harness, or install and authenticate official Grok Build and pin harness: "grok-cli" per request (or set ASK_GROK_HARNESS=grok-cli). No failover between harnesses
Cursor CLIOptional model-neutral harness. Authenticate and pick an exact ID from agent --list-models
Antigravity CLI (agy)Version >= 1.1.5, logged in once (Google AI Pro/Ultra). Verify with agy --version
OllamaRunning locally with a model pulled: ollama pull qwen3.8:27b
Gemini CLInpm install -g @google/gemini-cli && gemini login. Enterprise-gated since 2026-06-18

Packages

PackageWhat it isVersionDownloads
@ask-llm/mcpUnified MCP server (recommended): all providers, multi-llm, ask-cursor-agent, doctor, REPLnpmdownloads
@ask-llm/pluginClaude Code + Cursor Agent + Pi host package (skills, agents, hooks)npmdownloads
@ask-llm/codex-mcpCodex-only MCP servernpmdownloads
@ask-llm/claude-mcpClaude-only MCP servernpmdownloads
@ask-llm/grok-mcpGrok-only MCP servernpmdownloads
@ask-llm/antigravity-mcpAntigravity-only MCP servernpmdownloads
@ask-llm/ollama-mcpOllama-only MCP servernpmdownloads
@ask-llm/gemini-mcpGemini-only MCP servernpmdownloads

All public MCP packages now live in the @ask-llm npm organization. The old names are deprecated, but executable names are unchanged: update the package argument in your MCP config and commands such as ask-codex-mcp and ask-llm-mcp doctor keep working after a global install.

Old packageUse instead
ask-llm-mcp@ask-llm/mcp
ask-codex-mcp@ask-llm/codex-mcp
@anton-lykhoyda/ask-claude-mcp@ask-llm/claude-mcp
ask-antigravity-mcp@ask-llm/antigravity-mcp
ask-ollama-mcp@ask-llm/ollama-mcp
ask-gemini-mcp@ask-llm/gemini-mcp

The installation guide has the complete package-to-executable mapping.

Documentation

Contributing

Contributions are welcome. Start with the open issues and CONTRIBUTING.md.

License

MIT. See LICENSE.

Disclaimer: Ask LLM is an unofficial, third-party tool and is not affiliated with, endorsed, or sponsored by Anthropic, Google, OpenAI, or xAI.

インストール

TypingMind
{
  "mcpServers": {
    "ask-llm": {
      "command": "npx",
      "args": [
        "-y",
        "gemini-mcp-tool"
      ]
    }
  }
}

利用可能なツール

  • ask-gemini

    model selection [-m], sandbox [-s], and changeMode:boolean for providing edits

  • ping

    Echo

  • Help

    receive help information

  • brainstorm

    Generate novel ideas with dynamic context gathering. --> Creative frameworks (SCAMPER, Design Thinking, etc.), domain context integration, idea clustering, feasibility analysis, and iterative refinement.

  • fetch-chunk

    Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.

  • timeout-test

    Test timeout prevention by running for a specified duration

Gemini MCP ToolのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Gemini MCP Toolに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Gemini MCP Toolをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Gemini MCP ToolのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "ask-llm": {
      "command": "npx",
      "args": [
        "-y",
        "gemini-mcp-tool"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGemini MCP ToolのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Gemini MCP ToolのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Gemini MCP Toolを使ってこのタスクを手伝ってもらえますか?
Gemini MCP Tool
はい、読みました。
Gemini MCP Toolで調べた結果をお伝えします。

よくある質問

Gemini MCP Tool MCPサーバーは何に使いますか?

Gemini MCP Toolは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでGemini MCP Tool MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGemini MCP Toolを利用できます。

TypingMindでGemini MCP Tool MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Gemini MCP Toolを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Gemini MCP Tool MCPをTypingMindに接続するにはどうすればよいですか?

Gemini MCP ToolはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGemini MCP Tool MCPのどのようなツールを利用できますか?

Gemini MCP Toolは6個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Gemini MCP Tool MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Gemini MCP Toolで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

ask-gemini

Execute 'gemini -p <prompt>' to get Gemini AI's response. Supports enhanced change mode for structured edit suggestions.

ping

Echo test message with structured response.

Help

receive help information

brainstorm

Generate structured brainstorming prompt with methodology-driven ideation, domain context integration, and analytical evaluation framework

fetch-chunk

Fetch the next chunk of a response

timeout-test

Test the timeout prevention system by running a long operation

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇