gemini-mcp-tool-patched

Gemini MCP Tool (Patched)

[![GitHub Release](https://img.shields.io/github/v/release/GlitterKill/gemini-mcp-tool-patched?logo=github&label=GitHub)](https://github.com/GlitterKill/gemini-mcp-tool-patched/releases) [![npm version](https://img.shields.io/npm/v/gemini-mcp-tool-patched)](https://www.npmjs.com/package/gemini-mcp-tool-patched) [![npm downloads](https://img.shields.io/npm/dt/gemini-mcp-tool-patched)](https://www.npmjs.com/package/gemini-mcp-tool-patched) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Open Source](https://img.shields.io/badge/Open%20Source-OSS-red.svg)](https://github.com/GlitterKill/gemini-mcp-tool-patched)

This is a version of the v1.1.2 release of https://github.com/jamubc/gemini-mcp-tool that has been patched to work with Windows.

This MCP server works with a Gemini API key or OAuth credentials (allowing Google AI Pro use via Gemini CLI).

📚 View Patch Documentation

📚 View Full Documentation - Search me!, Examples, FAQ, Troubleshooting, Best Practices

This is a simple Model Context Protocol (MCP) server that allows AI assistants to interact with the Gemini CLI. It enables the AI to leverage the power of Gemini’s massive token window for large analysis, especially with large files and codebases using the @ syntax for direction.

Gemini Tool MCP server

TLDR: Claude + Google Gemini

Goal: Use Gemini’s powerful analysis capabilities directly in Claude Code to save tokens and analyze large files.

Prerequisites

Before using this tool, ensure you have:

  1. Node.js (v16.0.0 or higher)
  2. Google Gemini CLI installed and configured

One-Line Setup

claude mcp add gemini-cli -- npx -y gemini-mcp-tool-patched

Verify Installation

Type /mcp inside Claude Code to verify the gemini-cli MCP is active.


Alternative: Import from Claude Desktop

If you already have it configured in Claude Desktop:

  1. Add to your Claude Desktop config:
    "gemini-cli": {
      "command": "npx",
      "args": ["-y", "gemini-mcp-tool-patched"]
    }
    
  2. Import to Claude Code:
    claude mcp add-from-claude-desktop
    

Configuration

Register the MCP server with your MCP client:

Add this configuration to your Claude Desktop config file:

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

For Global Installation

If you installed globally, use this configuration instead:

{
  "mcpServers": {
    "gemini-cli": {
      "command": "gemini-mcp-patched"
    }
  }
}

Configuration File Locations:

After updating the configuration, restart your terminal session.

Example Workflow

Usage Examples

With File References (using @ syntax)

General Questions (without files)

Using Gemini CLI’s Sandbox Mode (-s)

The sandbox mode allows you to safely test code changes, run scripts, or execute potentially risky operations in an isolated environment.

Tools (for the AI)

These tools are designed to be used by the AI assistant.

Slash Commands (for the User)

You can use these commands directly in Claude Code’s interface (compatibility with other clients has not been tested).

Contributing

Contributions are welcome! Please see our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer: This is an unofficial, third-party tool and is not affiliated with, endorsed, or sponsored by Google.