[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73902":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},73902,"gemini-mcp-tool","jamubc\u002Fgemini-mcp-tool","jamubc","MCP server that enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding","https:\u002F\u002Fjamubc.github.io\u002Fgemini-mcp-tool\u002F",null,"TypeScript",2232,195,20,11,0,3,8,27,9,28.88,"Other",false,"main",true,[27,28,29,30,31,32,33,34,35,36],"ai","claude","cli","codebase-analysis","file-analysis","gemini","mcp","model-context-protocol","npm","typescript","2026-06-12 02:03:19","\n# Gemini MCP Tool\n\n\u003Cdiv align=\"center\">\n\n[![GitHub Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fjamubc\u002Fgemini-mcp-tool?logo=github&label=GitHub)](https:\u002F\u002Fgithub.com\u002Fjamubc\u002Fgemini-mcp-tool\u002Freleases)\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fgemini-mcp-tool)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fgemini-mcp-tool)\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdt\u002Fgemini-mcp-tool)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fgemini-mcp-tool)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n[![Open Source](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FOpen%20Source-❤️-red.svg)](https:\u002F\u002Fgithub.com\u002Fjamubc\u002Fgemini-mcp-tool)\n\n\u003C\u002Fdiv>\n\n> 📚 **[View Full Documentation](https:\u002F\u002Fjamubc.github.io\u002Fgemini-mcp-tool\u002F)** - Search me!, Examples, FAQ, Troubleshooting, Best Practices\n\nThis is a simple Model Context Protocol (MCP) server that allows AI assistants to interact with the [Gemini CLI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli). It enables the AI to leverage the power of Gemini's massive token window for large analysis, especially with large files and codebases using the `@` syntax for direction.\n\n- Ask gemini natural questions, through claude or Brainstorm new ideas in a party of 3!\n\n\u003Ca href=\"https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002F@jamubc\u002Fgemini-mcp-tool\">\n  \u003Cimg width=\"380\" height=\"200\" src=\"https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002F@jamubc\u002Fgemini-mcp-tool\u002Fbadge\" alt=\"Gemini Tool MCP server\" \u002F>\n\u003C\u002Fa>\n\n## TLDR: [![Claude](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FClaude-D97757?logo=claude&logoColor=fff)](#) + [![Google Gemini](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGoogle%20Gemini-886FBF?logo=googlegemini&logoColor=fff)](#)\n\n\n**Goal**: Use Gemini's powerful analysis capabilities directly in Claude Code to save tokens and analyze large files.\n\n## Prerequisites\n\nBefore using this tool, ensure you have:\n\n1. **[Node.js](https:\u002F\u002Fnodejs.org\u002F)** (v16.0.0 or higher)\n2. **[Google Gemini CLI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli)** installed and configured\n\n\n### One-Line Setup\n\n```bash\nclaude mcp add gemini-cli -- npx -y gemini-mcp-tool\n```\n\n### Verify Installation\n\nType `\u002Fmcp` inside Claude Code to verify the gemini-cli MCP is active.\n\n---\n\n### Alternative: Import from Claude Desktop\n\nIf you already have it configured in Claude Desktop:\n\n1. Add to your Claude Desktop config:\n```json\n\"gemini-cli\": {\n  \"command\": \"npx\",\n  \"args\": [\"-y\", \"gemini-mcp-tool\"]\n}\n```\n\n2. Import to Claude Code:\n```bash\nclaude mcp add-from-claude-desktop\n```\n\n## Configuration\n\nRegister the MCP server with your MCP client:\n\n### For NPX Usage (Recommended)\n\nAdd this configuration to your Claude Desktop config file:\n\n```json\n{\n  \"mcpServers\": {\n    \"gemini-cli\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"gemini-mcp-tool\"]\n    }\n  }\n}\n```\n\n### For Global Installation\n\nIf you installed globally, use this configuration instead:\n\n```json\n{\n  \"mcpServers\": {\n    \"gemini-cli\": {\n      \"command\": \"gemini-mcp\"\n    }\n  }\n}\n```\n\n**Configuration File Locations:**\n\n- **Claude Desktop**:\n  - **macOS**: `~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fclaude_desktop_config.json`\n  - **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n  - **Linux**: `~\u002F.config\u002Fclaude\u002Fclaude_desktop_config.json`\n\nAfter updating the configuration, restart your terminal session.\n\n## Example Workflow\n\n- **Natural language**: \"use gemini to explain index.html\", \"understand the massive project using gemini\", \"ask gemini to search for latest news\"\n- **Claude Code**: Type `\u002Fgemini-cli` and commands will populate in Claude Code's interface.\n\n## Usage Examples\n\n### With File References (using @ syntax)\n\n- `ask gemini to analyze @src\u002Fmain.js and explain what it does`\n- `use gemini to summarize @. the current directory`\n- `analyze @package.json and tell me about dependencies`\n\n### General Questions (without files)\n\n- `ask gemini to search for the latest tech news`\n- `use gemini to explain div centering`\n- `ask gemini about best practices for React development related to @file_im_confused_about`\n\n### Using Gemini CLI's Sandbox Mode (-s)\n\nThe sandbox mode allows you to safely test code changes, run scripts, or execute potentially risky operations in an isolated environment.\n\n- `use gemini sandbox to create and run a Python script that processes data`\n- `ask gemini to safely test @script.py and explain what it does`\n- `use gemini sandbox to install numpy and create a data visualization`\n- `test this code safely: Create a script that makes HTTP requests to an API`\n\n### Tools (for the AI)\n\nThese tools are designed to be used by the AI assistant.\n\n- **`ask-gemini`**: Asks Google Gemini for its perspective. Can be used for general questions or complex analysis of files.\n  - **`prompt`** (required): The analysis request. Use the `@` syntax to include file or directory references (e.g., `@src\u002Fmain.js explain this code`) or ask general questions (e.g., `Please use a web search to find the latest news stories`).\n  - **`model`** (optional): The Gemini model to use. Defaults to `gemini-2.5-pro`.\n  - **`sandbox`** (optional): Set to `true` to run in sandbox mode for safe code execution.\n- **`sandbox-test`**: Safely executes code or commands in Gemini's sandbox environment. Always runs in sandbox mode.\n  - **`prompt`** (required): Code testing request (e.g., `Create and run a Python script that...` or `@script.py Run this safely`).\n  - **`model`** (optional): The Gemini model to use.\n- **`Ping`**: A simple test tool that echoes back a message.\n- **`Help`**: Shows the Gemini CLI help text.\n\n### Slash Commands (for the User)\n\nYou can use these commands directly in Claude Code's interface (compatibility with other clients has not been tested).\n\n- **\u002Fanalyze**: Analyzes files or directories using Gemini, or asks general questions.\n  - **`prompt`** (required): The analysis prompt. Use `@` syntax to include files (e.g., `\u002Fanalyze prompt:@src\u002F summarize this directory`) or ask general questions (e.g., `\u002Fanalyze prompt:Please use a web search to find the latest news stories`).\n- **\u002Fsandbox**: Safely tests code or scripts in Gemini's sandbox environment.\n  - **`prompt`** (required): Code testing request (e.g., `\u002Fsandbox prompt:Create and run a Python script that processes CSV data` or `\u002Fsandbox prompt:@script.py Test this script safely`).\n- **\u002Fhelp**: Displays the Gemini CLI help information.\n- **\u002Fping**: Tests the connection to the server.\n  - **`message`** (optional): A message to echo back.\n\n## Contributing\n\nContributions are welcome! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details on how to submit pull requests, report issues, and contribute to the project.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n**Disclaimer:** This is an unofficial, third-party tool and is not affiliated with, endorsed, or sponsored by Google.\n","Gemini MCP Tool 是一个模型上下文协议（MCP）服务器，使AI助手能够与Google Gemini CLI交互，利用Gemini的大规模token窗口进行大文件分析和代码库理解。其核心功能包括通过自然语言提问、利用`@`语法指定方向来处理大型文件和代码库，以及在Claude或多人协作环境中生成新想法。该项目采用TypeScript编写，支持Node.js环境，并通过npm包管理器分发。适用于需要深度解析大量代码或文本数据的开发场景，例如软件项目维护、文档审查等。",2,"2026-06-11 03:47:51","high_star"]