Gemini MCP Server logo

Gemini MCP Server

Community
tuannvm

An MCP server that allows AI assistants to connect with Google Gemini's command-line interface, taking advantage of Gemini's large token capacity to analyze large files and understand codebases.

Publishertuannvm
Repositorygemini-mcp-server
LanguageTypeScript
Forks
5
Stars
36
Available tools
9
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Gemini MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 9 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    36 stars and 5 forks from the linked repository.

Gemini MCP Server

npm version npm downloads license

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

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 Code VS Code Insiders Cursor

Manual

bash
# Claude Code
claude mcp add gemini-cli -- npx -y @tuannvm/gemini-mcp-server

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):

json
{
  "mcpServers": {
    "gemini-cli": {
      "command": "npx",
      "args": ["-y", "@tuannvm/gemini-mcp-server"]
    }
  }
}

What You Can Do

ToolWhat it does
geminiAnalyze files and codebases with Gemini's 1M+ token context
web-searchSearch the web with Google Search grounding
analyze-mediaProcess images, PDFs, and screenshots
shellGenerate and execute shell commands
brainstormCreative ideation with structured methodologies

Gemini CLI Extensions

Enable access to Gmail, Drive, Sheets, Docs, Calendar, and more through Gemini CLI extensions.

bash
# Install the Google Workspace extension
gemini extensions install https://github.com/gemini-cli-extensions/workspace

Then 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 emails

Note: 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 onboarding

Documentation

Development

bash
npm install    # Install dependencies
npm run dev    # Development mode
npm run build  # Build
npm test       # Run tests

Acknowledgments

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.

Installation

TypingMind
{
  "mcpServers": {
    "gemini-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@tuannvm/gemini-mcp-server"
      ]
    }
  }
}

Available Tools

  • gemini

    Query Gemini AI. Supports model selection, sandbox mode for safe code execution, and structured change mode for applying edits.

  • web-search

    Search the web using Gemini with Google Search grounding for real-time information.

  • analyze-media

    Analyze images, PDFs, or other media files using Gemini multimodal capabilities. Supports screenshots, diagrams, documents, and more.

  • shell

    Generate and optionally execute shell commands using Gemini. By default runs in dry-run mode (explains commands). Set dryRun=false to execute in sandbox.

  • brainstorm

    Generate creative ideas using structured frameworks (SCAMPER, Design Thinking, etc.) with domain context, feasibility analysis, and iterative refinement.

  • fetch-chunk

    Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.

  • ping

    Test connectivity by echoing a message back.

  • help

    Display Gemini CLI help and available options.

  • timeout-test

    Test timeout prevention by running for a specified duration

Use Gemini MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Gemini MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Gemini MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Gemini MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "gemini-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@tuannvm/gemini-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Gemini MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Gemini MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Gemini MCP Server to help me with this task?
Gemini MCP Server
Sure. I read it.
Here is what I found using Gemini MCP Server.

Frequently asked questions

What is the Gemini MCP Server MCP server used for?

Gemini MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Gemini MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Gemini MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Gemini MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Gemini MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Gemini MCP Server MCP to TypingMind?

Gemini MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Gemini MCP Server MCP provide in TypingMind?

Gemini MCP Server exposes 9 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Gemini MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Gemini MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

gemini

Query Gemini AI with optional sandbox execution and structured change mode.

web-search

Search the web for real-time information using Google Search grounding.

analyze-media

Analyze media files (images, PDFs) using Gemini multimodal AI

shell

Generate shell commands for a task, optionally executing in sandbox mode

brainstorm

Generate creative ideas using structured brainstorming methodologies.

fetch-chunk

Fetch the next chunk of a response

ping

Echo a test message to verify connectivity.

help

Display Gemini CLI help information.

timeout-test

Test the timeout prevention system by running a long operation

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