analyzeFile
Analyzes files using gemini-cli. Supported file types: Images (.png, .jpg, .jpeg, .gif, .webp, .svg, .bmp), Text (.txt, .md, .text), Documents (.pdf)
Hand a screenshot, a PDF or a question to Gemini from whichever assistant you are already working in.
LABSCO SUMMARY
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.
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.
Gemini-cli on the machine — the --allow-npx option lets the server fetch it through npx instead — and npx on your PATH.
One command — npx mcp-gemini-cli --allow-npx
USE CASES
Point it at the file with a prompt — images, plain text and markdown, or a PDF — and the analysis comes back in the session you are already working in.
The search runs through gemini-cli and comes back structured, with a limit you set, or as raw output when you would rather read what the CLI actually printed.
A chat call with your prompt and the model you want, so a second opinion does not cost a context switch into another window.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
analyzeFileAnalyzes files using gemini-cli. Supported file types: Images (.png, .jpg, .jpeg, .gif, .webp, .svg, .bmp), Text (.txt, .md, .text), Documents (.pdf)
chatEngages in a chat conversation with gemini-cli.
googleSearchPerforms a Google search using gemini-cli and returns structured results.
BEFORE YOU INSTALL
3 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "npx",
"args": [
"mcp-gemini-cli",
"--allow-npx"
]
}
}
}npx mcp-gemini-cli --allow-npx