Public
synced 2026-11-06 20:48:13 +03:00
Watch 1
Fork 0
You've already forked gemini-mcp-tool

Gemini MCP Tool


┌─────────────────────────────────────────────────────────────────┐
│                                                                 │
│   Model Context Protocol server for Google Gemini CLI           │
│                                                                 │
│   Claude ──────────────── Gemini                                │
│                                                                 │
│   Leverage Gemini's massive token window                        │
│   for large file and codebase analysis                          │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Version 2.1.0 License MIT



Prerequisites

Node.js ≥ 16.0.0
Google Gemini CLI (configured)



Installation


claude mcp add gemini-cli -- npx -y maxanatsko/gemini-mcp-tool

Local Development

git clone https://github.com/maxanatsko/gemini-mcp-tool.git
cd gemini-mcp-tool

npm install
npm run build
npm link

claude mcp add gemini-cli -- gemini-mcp

Verify

/mcp



Configuration


Claude Desktop

{
  "mcpServers": {
    "gemini-cli": {
      "command": "npx",
      "args": ["-y", "maxanatsko/gemini-mcp-tool"]
    }
  }
}

Config Locations

macOS     ~/Library/Application Support/Claude/claude_desktop_config.json
Windows   %APPDATA%\Claude\claude_desktop_config.json
Linux     ~/.config/claude/claude_desktop_config.json



Usage


File Analysis

ask gemini to analyze @src/main.js
use gemini to summarize @.
analyze @package.json dependencies

General Questions

ask gemini about React best practices
use gemini to explain div centering
ask gemini for latest tech news

Sandbox Mode

use gemini sandbox to run @script.py
ask gemini to safely test this code
use gemini sandbox to install numpy



Tools


Tool Description
ask-gemini Query Gemini with @ file references
brainstorm Creative ideation with frameworks
review-code Interactive code review sessions
ping Connection test
help CLI documentation

Parameters


ask-gemini

prompt      Required    Analysis request with @ syntax
model       Optional    gemini-2.5-pro (default)
sandbox     Optional    Safe code execution
session     Optional    Conversation continuity
changeMode  Optional    Structured edit suggestions




Documentation Original Project This Fork




MIT License — Not affiliated with Google