Labsco
MCP SERVER

Ask Gemini MCP

by Lykhoyda

Send a prompt, a file or a whole directory to Gemini for a second opinion, and get the review back in the same conversation.

Model Routing, Multi-Model Consultation & Cost ControlVerified
Summary
A second model reads the same code, with no stake in the first one's answer.

Your primary assistant is confident whether or not it is right, and this puts an independent reader on the same files. Context is the reason to pick Gemini over its siblings here — the `@` file syntax feeds it whole directories, so a review can cover more than the diff. Edits come back as OLD/NEW blocks rather than prose, which is what lets the fix be applied without copy-paste.

What it is

The Gemini server out of the Ask LLM family: it hands a prompt to the Gemini CLI on your machine and returns the answer to whichever assistant asked. It now ships as `@ask-llm/gemini-mcp`; the older `ask-gemini-mcp` package name is deprecated and the executable name is unchanged.

What you get
  • `ask-gemini` — a prompt with `@` file syntax, answered with live progressive output
  • `ask-gemini-edit` — the same request framed as a code edit, returned as structured OLD/NEW blocks your assistant can apply directly
  • `fetch-chunk` — the rest of a large response that came back partial
  • `get-usage-stats` — the session's call count, token totals split by input, output, thinking and cached, and wall time per provider
  • `ping` — a connection test for when you are not sure the server is wired up at all
  • Model fallback handled for you: `gemini-3.1-pro-preview` by default, dropping to `gemini-3.6-flash` on a quota error
  • Sibling servers in the same repo if you want a different reviewer — `@ask-llm/codex-mcp`, `@ask-llm/claude-mcp`, `@ask-llm/grok-mcp`, `@ask-llm/ollama-mcp`, `@ask-llm/antigravity-mcp`, or `@ask-llm/mcp` to route per call
Requirements

The Gemini CLI, installed and authenticated — `npm install -g @google/gemini-cli && gemini login` — plus Node.js 20.0.0 or higher. Add it over stdio as `npx -y @ask-llm/gemini-mcp`. One dated fact to check before building on it: from 2026-06-18 Google restricts the Gemini CLI to Gemini Code Assist Standard and Enterprise seats, and free, AI Pro and Ultra accounts lose access — the package still installs, but a non-enterprise account gets guidance in place of output. The repo names `ask-antigravity`, `ask-codex`, `ask-claude` and `ask-ollama` as the routes for those accounts.

Setup effort

One command — claude mcp add --scope user gemini -- npx -y @ask-llm/gemini-mcp