Gemini MCP Server

npm versionarrow-up-right npm downloadsarrow-up-right licensearrow-up-right

Give Claude superpowers with Gemini's massive context window. Analyze entire codebases, search the web, process images, and brainstorm ideas—all through MCP.

spinner

Quick Start

Prerequisites

  1. Install Gemini CLI: npm install -g @google/gemini-cli

  2. Authenticate: Run gemini and login with Google (free: 60 req/min, 1000 req/day)

  3. Set default model (recommended): export GEMINI_MODEL="gemini-3-pro-preview"

Install

One-Click

VS Codearrow-up-right VS Code Insidersarrow-up-right Cursorarrow-up-right

Manual

# Claude Code
claude mcp add gemini-cli -- npx -y @tuannvm/gemini-mcp-server
chevron-rightClaude Desktophashtag

Add 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"]
    }
  }
}

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

Examples

Documentation

Development

Acknowledgments

Inspired by gemini-mcp-toolarrow-up-right.

License

MIT — This is an unofficial tool, not affiliated with Google.

Last updated

Was this helpful?