gemini-mcp-tool
by jamubc·★ 2,212·Score 54
MCP server enabling AI assistants to interact with Google Gemini CLI for large file analysis and codebase understanding.
Overview
This Model Context Protocol server bridges AI assistants with Google Gemini's powerful CLI, leveraging Gemini's extensive token window for analyzing large files and codebases. It provides tools for asking natural language questions, conducting analysis with file references using the @ syntax, and safely testing code in a sandbox environment. The server supports both tool calls for AI assistants and slash commands for direct user interaction within Claude Code.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need to analyze large codebases or files using Gemini's capabilities directly in Claude, especially when working with projects that exceed standard context windows.
When NOT to choose this
Avoid this if you need write access to your codebase (Gemini CLI is read-only) or if you're already using other Google AI services that provide similar functionality.
Tools this server exposes
4 tools extracted from the READMEask-geminiprompt (required), model (optional), sandbox (optional)Asks Google Gemini for its perspective, with support for file references and general questions.
sandbox-testprompt (required), model (optional)Safely executes code or commands in Gemini's sandbox environment.
PingA simple test tool that echoes back a message.
HelpShows the Gemini CLI help text.
Comparable tools
Installation
Installation
**Prerequisites:**
- Node.js (v16.0.0 or higher)
- Google Gemini CLI installed and configured
**One-Line Setup:**
claude mcp add gemini-cli -- npx -y gemini-mcp-tool**Claude Desktop Configuration:**
{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool"]
}
}
}FAQ
- What is the purpose of this MCP server?
- It enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding.
- How do I use file references with Gemini?
- Use the @ syntax in your prompts to reference files or directories, such as 'analyze @src/main.js' or 'summarize @.' for the current directory.
Compare gemini-mcp-tool with
Last updated · Auto-generated from public README + GitHub signals.