Bridge Claude with Gemini CLI for AI-to-AI collaboration, code review, and second opinions
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
| Package | Type | Version | Downloads |
|---|---|---|---|
@ask-llm/gemini-mcp | MCP Server | ||
@ask-llm/codex-mcp | MCP Server | ||
@ask-llm/claude-mcp | MCP Server | ||
@ask-llm/ollama-mcp | MCP Server | ||
@ask-llm/antigravity-mcp | MCP Server | ||
@ask-llm/mcp | MCP Server | ||
@ask-llm/plugin | Claude Code + Pi Host Package |
MCP servers + Claude Code/Pi host package for AI-to-AI collaboration
Get a second opinion before you ship. Ask LLM lets your AI assistant โ Claude Code, Codex CLI, Cursor, Claude Desktop, or any of 40+ MCP clients โ consult a second model to review your code, debate a plan, or catch a bug it might have missed. Pick the reviewer that fits: OpenAI Codex (GPT-5.6 Sol โ Terra), Anthropic Claude (Opus โ Sonnet), Google Antigravity (agy), a local Ollama model, or Gemini (1M+ token context). Standard MCP, no prompt hacks.
โ ๏ธ Gemini CLI goes enterprise-only on 2026-06-18: From that date Google restricts Gemini CLI to Gemini Code Assist Standard/Enterprise seats, and free, Google AI Pro, and Ultra accounts lose access.
@ask-llm/gemini-mcpstill installs, but a non-enterprise account then surfaces actionable guidance instead of output. Free/Pro users: switch toask-antigravity(the Google-sanctioned successor, subscription-backed via Google AI Pro/Ultra),ask-codex,ask-claude, orask-ollama. Announcement
Your primary AI is confident โ but confidence isn't correctness. A second model, with no stake in the first one's answer, catches what it missed.
One prompt. A second model reviews independently; your assistant applies the fix โ no copy-paste between tools.
Pi is a host harness, not another consulted provider. Install the canonical dual-host package; it exposes the shared skills plus native provider tools because Pi intentionally has no built-in MCP client:
Invoke /skill:codex-review, /skill:multi-review, /skill:compare, /skill:brainstorm, or describe the workflow naturally. The package registers ask-codex, ask-gemini, ask-ollama, ask-antigravity, and deterministic concurrent ask-multi tools. Provider CLI authentication is unchanged and separate from Pi's host-model login.
Pi 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. Independent fable-review remains Claude Code-only and is excluded from Pi.
Update/remove with pi update npm:@ask-llm/plugin and pi remove npm:@ask-llm/plugin. See the Pi host guide for temporary/project-local installs, trust, data transfer, troubleshooting, and the full compatibility matrix.
Add to claude_desktop_config.json:
Cursor (.cursor/mcp.json):
Codex CLI (~/.codex/config.toml):
For the focused Codex โ Claude second-opinion path:
Any MCP Client (STDIO transport):
Replace @ask-llm/mcp with @ask-llm/codex-mcp, @ask-llm/claude-mcp, @ask-llm/antigravity-mcp, @ask-llm/ollama-mcp, or @ask-llm/gemini-mcp for a single provider.
All public MCP packages now live in the @ask-llm npm organization. The old
package names are deprecated, but their executable names are unchanged. Update
the package argument in your MCP config; commands such as ask-codex-mcp and
ask-llm-mcp doctor keep working after a global install.
| Old package | Use instead |
|---|---|
ask-gemini-mcp | @ask-llm/gemini-mcp |
ask-codex-mcp | @ask-llm/codex-mcp |
@anton-lykhoyda/ask-claude-mcp | @ask-llm/claude-mcp |
ask-ollama-mcp | @ask-llm/ollama-mcp |
ask-antigravity-mcp | @ask-llm/antigravity-mcp |
ask-llm-mcp | @ask-llm/mcp |
See the installation guide for the complete package-to-executable mapping.
| Provider | Best for | Model (default โ fallback) | Notes |
|---|---|---|---|
| Codex | Code reasoning, targeted reviews, architecture critique | gpt-5.6-sol โ gpt-5.6-terra | Requires an OpenAI/Codex account |
| Claude | Independent review from Codex or another non-Claude host | opus โ sonnet | Claude Code CLI; native sessions; read-only tools |
| Antigravity | A subscription-backed second opinion; larger-context reads | gemini-3.1-pro โ gemini-3.5-flash (both at --effort high) | Google AI Pro/Ultra plan; one-shot, experimental |
| Ollama | Private/local review, zero cost, offline | qwen3.6:27b (no auto-fallback) | Runs entirely on your machine |
| Gemini | Whole-codebase reads (1M+ tokens) | gemini-3.1-pro-preview โ gemini-3.6-flash | โ ๏ธ Enterprise-gated from 2026-06-18 |
Unified (ask-llm) | One install for all of the above; fan out in parallel | routes per call | Recommended |
@ask-llm/plugin is one package, version, release lifecycle, and canonical skill corpus. Claude Code loads its existing marketplace agents/hooks; Pi loads explicit native tools, portable skill adapters, and a thin lifecycle extension.
| Capability | Claude Code | Codex CLI host | Pi |
|---|---|---|---|
| Provider transport | MCP | MCP | native Ask LLM tools (no built-in MCP) |
| Review/compare/brainstorm skills | yes | tools only | /skill:<name> + natural language |
| Isolated reviewer contexts / Fable | yes | no | no; fable-review excluded |
| codex-pair | hooks | no | lifecycle extension |
| Blocking HIGH Stop gate | opt-in | no | no; surfaced non-blockingly |
| Async pairing in one-shot print | n/a | no | unsupported |
The Ask LLM plugin adds multi-provider code review, brainstorming, and automated hooks directly into Claude Code:
| Feature | Description |
|---|---|
/multi-review | Parallel Antigravity + Codex review with 4-phase validation pipeline and consensus highlighting (gemini via /gemini-review) |
/gemini-review | Gemini-only review with confidence filtering |
/codex-review | Codex-only review with confidence filtering |
/fable-review | Isolated, read-only review that requests the native Fable model and discloses runtime verification limits |
/sol-review | Model-pinned GPT-5.6 Sol review through Codex |
/ollama-review | Local review โ no data leaves your machine |
/antigravity-review | Subscription-backed review via Google Antigravity (agy) โ experimental |
/brainstorm | Multi-LLM brainstorm: Claude Opus researches the topic against real files in parallel with external providers (Gemini/Codex/Ollama), then synthesizes all findings with verified findings weighted higher |
/compare | Side-by-side raw responses from multiple providers, no synthesis โ for when you want to see how each provider phrases the same answer |
codex-pair hook | Opt-in continuous review โ runs Codex against every Edit/Write/MultiEdit when a .codex-pair/context.md marker is present in the project |
The review agents use 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.
See the plugin docs for details.
agy) >=1.1.5 โ installed and logged in once (Google AI Pro/Ultra); verify with agy --versionollama pull qwen3.6:27b)npm install -g @google/gemini-cli && gemini login (enterprise-gated from 2026-06-18)| Tool | Package | Purpose |
|---|---|---|
ask-gemini | @ask-llm/gemini-mcp | Send prompts to Gemini CLI with @ file syntax. 1M+ token context. Live progressive output via stream-json |
ask-gemini-edit | @ask-llm/gemini-mcp | Get structured OLD/NEW code edit blocks from Gemini |
fetch-chunk | @ask-llm/gemini-mcp | Retrieve chunks from cached large responses |
ask-codex | @ask-llm/codex-mcp | Send prompts to Codex CLI. GPT-5.6 Sol with Terra fallback; omit sessionId for ephemeral use, or pass sessionId: "" first to persist and resume |
ask-claude | @ask-llm/claude-mcp | Send prompts to Claude Code CLI. Opus with Sonnet fallback; native sessions; Read/Glob/Grep-only workspace access |
ask-ollama | @ask-llm/ollama-mcp | Send prompts to local Ollama. Fully private, zero cost. Server-side conversation replay via sessionId |
ask-antigravity | @ask-llm/antigravity-mcp | Send a prompt to Google Antigravity (agy) for a subscription-backed second opinion. Experimental; one-shot |
ask-llm | @ask-llm/mcp | Unified orchestrator โ pick provider per call. Fan out to all installed providers |
multi-llm | @ask-llm/mcp | Dispatch the same prompt to multiple providers in parallel; returns per-provider responses + usage in one call |
get-usage-stats | all | Per-session token totals, fallback counts, breakdowns by provider/model โ all in-memory, no persistence |
diagnose | @ask-llm/mcp | Self-diagnosis: Node version, PATH resolution, provider CLI presence + versions. Read-only |
ping | all | Connection test โ verify MCP setup |
Session-capable ask-* tools accept an optional sessionId parameter 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; omitting it makes that call ephemeral. The orchestrator (@ask-llm/mcp) also exposes usage://current-session as an MCP Resource for live JSON snapshots.
The orchestrator binary (@ask-llm/mcp) supports two CLI modes alongside the default MCP server:
The REPL ships sessions per provider (/provider gemini, /provider codex, /new, /sessions, /usage) and inherits all the executor behavior (quota fallback, stream-json output for Gemini, native session resume).
| Provider | Default | Fallback |
|---|---|---|
| Gemini | gemini-3.1-pro-preview | gemini-3.6-flash (on quota) |
| Codex | gpt-5.6-sol | gpt-5.6-terra (on quota) |
| Claude | opus | sonnet (on overload/unavailability) |
| Antigravity | gemini-3.1-pro (--effort high) | gemini-3.5-flash (on rate limit); model-less recovery if a shipped slug is rejected |
| Ollama | qwen3.6:27b | โ (local; errors if the model isn't pulled) |
Gemini, Codex, Claude, and Antigravity automatically fall back under their documented provider-specific conditions. Ollama runs locally and never substitutes a model โ if the requested model isn't pulled, it returns a clear ollama pull error.
Contributions are welcome! See open issues for things to work on.
MIT License. See LICENSE for details.
Disclaimer: This is an unofficial, third-party tool and is not affiliated with, endorsed, or sponsored by Anthropic, Google, or OpenAI.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ask-gemini)<a href="https://allmcps.com/mcp/ask-gemini"><img src="https://allmcps.com/api/badge/ask-gemini?style=directory" alt="Ask Gemini on AllMCPs" /></a>