home / mcp / gemini mcp tool windows fixed mcp server
Gemini MCP Tool - Windows Fixed Version for Trae AI and Claude Desktop
Configuration
View docs{
"mcpServers": {
"orzcls-gemini-mcp-tool-windows-fixed": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GEMINI_API_KEY": "YOUR_ACTUAL_API_KEY_HERE"
}
}
}
}You set up the Gemini MCP Tool Windows Fixed version as an MCP server to let AI assistants interact with Googleβs Gemini CLI from Windows. This server bridges MCP clients with Gemini, handling command execution, file references, and sandbox-safe interactions while ensuring Windows compatibility and robust error handling.
Install and run the MCP server locally, then connect it to your MCP client (such as Trae AI or Claude Desktop). You can start by using NPX to run the fixed Windows version without installing it globally, or install it globally for ease of use. Once running, tell your MCP client to use the gemini-mcp-tool-windows-fixed endpoint to send prompts, file references, and sandboxed actions to Gemini.
Prerequisites you need before installing the MCP server on Windows:
# Check Node.js version
node --version # Should be v16+Option 1: Quick start with NPX (recommended) lets you run the fixed Windows MCP tool without a local install.
# Use latest version (recommended)
npx [email protected]
# Or use latest tag
npx -y gemini-mcp-tool-windows-fixed@latestOption 2: Global installation installs the MCP tool so you can run it from any prompt.
# Install latest version globally
npm install -g [email protected]
# Run the tool
gemini-mcp-tool-windows-fixedIf you use the MCP with Claude Code or Claude Desktop, configure with one of the provided MCP server mappings. You will need your Gemini API key in the environment variable GEMINI_API_KEY.
# Example environment variable setup for a user session (PowerShell)
$env:GEMINI_API_KEY = "YOUR_ACTUAL_API_KEY_HERE"Verify that Gemini CLI and the MCP tool run correctly and that the MCP client can communicate with the server.
# Test Gemini CLI
gemini -p "Hello, how are you?"
# Test MCP server start (via npx form)
npx -y [email protected]
# Should show a message indicating the MCP server startedIf you encounter common issues, verify your Node.js version, ensure the Gemini CLI is installed, and confirm your API key environment variable is set correctly.
# Check API key
echo $env:GEMINI_API_KEY
# Set if empty
$env:GEMINI_API_KEY = "your-api-key"This fixed version includes Windows-specific improvements such as better PowerShell parameter handling, UTF-8 encoding for Unicode text, quote escaping in command arguments, and enhanced environment variable loading.
Treat your Gemini API key as a secret. Do not expose it in logs or shared configurations. Use sandbox mode for risky operations and only enable it when you trust your workflows.
The Windows-fixed MCP tool maintains compatibility with various terminals (PowerShell, CMD, VS Code Terminal, etc.) and provides enhanced error handling and PATH management to simplify setup on Windows.
Interact with Google Gemini for analysis and questions.
Generate creative ideas using various brainstorming frameworks.
Retrieve cached chunks from changeMode responses.
Test timeout prevention mechanisms.
Test connection to the server.
Display help information about available tools.