gemini-mcp-server
Allows accessing and summarizing emails in Gmail through Gemini CLI extensions.
Provides web search capabilities using Google Search grounding and enables access to Google Workspace extensions (Gmail, Drive, Sheets, Docs, Calendar) through Gemini CLI.
Allows searching and reading files in Google Drive, such as documents and sheets, through Gemini CLI extensions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gemini-mcp-server search the web for React 19 features"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gemini MCP Server
Give Claude superpowers with Gemini's massive context window. Analyze entire codebases, search the web, process images, and brainstorm ideas—all through MCP.
graph LR
A[Claude Code] --> B[Gemini MCP Server]
B --> C[gemini]
B --> S[web-search]
B --> M[analyze-media]
B --> SH[shell]
B --> D[brainstorm]
C --> H[Gemini CLI]
S --> H
M --> H
SH --> H
D --> H
H --> E[Extensions]
E --> W[Google Workspace]
E --> X[Custom Extensions]
style A fill:#FF6B35
style B fill:#4A90E2
style C fill:#00D4AA
style S fill:#00D4AA
style M fill:#00D4AA
style SH fill:#00D4AA
style D fill:#00D4AA
style H fill:#4285F4
style E fill:#FBBC05
style W fill:#34A853
style X fill:#EA4335Quick Start
Prerequisites
Install Gemini CLI:
npm install -g @google/gemini-cliAuthenticate: Run
geminiand login with Google (free: 60 req/min, 1000 req/day)Set default model (recommended):
export GEMINI_MODEL="gemini-3-pro-preview"
Install
One-Click
Manual
# Claude Code
claude mcp add gemini-cli -- npx -y @tuannvm/gemini-mcp-serverAdd to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": ["-y", "@tuannvm/gemini-mcp-server"]
}
}
}Related MCP server: Gemini MCP Server
What You Can Do
Tool | What it does |
gemini | Analyze files and codebases with Gemini's 1M+ token context |
web-search | Search the web with Google Search grounding |
analyze-media | Process images, PDFs, and screenshots |
shell | Generate and execute shell commands |
brainstorm | Creative ideation with structured methodologies |
Gemini CLI Extensions
Enable access to Gmail, Drive, Sheets, Docs, Calendar, and more through Gemini CLI extensions.
# Install the Google Workspace extension
gemini extensions install https://github.com/gemini-cli-extensions/workspaceThen use with yolo: true to auto-approve extension tool calls:
# Search your Google Drive
Use gemini with yolo=true to search my Google Drive for Q4 reports
# Read a Google Sheet
Use gemini with yolo=true to read the first sheet from "Budget 2025"
# Access Gmail
Use gemini with yolo=true to summarize my last 10 unread emailsNote: Any Gemini CLI extension can be used. Pass the full GitHub URL or local path to
gemini extensions install.
Examples
# Analyze an entire codebase
Use gemini to analyze @. and provide an architecture overview
# Compare files
Use gemini to compare @src/old.ts and @src/new.ts
# Search the web
Use web-search to find the latest React 19 features
# Analyze a screenshot
Use analyze-media with filePath "@error.png" and prompt "what's this error?"
# Brainstorm ideas
Use brainstorm with methodology "design-thinking" to improve user onboardingDocumentation
API Reference — Full tool parameters and options
Gemini CLI Integration — Setup, models, and troubleshooting
Development
npm install # Install dependencies
npm run dev # Development mode
npm run build # Build
npm test # Run testsAcknowledgments
Inspired by gemini-mcp-tool.
Related Projects
codex-mcp-server — MCP server for OpenAI Codex CLI with AI-powered code analysis and review
License
MIT — This is an unofficial tool, not affiliated with Google.
Available Tools
9 toolsanalyze-mediaARead-only
Analyze images, PDFs, or other media files using Gemini multimodal capabilities. Supports screenshots, diagrams, documents, and more.
Inputs: prompt (required), filePath (required), model, detailed.
brainstormARead-only
Generate creative ideas using structured frameworks (SCAMPER, Design Thinking, etc.) with domain context, feasibility analysis, and iterative refinement.
Inputs: prompt (required), model, domain, ideaCount, +4 more.
fetch-chunkARead-onlyIdempotent
Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.
Inputs: cacheKey (required), chunkIndex (required).
geminiADestructive
Query Gemini AI. Supports model selection, sandbox mode for safe code execution, and structured change mode for applying edits.
Inputs: prompt (required), yolo, model, sandbox, +3 more.
helpARead-onlyIdempotent
Display Gemini CLI help and available options.
Inputs: no named parameters.
pingARead-onlyIdempotent
Test connectivity by echoing a message back.
Inputs: prompt.
shellADestructive
Generate and optionally execute shell commands using Gemini. By default runs in dry-run mode (explains commands). Set dryRun=false to execute in sandbox.
Inputs: task (required), model, dryRun, workingDirectory.
timeout-testBRead-onlyIdempotent
Test timeout prevention by running for a specified duration
Inputs: duration (required).
web-searchARead-only
Search the web using Gemini with Google Search grounding for real-time information.
Inputs: query (required), model, summarize.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: general query, web search, media analysis, shell command, brainstorming, chunk retrieval, connectivity test, help, and timeout test. No two tools appear to overlap in functionality.
Most tools follow a lowercase hyphenated verb-noun pattern (e.g., web-search, analyze-media, fetch-chunk), but a few are single-word nouns or verbs (gemini, shell, ping, help, timeout-test), creating minor inconsistency.
With 9 tools, the server covers core capabilities without being overwhelming. The count is well-scoped for an AI assistant providing querying, search, media analysis, shell execution, brainstorming, and utilities.
The tool set covers major interaction modes: querying, web search, media analysis, shell commands, brainstorming, and utility functions. The fetch-chunk tool addresses a specific need, but there are no obvious gaps for the stated domain.
Maintenance
Related MCP Connectors
One workspace of tools for Claude and ChatGPT: connect 600+ apps, generate media, build tools.
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
SEO research, Search Console, GA4 and PPC tools for Claude and ChatGPT.
Claude-powered AI tools: research, write, code, analyze, translate, debate, pitch, score, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to consult Gemini for complex coding problems with session management, file attachments, and conversation persistence.106MIT
- AlicenseAqualityDmaintenanceIntegrates Google Gemini 3.1 with Claude Code to provide web search, large codebase analysis, multimodal image understanding, and creative brainstorming, leveraging Gemini's 1M token context and Google Search grounding.5190 npm141MIT
- AlicenseBqualityDmaintenanceEnables Claude to offload large codebase analysis to Google Gemini with 1M+ token context windows, persistent sessions, and dramatic token savings.896 npm1MIT
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to escalate complex code-analysis tasks to Google Gemini for large-context execution tracing, cross-system impact analysis, performance bottleneck detection, and hypothesis testing.MIT