ai-mldeveloper-tools

Gemini CLI (Windows Fixed)

orzcls

by orzcls

Gemini CLI (Windows Fixed): Enhanced Windows CLI tool with PowerShell, multi-model support, sandboxed code, and advanced

Windows-compatible Gemini CLI integration that addresses character encoding and parameter handling issues, providing PowerShell integration with automatic executable detection, multiple model support, sandbox mode for safe code execution, and specialized tools for brainstorming and structured editing.

github stars

7

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Windows-specific compatibility fixesCross-terminal support (PowerShell, CMD, VS Code)Automatic PATH environment handling

best for

  • / Windows developers using Gemini AI models
  • / AI assistant integration on Windows systems
  • / Safe code execution and testing
  • / PowerShell-based AI workflows

capabilities

  • / Execute Gemini CLI commands through PowerShell
  • / Run code in sandbox mode for safety
  • / Switch between multiple Gemini models
  • / Generate brainstorming sessions
  • / Perform structured text editing
  • / Auto-detect PowerShell executables

what it does

A Windows-compatible MCP server that integrates with Google's Gemini CLI through PowerShell, fixing encoding and compatibility issues for AI assistants on Windows systems.

about

Gemini CLI (Windows Fixed) is a community-built MCP server published by orzcls that provides AI assistants with tools and capabilities via the Model Context Protocol. Gemini CLI (Windows Fixed): Enhanced Windows CLI tool with PowerShell, multi-model support, sandboxed code, and advanced It is categorized under ai ml, developer tools.

how to install

You can install Gemini CLI (Windows Fixed) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Gemini CLI (Windows Fixed) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

🚀 Gemini MCP Tool - Windows Fixed Version

npm version License: MIT

Latest Version v1.0.21 - Fixed cross-terminal compatibility issues and fetch-chunk format errors

A Windows-compatible Model Context Protocol (MCP) server that enables AI assistants to interact with Google's Gemini CLI. This is a fixed version specifically designed to work seamlessly on Windows environments with PowerShell support.

Note: This is an enhanced version of the original gemini-mcp-tool with Windows-specific fixes and improvements.

🆕 Latest Updates (v1.0.21)

  • 🔧 Fixed Cross-Terminal Compatibility - Resolved Node.js path not found issues in different terminal environments
  • 📦 Fixed fetch-chunk Format Error - Fixed MCP protocol format mismatch in chunked responses
  • 🛡️ Enhanced PATH Environment Variable Handling - Automatically adds common Node.js installation paths
  • Full Compatibility with All Terminals - Supports PowerShell, CMD, VS Code Terminal, Trae AI, CherryStudio, etc.
  • 🚀 Improved Error Handling - Better error messages and debug output

v1.0.3 Updates

  • 🆕 PowerShell Path Parameter Support - Added optional powershellPath parameter allowing users to customize PowerShell executable path
  • Fixed PowerShell Execution Error - Resolved spawn powershell.exe ENOENT issue
  • Improved Windows Compatibility - Automatic detection of available PowerShell versions
  • Fixed Undefined Variable Error - Fixed args variable issue in executeCommandWithPipedInput function
  • Enhanced Error Handling - Better error messages and debug output
  • Backward Compatibility - Existing configurations require no modification, automatically uses default detection logic

✨ Features

  • 🪟 Windows Compatible: Full PowerShell support with Windows-specific path handling
  • 📊 Large Context Window: Leverage Gemini's massive token window for analyzing entire codebases
  • 📁 File Analysis: Analyze files using @filename syntax
  • 🔒 Sandbox Mode: Safe code execution environment
  • 🔗 MCP Integration: Seamless integration with MCP-compatible AI assistants (Trae AI, Claude Desktop)
  • ⚡ NPX Ready: Easy installation and usage with NPX
  • 🔧 Environment Variable Support: Flexible API key configuration

This Windows-fixed version resolves:

  • PowerShell parameter passing issues
  • Character encoding problems with Chinese/Unicode text
  • Command line argument escaping on Windows
  • Environment variable handling

📋 Prerequisites

Before using this tool, ensure you have:

  1. Node.js (v16.0.0 or higher)
    node --version  # Should be v16+
    
  2. Google Gemini CLI installed and configured
    npm install -g @google/generative-ai-cli
    
    # Verify installation
    gemini --version
    
  3. API Key: Get your API key from Google AI Studio

📦 Installation

Quick Start with NPX (Recommended)

# Use latest version (recommended)
npx [email protected]

# Or use latest version tag
npx -y gemini-mcp-tool-windows-fixed@latest

Global Installation

# Install latest version
npm install -g [email protected]

# Run the tool
gemini-mcp-tool-windows-fixed

Updating Existing Installation

If you previously installed an older version:

