Labsco
MCP SERVER

Gemini CLI MCP

by choplin

Hand a screenshot, a PDF or a question to Gemini from whichever assistant you are already working in.

Model Routing, Multi-Model Consultation & Cost ControlVerified
Summary
Gemini becomes a tool call instead of another window.

Three calls cover what a CLI session usually gets opened for: a grounded search, a question, and "what is in this file". Because model, sandbox and yolo are passed straight through, a call made from the assistant behaves like the one you would have typed yourself.

What it is

A wrapper around gemini-cli: a Google search returning structured results, a chat call, and file analysis — each passing through the model, sandbox and yolo options the CLI itself takes.

What you get
  • A Google search run through gemini-cli, returning structured results with a limit you set, or the raw output when you ask for it
  • A chat exchange with a prompt and a model of your choosing
  • Files analysed against a prompt: images (.png, .jpg, .jpeg, .gif, .webp, .svg, .bmp), text (.txt, .md, .text) and documents (.pdf)
Requirements

Gemini-cli on the machine — the --allow-npx option lets the server fetch it through npx instead — and npx on your PATH.

Setup effort

One command — npx mcp-gemini-cli --allow-npx