About
Gemini MCP Server is a community-built Model Context Protocol bridge that connects AI assistants to the Google Gemini CLI, enabling analysis of large files and codebases using Gemini's extensive token context window. Key features include: - Integration with Google Gemini CLI to extend AI assistant capabilities - Support for massive file analysis that exceeds standard context limits - `@` syntax for directing queries to specific files, directories, or code sections - Token-efficient processing of large codebases and documents - Natural language interaction with Gemini directly through Claude Code and other MCP-compatible clients
README
Gemini MCP Tool
[](https://github.com/jamubc/gemini-mcp-tool/releases) [](https://www.npmjs.com/package/gemini-mcp-tool) [](https://www.npmjs.com/package/gemini-mcp-tool) [](https://opensource.org/licenses/MIT) [](https://github.com/jamubc/gemini-mcp-tool)
> 📚 View Full Documentation - Search me!, Examples, FAQ, Troubleshooting, Best Practices
This is a simple Model Context Protocol (MCP) server that allows AI assistants to interact with the Gemini 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.
TLDR: [](#) + [](#)
Goal: Use Gemini's powerful analysis capabilities directly in Claude Code to save tokens and analyze large files.
Prerequisites
Before using this tool, ensure you have:
1. Node.js (v16.0.0 or higher) 2. Google Gemini CLI installed and configured
One-Line Setup
claude mcp add gemini-cli -- npx -y gemini-mcp-tool
Verify Installation
Type /mcp inside Claude Code to verify the gemini-cli MCP is active.
---
Alternative: Import from Claude Desktop
If you already have it configured in Claude Desktop:
1. Add to your Claude Desktop config:
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool"]
}
2. Import to Claude Code:
claude mcp add-from-claude-desktop
Configuration
Register the MCP server with your MCP client:
For NPX Usage (Recommended)
Add this configuration to your Claude Desktop config file:
{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool"]
}
}
}
For Global Installation
If you installed globally, use this configuration instead:
{
"mcpServers": {
"gemini-cli": {
"command": "gemini-mcp"
}
}
}
Configuration File Locations:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
- Linux: ~/.config/claude/claude_desktop_config.jsonAfter updating the configuration, restart your terminal session.
Example Workflow
/gemini-cli and commands will populate in Claude Code's interface.Usage Examples
With File References (using @ syntax)
ask gemini to analyze @src/main.js and explain what it doesuse gemini to summarize @. the current directoryanalyze @package.json and tell me about dependenciesGeneral Questions (without files)
ask gemini to search for the latest tech newsuse gemini to explain div centeringask gemini about best practices for React development related to @file_im_confused_aboutUsing Gemini CLI's Sandbox Mode (-s)
The sandbox mode allows you to safely test code changes, run scripts, or execute potentially risky operations in an isolated environment.
use gemini sandbox to create and run a Python script that processes dataask gemini to safely test @script.py and explain what it doesuse gemini sandbox to install numpy and create a data visualizationtest this code safely: Create a script that makes HTTP requests to an APITools (for the AI)
These tools are designed to be used by the AI assistant.
ask-gemini: Asks Google Gemini for its perspective. Can be used for general questions or complex analysis of files.prompt (required): The analysis request. Use the @ syntax to include file or directory references (e.g., @src/main.js explain this code) or ask general questions (e.g., Please use a web search to find the latest news stories).
- model (optional): The Gemini model to use. Defaults to gemini-2.5-pro.
- sandbox (optional): SeRelated MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support