# Uninstall old version and install latest
npm uninstall -g gemini-mcp-tool-windows-fixed
npm cache clean --force
npm install -g [email protected]

⚙️ MCP Client Configuration

Claude Code (One-Line Setup)

# One-command setup for Claude Code
claude mcp add gemini-cli -- npx -y [email protected]

Verify Installation: Type /mcp inside Claude Code to verify the gemini-cli MCP is active. <mcreference link="https://github.com/jamubc/gemini-mcp-tool" index="1">1</mcreference>

Alternative: Import from Claude Desktop

If you already have it configured in Claude Desktop:

  1. Add to your Claude Desktop config (see below)
  2. Import to Claude Code:
    claude mcp add-from-claude-desktop
    

Trae AI (Recommended)

  1. Open: %APPDATA%\Trae\User\mcp.json
  2. Add this configuration:
{
  "mcpServers": {
    "gemini-cli": {
      "name": "gemini-cli",
      "description": "Windows-compatible Gemini MCP Tool",
      "baseUrl": "",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_ACTUAL_API_KEY_HERE"
      },
      "isActive": true,
      "providerUrl": "https://github.com/orzcls/gemini-mcp-tool-windows-fixed"
    }
  }
}

Claude Desktop

  1. Open: %APPDATA%\Claude\claude_desktop_config.json
  2. Add this configuration:
{
  "mcpServers": {
    "gemini-cli": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "env": {
        "GEMINI_API_KEY": "YOUR_ACTUAL_API_KEY_HERE"
      }
    }
  }
}

🔑 API Key Configuration

Option 1: MCP Configuration (Recommended)

Replace YOUR_ACTUAL_API_KEY_HERE in the configuration above with your actual API key.

Option 2: Environment Variable

# Temporary (current session)
$env:GEMINI_API_KEY = "your-actual-api-key"

# Permanent (user level)
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "your-actual-api-key", "User")

# Verify
echo $env:GEMINI_API_KEY

Configuration File Locations

Claude Desktop:

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

Trae AI:

  • Windows: %APPDATA%\Trae\User\mcp.json

🛠️ Available Tools

This MCP server provides the following tools for AI assistants:

1. ask-gemini

Interact with Google Gemini for analysis and questions.

Parameters:

  • prompt (required): The analysis request. Use @ syntax for file references
  • model (optional): Gemini model to use (default: gemini-2.5-pro)
  • sandbox (optional): Enable sandbox mode for safe code execution
  • changeMode (optional): Enable structured change mode
  • chunkIndex (optional): Chunk index for continuation
  • chunkCacheKey (optional): Cache key for continuation

2. brainstorm

Generate creative ideas using various brainstorming frameworks.

Parameters:

  • prompt (required): Brainstorming challenge or question
  • model (optional): Gemini model to use
  • methodology (optional): Framework (divergent, convergent, scamper, design-thinking, lateral, auto)
  • domain (optional): Domain context (software, business, creative, etc.)
  • constraints (optional): Known limitations or requirements
  • existingContext (optional): Background information
  • ideaCount (optional): Number of ideas to generate (default: 12)
  • includeAnalysis (optional): Include feasibility analysis (default: true)

3. fetch-chunk

Retrieve cached chunks from changeMode responses.

Parameters:

  • cacheKey (required): Cache key from initial response
  • chunkIndex (required): Chunk index to retrieve (1-based)

4. timeout-test

Test timeout prevention mechanisms.

Parameters:

  • duration (required): Duration in milliseconds (minimum: 10ms)

5. ping

Test connection to the server.

Parameters:

  • prompt (optional): Message to echo back

6. Help

Display help information about available tools.

🎯 Usage Examples

Once configured, you can use the following tools through your MCP client:

Natural Language Examples <mcreference link="https://github.com/jamubc/gemini-mcp-tool" index="2">2</mcreference>

With File References (using @ syntax):

  • "ask gemini to analyze @src/main.js and explain what it does"
  • "use gemini to summarize @. the current directory"
  • "analyze @package.json and tell me about dependencies"

General Questions (without files):

  • "ask gemini to search for the latest tech news"
  • "use gemini to explain div centering"
  • "ask gemini about best practices for React development related to @file_im_confused_about"
  • "use gemini to explain index.html"
  • "understand the massive project using gemini"
  • "ask gemini to search for latest news"

Using Gemini CLI's Sandbox Mode (-s): <mcreference link="https://github.com/jamubc/gemini-mcp-tool" index="2">2</mcreference> The sandbox mode allows you to safely test code changes, run scripts, or execute potentially risky operations in an isolated environment.

  • "use gemini sandbox to create and run a Python script that processes data"
  • "ask gemini to safely test @script.py and explain what it does"
  • "use gemini sandbox to install numpy and create a data visualization"
  • "test this code safely: Create a script that makes HTTP requests to an API"

