gemini-cli-mcp MCP Server
xjoker/gemini-cli-mcp
Secure MCP server wrapping Google Gemini CLI — lets Claude Code call Gemini via local OAuth. Cross-platform, activity-based timeout, minimal token overhead.
claude mcp add agentrank -- npx -y agentrank-mcp-server Overview
xjoker/gemini-cli-mcp is a JavaScript MCP server licensed under MIT. Secure MCP server wrapping Google Gemini CLI — lets Claude Code call Gemini via local OAuth. Cross-platform, activity-based timeout, minimal token overhead.
Ranked #63 out of 124 indexed tools.
Actively maintained with commits in the last week.
Ecosystem
Score Breakdown
4 stars → early stage
Last commit 1d ago → actively maintained
No issues filed → no history to score
1 contributor → solo project
No dependents → no downstream usage
19 weekly installs → early adoption
Weights: Freshness 25% · Issue Health 25% · Dependents 25% · Stars 15% · Contributors 10% · How we score →
How to Improve
Matched Queries
From the README
# gemini-cli-mcp [中文文档](./README.zh-CN.md) A secure [MCP](https://modelcontextprotocol.io/) server that wraps Google's [Gemini CLI](https://github.com/google-gemini/gemini-cli). It lets Claude Code (or any MCP client) call Gemini models using your local OAuth session — no API key required. ## Highlights - **Secure** — `spawn(shell:false)` on Unix; controlled `shell:true` + arg escaping on Windows. No command injection. - **Cross-platform** — macOS, Linux, Windows. Auto-resolves `.cmd` wrappers and forces UTF-8. - **Activity-based timeout** — idle timer resets on each output chunk. Long thinking won't be killed; stuck 429 retries will. - **Low token overhead** — replaces Gemini's ~8 800-token default system prompt with a minimal one (~50 tokens). - **Clean output** — internally uses `stream-json` and parses structured responses. No stdout noise pollution. - **2 tools only** — `gemini_query` + `gemini_info`. Minimal context-window footprint for the host AI. ## Prerequisites 1. **NoRead full README on GitHub →
Get the weekly AgentRank digest
Top movers, new tools, ecosystem insights — straight to your inbox.