gemini-mcp-wrapper
v1.0.1
Published
MCP wrapper for Gemini CLI with logging support for Claude Code
Downloads
20
Maintainers
Readme
Gemini MCP Wrapper
MCP wrapper for Gemini CLI tool with stderr logging support for Claude Code.
Installation
Using Claude Code CLI (easiest):
claude mcp add gemini-cli --scope user -- npx -y gemini-mcp-wrapperOr install globally:
npm install -g gemini-mcp-wrapperThen add to ~/.claude/mcp.json:
{
"mcpServers": {
"gemini-cli": {
"command": "gemini-mcp-wrapper",
"args": []
}
}
}Prerequisites
You need both the Gemini CLI and the MCP tool:
# Install Gemini CLI (official Google tool)
npm install -g @google/gemini-cli
# Install gemini-mcp-tool (MCP server for Claude Code)
npm install -g gemini-mcp-tool
# Authenticate with Gemini
gemini authWhat it does
This wrapper:
- Runs
gemini-mcp-toolvia npx - Redirects stderr to
~/gemini-mcp.logfor debugging - Keeps stdout clean for JSON-RPC communication with Claude Code
Debugging
Check logs if you encounter issues:
tail -f ~/gemini-mcp.logLicense
MIT
