Labsco
MCP SERVER

Gemini MCP Tool

by jamubc

Put a prompt to Gemini from inside the agent you are already in, and pull long edit-shaped answers back a chunk at a time.

Model Routing, Multi-Model Consultation & Cost ControlVerified
Summary
A second model's answer without leaving the first one's session.

What it removes is the copy-paste between assistants — and the context cost, since the files are read on Gemini's side rather than pulled into the conversation. When the reply is long enough to be a set of edits, it comes back in chunks the agent pulls in order instead of as one truncated block.

What it is

A bridge to Google's CLI rather than to an API: your prompt is handed to the CLI already signed in on the machine, with @ syntax for pulling whole files and directories into Gemini's large context. When the answer is a set of edits, change mode splits it into chunks fetched by cache key.

What you get
  • A prompt answered by Gemini with the model named per call and an optional sandboxed run
  • Files and directories addressed with @ inside the prompt, which is the point — a large codebase gets read by Gemini instead of loaded into the assistant you are talking to
  • An edit-shaped response mode whose chunks are retrieved one at a time by cache key, so a long answer arrives whole rather than truncated
  • A brainstorming call taking a domain, constraints, an idea count and a named methodology — SCAMPER, Design Thinking — with a feasibility analysis alongside the ideas if you ask for it
  • An echo call and a help call for confirming the server answers before blaming the model
Requirements

Node.js v16.0.0 or higher, run over stdio from npm as gemini-mcp-tool. The real dependency is a Google CLI installed and signed in on the same machine — this server holds no key of its own. Which CLI depends on your account: Google retired the Gemini CLI on 2026-06-18 for free, AI Pro and AI Ultra tiers, and from that date the tool selects the Antigravity CLI, agy, automatically — install it and run it once to sign in. Enterprise, standard-licence and paid-API-key users keep the old CLI by setting GEMINI_MCP_BACKEND=gemini. AGY_CLI_PATH points at the binary when it is not on the server's PATH, and GEMINI_MCP_TIMEOUT caps a run in minutes, 45 by default. The agy backend is experimental: print mode is limited to one Flash model, and a requested model or sandbox that cannot be honoured produces a notice rather than silence.

Setup effort

One command — claude mcp add gemini-cli -- npx -y gemini-mcp-tool