Gemini MCP logo

Gemini MCP

Connects Claude Code to Google Gemini for research, media generation, document analysis, code execution, and structured responses.

Install Gemini MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gemini-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@rlabs-inc/gemini-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_VALUE_HERE",
        "VERBOSE": "YOUR_VALUE_HERE",
        "GEMINI_OUTPUT_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @rlabs-inc/gemini-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The gemini-mcp MCP server connects MCP clients with Google Gemini 3 models through tools for queries, research, media generation, document analysis, code execution, and extraction. It runs through the npm package and uses a Google AI API key, with optional logging and an output directory for generated files. Reach for it when an agent needs Gemini-specific reasoning, web search with citations, image or video generation, YouTube analysis, or Python-based data work.

Use cases

  • Search the web and return cited answers
  • Generate and iteratively edit images
  • Analyze PDFs, documents, and YouTube videos
  • Run Python analysis on supplied data
  • Review code for security and performance issues

Key features

  • Gemini Pro and Flash queries with thinking-level controls
  • Web search, research, and inline citations
  • Image, video, and text-to-speech generation
  • PDF, document, spreadsheet, and YouTube analysis
  • Python code execution with data-science libraries
  • Structured JSON output and content extraction

Tools3

What Gemini MCP lets your agent do. Expand a tool for its parameters.

Self-reported~27 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

33/38 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @rlabs-inc/gemini-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars226Stargazers on the source repository.
npm downloads4.3kPackage downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed3Callable tools this server registers over MCP.
Directory activity19 viewsConfig copies, upvotes, and views on AllMCPs.

How Gemini MCP works

What gemini-mcp does

The gemini-mcp MCP server exposes Google Gemini 3 capabilities to MCP-compatible clients, with Claude Code documented as the primary integration. It supports direct prompts to Gemini Pro and Flash, configurable reasoning depth, web search, research workflows, structured JSON output, and text analysis.

The server also covers multimodal and generation tasks. Available tools can generate images at up to 4K resolution, edit images across multiple turns, create Veo videos, synthesize speech with 30 voices, analyze YouTube videos, and inspect PDFs, DOCX files, and spreadsheets. Generated images, videos, and charts can be written to a configured output directory.

How it works

Install the published npm package and start it as an MCP process with npx or bunx. The client passes tool calls to the server, which uses the configured Google Gemini API key to perform the requested operation. Direct queries accept a model choice of pro or flash; thinking levels range from low to high, with medium described as available for Flash and high as the default.

Some operations have their own workflow. Image editing uses a session ID returned by the start operation, which is then supplied to continue or close the session. Video generation is asynchronous and requires polling with the video-check tool using an operation ID. Search responses can include inline citations and source URLs.

Setup and configuration

The gemini-mcp MCP server requires a GEMINI_API_KEY. The README directs users to obtain the key from Google AI Studio. A Claude Code installation can register the server with a command such as:

Terminal
claude mcp add gemini -s user -- env GEMINI_API_KEY=YOUR_KEY npx -y @rlabs-inc/gemini-mcp

Bun users can substitute bunx. For more diagnostic output, set VERBOSE=true. Set GEMINI_OUTPUT_DIR to choose where generated images, videos, and charts are saved. The package can also be installed globally for its CLI, after which the CLI key can be configured with gcli config set api-key YOUR_KEY.

Tools and capabilities

The documented tool groups include:

  • gemini-query for direct Gemini prompts with model and thinking-level controls.
  • gemini-search and the research functionality for current web information and citations.
  • Image generation, multi-turn image editing, video generation, and video-status polling.
  • Text-to-speech, summarization, sentiment analysis, entity extraction, and keyword extraction.
  • PDF and document analysis, PDF summaries, table extraction, and YouTube analysis with optional time ranges.
  • Python code generation and execution, including work with libraries such as pandas, NumPy, Matplotlib, SciPy, scikit-learn, and TensorFlow.
  • Structured responses validated against a supplied JSON schema.
  • Code review focused on quality, security, performance, bugs, or general issues.
  • Collaborative brainstorming that accepts Claude’s thoughts and can run for multiple rounds.

Limitations and notes

The server depends on Google Gemini API access and a valid API key. Video generation is not immediate: the README estimates one to five minutes and requires asynchronous status checks. Medium thinking is documented for Flash only. Image and video output consumes local storage when an output directory is configured, and code execution produces charts as files returned as images.

Other MCP clients may require their own server-registration format. The available media, document, search, and model behavior is subject to the capabilities exposed by the connected Gemini services.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gemini MCP

gemini-mcp is an MCP server that connects MCP clients such as Claude Code to Google Gemini 3 models. Its main tools support direct queries, web search and research, image and video generation, text-to-speech, document and YouTube analysis, Python code execution, structured JSON output, and content extraction.

Install it through Claude Code with `claude mcp add gemini -s user -- env GEMINI_API_KEY=YOUR_KEY npx -y @rlabs-inc/gemini-mcp`. Bun users can use `bunx` instead of `npx`. The package can also be installed globally with npm for its CLI.

It needs a Google Gemini API key supplied through `GEMINI_API_KEY`. The README points to Google AI Studio for creating one. The CLI also supports storing a key with `gcli config set api-key YOUR_KEY`.

Yes, it can generate images and support multi-turn editing. Image generation accepts aspect-ratio, resolution, search-grounding, thinking-level, person-generation, and seed options. Editing uses a session ID that is passed to later continue and end operations.

Yes, `gemini-run-code` lets Gemini write and execute Python code. The documented use cases include pandas, NumPy, Matplotlib, SciPy, scikit-learn, and TensorFlow, with generated charts saved to the configured output directory and returned as images.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGemini MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gemini-mcp?style=directory)](https://allmcps.com/mcp/gemini-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/gemini-mcp"><img src="https://allmcps.com/api/badge/gemini-mcp?style=directory" alt="Gemini MCP on AllMCPs" /></a>