
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Windows-focused MCP server exposing tools that let AI assistants send prompts to Gemini, brainstorm with frameworks, analyze files via @ syntax, and run sandboxed code.
Windows-compatible MCP server for Google Gemini CLI is cataloged as an MCP server attributed to orzcls. A Windows-focused MCP server exposing tools that let AI assistants send prompts to Gemini, brainstorm with frameworks, analyze files via @ syntax, and run sandboxed code. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Windows-compatible MCP server for Google Gemini CLI are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, it adds an optional powershellPath parameter allowing users to customize the PowerShell executable path.
It supports divergent, convergent, scamper, design-thinking, lateral, and auto frameworks.
The default model is gemini-2.5-pro.
README.md · df0bd8796817 · Fetched 2026-11-13 08:53:00 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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.
powershellPath parameter allowing users to customize PowerShell executable pathspawn powershell.exe ENOENT issueargs variable issue in executeCommandWithPipedInput function@filename syntaxThis Windows-fixed version resolves:
Before using this tool, ensure you have:
node --version # Should be v16+
npm install -g @google/generative-ai-cli
# Verify installation
gemini --version
# Use latest version (recommended)
npx gemini-mcp-tool-windows-fixed@1.0.21
# Or use latest version tag
npx -y gemini-mcp-tool-windows-fixed@latest
# Install latest version
npm install -g gemini-mcp-tool-windows-fixed@1.0.21
# Run the tool
gemini-mcp-tool-windows-fixed
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 gemini-mcp-tool-windows-fixed@1.0.21
# One-command setup for Claude Code
claude mcp add gemini-cli -- npx -y gemini-mcp-tool-windows-fixed@1.0.21
Verify Installation:
Type /mcp inside Claude Code to verify the gemini-cli MCP is active. 1
If you already have it configured in Claude Desktop:
claude mcp add-from-claude-desktop
%APPDATA%\Trae\User\mcp.json{
"mcpServers": {
"gemini-cli": {
"name": "gemini-cli",
"description": "Windows-compatible Gemini MCP Tool",
"baseUrl": "",
"command": "npx",
"args": [
"-y",
"gemini-mcp-tool-windows-fixed@1.0.21"
],
"env": {
"GEMINI_API_KEY": "YOUR_ACTUAL_API_KEY_HERE"
},
"isActive": true,
"providerUrl": "https://github.com/orzcls/gemini-mcp-tool-windows-fixed"
}
}
}
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool-windows-fixed@1.0.21"],
"env": {
"GEMINI_API_KEY": "YOUR_ACTUAL_API_KEY_HERE"
}
}
}
}
Replace YOUR_ACTUAL_API_KEY_HERE in the configuration above with your actual API key.
# 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
Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/claude/claude_desktop_config.jsonTrae AI:
%APPDATA%\Trae\User\mcp.jsonThis MCP server provides the following tools for AI assistants:
ask-geminiInteract with Google Gemini for analysis and questions.
Parameters:
prompt (required): The analysis request. Use @ syntax for file referencesmodel (optional): Gemini model to use (default: gemini-2.5-pro)sandbox (optional): Enable sandbox mode for safe code executionchangeMode (optional): Enable structured change modechunkIndex (optional): Chunk index for continuationchunkCacheKey (optional): Cache key for continuationbrainstormGenerate creative ideas using various brainstorming frameworks.
Parameters:
prompt (required): Brainstorming challenge or questionmodel (optional): Gemini model to usemethodology (optional): Framework (divergent, convergent, scamper, design-thinking, lateral, auto)domain (optional): Domain context (software, business, creative, etc.)constraints (optional): Known limitations or requirementsexistingContext (optional): Background informationideaCount (optional): Number of ideas to generate (default: 12)includeAnalysis (optional): Include feasibility analysis (default: true)fetch-chunkRetrieve cached chunks from changeMode responses.
Parameters:
cacheKey (required): Cache key from initial responsechunkIndex (required): Chunk index to retrieve (1-based)timeout-testTest timeout prevention mechanisms.
Parameters:
duration (required): Duration in milliseconds (minimum: 10ms)pingTest connection to the server.
Parameters:
prompt (optional): Message to echo backHelpDisplay help information about available tools.
Once configured, you can use the following tools through your MCP client:
With File References (using @ syntax):
General Questions (without files):
Using Gemini CLI's Sandbox Mode (-s): 2 The sandbox mode allows you to safely test code changes, run scripts, or execute potentially risky operations in an isolated environment.
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/ summarize this directory) or ask general questions (e.g., /analyze prompt:Please use a web search to find the latest news stories)/sandbox: Safely tests code or scripts in Gemini's sandbox environment
prompt (required): Code testing request (e.g., /sandbox prompt:Create and run a Python script that processes CSV data or /sandbox prompt:@script.py Test this script safely)/help: Displays the Gemini CLI help information
/ping: Tests the connection to the server
message (optional): A message to echo backask-gemini: Send prompts to Gemini
"Explain how MCP works"
analyze-file: Analyze specific files using @filename syntax
"Analyze @package.json and suggest improvements"
sandbox-mode: Execute code in a safe environment
"Run this Python code in sandbox mode: print('Hello World')"
This version includes the following Windows-specific improvements:
.env file loading and environment variable handlinggemini -p "Hello, how are you?"
npx -y gemini-mcp-tool-windows-fixed
# Should show: [GMCPT] Gemini CLI MCP Server (Fixed) started
npm install -g @google/generative-ai-cli
# Check if API key is set
echo $env:GEMINI_API_KEY
# Set if empty
$env:GEMINI_API_KEY = "your-api-key"
# Check execution policy
Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
For detailed troubleshooting, see INSTALL-GUIDE.md.
This version includes several Windows-specific improvements:
Contributions are welcome! Please:
MIT License - see LICENSE file for details.
If you encounter any issues or have questions:
Made with ❤️ for Windows developers
Note: This is a Windows-optimized fork of the original gemini-mcp-tool. For other platforms, consider using the original version.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Windows-compatible MCP server for Google Gemini CLI from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/gemini-cli-windows-fixed)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.