ask-gemini-mcp
About
MCP server that enables AI assistants to interact with Google Gemini CLI
Details
- Author
- lykhoyda
- Categories
- Developer Tools, AI
Jump to
Setup
Install ask-gemini-mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/lykhoyda/ask-gemini-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
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 of40+ MCP clients— consult asecondmodel to review your code, debate a plan, or catch a bug it might have missed. Pick the reviewer that fits: OpenAICodex(GPT-5.6 Sol → Terra), AnthropicClaude(Opus → Sonnet), GoogleAntigravity(agy), a localOllamamodel, orGemini(1M+ token context). StandardMCP, no prompt hacks.
⚠️ Gemini CLI goes enterprise-only on 2026-06-18:From that date Google restricts Gemini CLI toGemini Code Assist Standard/Enterpriseseats, 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.
- Second opinion on code— before you commit to an approach, have another model review it independently.
- Debate a plan— send an architecture proposal for critique, alternatives, and trade-off analysis.
- Review a diff— have a different model analyze your changes to surface issues your primary AI glossed over.
- Read more than fits— Gemini and Antigravity's large context windows ingest whole codebases at once.
- Keep it local— run reviews through Ollama when nothing can leave your machine.
One prompt. A second model reviews independently; your assistant applies the fix — no copy-paste between tools.
# All-in-one — auto-detects installed providers claude mcp add --scope user ask-llm -- npx -y @ask-llm/mcp
claude mcp add --scope user gemini -- npx -y @ask-llm/gemini-mcp claude mcp add --scope user codex -- npx -y @ask-llm/codex-mcp claude mcp add --scope user ollama -- npx -y @ask-llm/ollama-mcp claude mcp add --scope user antigravity -- npx -y @ask-llm/antigravity-mcp
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 registersask-codex,ask-gemini,ask-ollama,ask-antigravity, and deterministic concurrentask-multitools. Provider CLI authentication is unchanged and separate from Pi's host-model login.
Pi codex-pair requires the repository marker, Pi project trust,andinteractive 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. Independentfable-reviewremains Claude Code-only and is excluded from Pi.
Update/remove withpi update npm:@ask-llm/pluginandpi remove npm:@ask-llm/plugin. See thePi host guidefor temporary/project-local installs, trust, data transfer, troubleshooting, and the full compatibility matrix.
{ "mcpServers": { "ask-llm": { "command": "npx", "args": ["-y", "@ask-llm/mcp"] } } }
{ "mcpServers": { "gemini": { "command": "npx", "args": ["-y", "@ask-llm/gemini-mcp"] }, "codex": { "command": "npx", "args": ["-y", "@ask-llm/codex-mcp"] }, "ollama": { "command": "npx", "args": ["-y", "@ask-llm/ollama-mcp"] } } }
{ "mcpServers": { "ask-llm": { "command": "npx", "args": ["-y", "@ask-llm/mcp"] } } }
[mcp_servers.ask-llm] command = "npx" args = ["-y", "@ask-llm/mcp"]
For the focused Codex → Claude second-opinion path:
codex mcp add claude -- npx -y @ask-llm/claude-mcp
{ "command": "npx", "args": ["-y", "@ask-llm/mcp"] }
Replace@ask-llm/mcpwith@ask-llm/codex-mcp,@ask-llm/claude-mcp,@ask-llm/antigravity-mcp,@ask-llm/ollama-mcp, or@ask-llm/gemini-mcpfor a single provider.
All public MCP packages now live in the@ask-llmnpm organization. The old package names are deprecated, but their executable names are unchanged. Update the package argument in your MCP config; commands such asask-codex-mcpandask-llm-mcp doctorkeep working after a global install.
See theinstallation guidefor the complete package-to-executable mapping.
@ask-llm/pluginis 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.
TheAsk LLM pluginadds multi-provider code review, brainstorming, and automated hooks directly into Claude Code:
/plugin marketplace add Lykhoyda/ask-llm /plugin install ask-llm@ask-llm-plugins
The review agents use a 4-phase pipeline inspired byAnthropic's code-review plugin: context gathering, prompt construction with explicit false-positive exclusions, synthesis, and source-level validation of each finding.
- Node.jsv20.0.0 or higher (LTS)
- At least one provider:
- Codex CLI— installed and authenticated
- Claude Code CLI— installed and authenticated (for Codex/other clients consulting Claude)
- Antigravity CLI(agy) >=1.1.5 — installed and logged in once (Google AI Pro/Ultra); verify withagy --version
- Ollama— running locally with a model pulled (ollama pull qwen3.6:27b)
- Gemini CLI—npm install -g @google/gemini-cli && gemini login(enterprise-gated from 2026-06-18)
Session-capableask-*tools accept an optionalsessionIdparameter and return a structuredAskResponse(provider, response, model, sessionId, usage) via MCPoutputSchemaalongside the human-readable text. Codex requiressessionId: ""on the first call for a resumable thread; omitting it makes that call ephemeral. The orchestrator (@ask-llm/mcp) also exposesusage://current-sessionas an MCP Resource for live JSON snapshots.
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 MCP client) ask antigravity to debate this architecture plan in docs/design.md ask ollama to explain src/config.ts (runs locally, no data sent anywhere) ask gemini to summarize @. the current directory (1M+ context, @ is Gemini-only) use multi-llm to compare what codex and gemini think about this approach
The orchestrator binary (@ask-llm/mcp) supports two CLI modes alongside the default MCP server:
# Interactive multi-provider REPL — switch providers, persist sessions, see usage live npx @ask-llm/mcp repl # Diagnose your setup — Node version, PATH, provider CLI versions, env vars npx @ask-llm/mcp doctor # human-readable npx @ask-llm/mcp doctor --json # machine-readable, exit 1 on error
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).
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 clearollama pullerror.
- Docs site:lykhoyda.github.io/ask-llm
- AI-readable:llms.txt|llms-full.txt
Contributions are welcome! Seeopen issuesfor things to work on.
Disclaimer:This is an unofficial, third-party tool and is not affiliated with, endorsed, or sponsored by Anthropic, Google, or OpenAI.
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
next-devtools-mcp is a MCP server that provides Next.js development tools and utilities for AI coding assistants like Claude and Cursor.
Word search, crossword, and sudoku generator MCP server with printable PDF worksheets, themed word banks, and verifiable LLM evals. Local-first, from the makers of puzzletide.com.
A demonstration server for ActionKit, providing access to Slack actions via Claude Desktop.
MCP server that lets Claude Code agents delegate tasks to agents in other project directories, with parallel dispatch, sessions, and async jobs.
Statistical regression testing for LLM agents: p-value, effect size, and CI on behavior change.
A Python MCP package that gives your LLM agents complete file system and shell capabilities — production-ready, sandboxed, and wired to any LLM in minutes.
Integrates with Google AI Studio/Gemini API for PDF to Markdown conversion and content generation.
Anchor Browser (https://anchorbrowser.io) is secure infrastructure for computer-use agents — stealth cloud browsers, authentication, captcha bypass, and a hosted MCP server for Cursor, Claude, and Windsurf.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