Slash Commands (for Claude Code Users) <mcreference link="https://github.com/jamubc/gemini-mcp-tool" index="2">2</mcreference>

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

  • /analyze: Analyzes files or directories using Gemini, or asks general questions
    • prompt (required): The analysis prompt. Use @ syntax to include files (e.g., `/analyze prompt:@src/ summa

FAQ

What is the Gemini CLI (Windows Fixed) MCP server?
Gemini CLI (Windows Fixed) is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Gemini CLI (Windows Fixed)?
This profile displays 42 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.7 out of 5—verify behavior in your own environment before production use.

Use Cases

Extended AI Capabilities

Add new capabilities to Claude beyond text generation

Example

Access external data sources, execute code, interact with tools and services

Transform Claude from chatbot to action-taking agent

Context Enhancement

Provide Claude with access to relevant context and data

Example

Load project documentation, access knowledge bases, query databases

Get more accurate, context-aware responses

Workflow Automation

Automate multi-step workflows combining AI and external tools

Example

Research → Summarize → Create document → Send notification

Complete complex tasks end-to-end without manual steps

Implementation Guide

Prerequisites

  • Claude Desktop 0.7.0+ or Cursor IDE with MCP support
  • Basic understanding of MCP architecture and capabilities
  • Access credentials for integrated services (if required)
  • Willingness to experiment and iterate on configuration

Time Estimate

15-60 minutes depending on server complexity

Installation Steps

  1. 1.Install MCP server: npm install -g [package-name] or via GitHub
  2. 2.Add server configuration to ~/.claude/mcp.json
  3. 3.Provide required credentials and configuration
  4. 4.Restart Claude Desktop to load new server
  5. 5.Test basic functionality with simple prompts
  6. 6.Explore capabilities and experiment with use cases
  7. 7.Document successful patterns for reuse

Troubleshooting

  • MCP server not loading: Check config syntax, verify installation
  • Connection errors: Check network, firewall, credentials
  • Feature not working: Read server docs, check required parameters
  • Performance issues: Monitor resource usage, check for network latency
  • Conflicts with other servers: Check port assignments, namespace collisions

Best Practices

✓ Do

  • +Read server documentation thoroughly before setup
  • +Start with simple use cases to validate functionality
  • +Test in non-production environment first
  • +Monitor resource usage and performance
  • +Keep servers updated for bug fixes and new features
  • +Document configuration for team members
  • +Use environment variables for sensitive configuration

✗ Don't

  • Don't grant overly permissive access to MCP servers
  • Don't skip reading security considerations in docs
  • Don't expose sensitive data without proper controls
  • Don't run untrusted MCP servers without code review
  • Don't ignore error messages—investigate root cause

💡 Pro Tips

  • Combine multiple MCP servers for powerful workflows
  • Create custom MCP servers for your specific needs
  • Share successful configurations with team
  • Use MCP inspector for debugging
  • Join MCP community for tips and troubleshooting

Technical Details

Architecture

Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.

Protocols

  • Model Context Protocol (MCP)
  • JSON-RPC 2.0
  • stdio or HTTP transport

Compatibility

  • Claude Desktop
  • Cursor IDE
  • Custom MCP clients

When to Use This

✓ Use When

Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.

✗ Avoid When

Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.

Integration

  • Tool composition: Chain multiple MCP tools in workflows
  • Context augmentation: Provide AI with relevant external data
  • Action delegation: Let AI execute tasks on external systems
  • Bidirectional sync: Keep AI context and external systems in sync

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.742 reviews
  • Michael Jackson· Dec 24, 2024

    Gemini CLI (Windows Fixed) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Benjamin Abebe· Dec 24, 2024

    Useful MCP listing: Gemini CLI (Windows Fixed) is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Isabella Agarwal· Nov 15, 2024

    Gemini CLI (Windows Fixed) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Michael White· Nov 15, 2024

    We evaluated Gemini CLI (Windows Fixed) against two servers with overlapping tools; this profile had the clearer scope statement.

  • Neel Kim· Nov 3, 2024

    We wired Gemini CLI (Windows Fixed) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Neel Li· Oct 22, 2024

    Gemini CLI (Windows Fixed) is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Evelyn Khanna· Oct 6, 2024

    Useful MCP listing: Gemini CLI (Windows Fixed) is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Michael Srinivasan· Oct 6, 2024

    Gemini CLI (Windows Fixed) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Naina Yang· Sep 25, 2024

    According to our notes, Gemini CLI (Windows Fixed) benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Arya Martinez· Sep 17, 2024

    Gemini CLI (Windows Fixed) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

showing 1-10 of 42

1 / 5