ask-gemini
model selection [-m], sandbox [-s], and changeMode:boolean for providing edits
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.
LABSCO SUMMARY
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.
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.
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.
One command — claude mcp add gemini-cli -- npx -y gemini-mcp-tool
USE CASES
Reference the directory with @ in the prompt and let Gemini do the reading; what comes back is the analysis, not the files.
Put the same question to a different model from inside the session you are already in, naming the model on the call.
Ask in change mode and pull the chunks by cache key in order, rather than losing the tail of a long answer.
Run the brainstorm with your domain and constraints under a named methodology, and ask for the feasibility read alongside the ideas.
Echo a message to prove the transport, then read the help output — a failure at that point is the backend, not the wiring.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
ask-geminimodel selection [-m], sandbox [-s], and changeMode:boolean for providing edits
brainstormGenerate novel ideas with dynamic context gathering. --> Creative frameworks (SCAMPER, Design Thinking, etc.), domain context integration, idea clustering, feasibility analysis, and iterative refinement.
fetch-chunkRetrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.
Helpreceive help information
pingEcho
BEFORE YOU INSTALL
5 tools when we connected. The documentation's tool list is out of date: the tools are ask-gemini, brainstorm, fetch-chunk, ping and Help. sandbox-test is not a tool; sandbox is an option of ask-gemini.
npx on PATH
All 3 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 5 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
claude mcp add gemini-cli -- npx -y gemini-mcp-tool{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": [
"-y",
"gemini-mcp-tool"
]
}
}
}{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": [
"-y",
"gemini-mcp-tool"
],
"env": {},
"working_directory": null,
"start_on_launch": true
}
}
}