Gemini logo

Gemini

Routes MCP tool calls to Google Gemini for questions, analysis, multi-turn chats, and model discovery.

Install Gemini

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": {
      "command": "npx",
      "args": [
        "-y",
        "claude-gemini-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_VALUE_HERE",
        "GEMINI_MODEL": "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

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y claude-gemini-mcp

initialize succeeded but no response to tools/list.

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 server exposes Google Gemini through MCP tools for Claude Code and other MCP clients. It supports one-off questions, targeted code or text analysis, multi-turn conversations, and model listing. Configure a Google AI Studio API key, then run it with Node.js or npx. Reach for it when an agent needs a second model perspective, large-context analysis, or Gemini-specific output.

Use cases

  • Ask Gemini for a second opinion on a technical decision
  • Review code for performance issues
  • Analyze large text or error logs
  • Continue a multi-turn API design discussion
  • List available Gemini models

Key features

  • General Gemini questions and tasks
  • Instruction-based code and text analysis
  • Multi-turn conversations with supplied history
  • Per-call model selection
  • Model discovery
  • Retry handling for rate limits and server errors

Tools4

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

Self-reported~53 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.

29/31 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · claude-gemini-mcp (npm)

Adoption & maintenance

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

npm downloads1.6kPackage downloads in the last 30 days.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed4Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Gemini works

What the gemini MCP server does

The gemini MCP server connects an MCP client to Google Gemini through the Google AI API. It makes four operations available: asking Gemini to answer a question or perform a task, submitting code or text with an analysis instruction, continuing a conversation with supplied message history, and retrieving available model names.

This setup is intended for workflows where an agent benefits from another model’s response. Example uses include requesting a second opinion, reviewing code, examining large amounts of text, explaining an error, or continuing a design discussion across multiple turns. The server does not replace the host MCP client; it supplies Gemini-backed tools that the client can invoke.

How it works

The server runs as a Node.js process and communicates with the MCP client through its configured command. It can be started from a cloned repository with node or launched through npx using the published package name. Each tool call is sent to Google Gemini, and the result is returned to the MCP client.

gemini_ask handles general prompts and tasks. gemini_analyze accepts content together with a specific instruction, which suits code review or focused text inspection. gemini_chat accepts a message array containing the conversation history, allowing later turns to build on earlier ones. gemini_models reports model names that can be used for requests.

The default model is gemini-2.5-pro, but every tool accepts an optional model value. The documented alternatives include gemini-2.5-flash and gemini-2.0-flash.

Setup and configuration

A Google AI Studio API key is required. Set it as GEMINI_API_KEY in the MCP client’s environment configuration. GEMINI_MODEL changes the default model and otherwise defaults to gemini-2.5-pro.

For a local installation, clone the repository, enter its directory, and run npm install. Register the server with a client by pointing the MCP entry to node and the repository’s index.js.

Node.js 20 or newer is indicated by the project metadata. After changing the client configuration, restart the client if the tools do not appear. Network access is needed because requests are sent to generativelanguage.googleapis.com.

Tools and capabilities

  • Ask Gemini general questions or assign tasks with gemini_ask.
  • Submit code or text with a focused instruction through gemini_analyze.
  • Continue a multi-turn exchange with complete supplied history using gemini_chat.
  • Discover usable model names with gemini_models.
  • Select a model per call instead of relying on the configured default.
  • Retry rate-limit and server-error responses with exponential backoff.

Limitations and notes

The gemini MCP server requires a Google AI Studio API key and network connectivity to Google’s generative-language endpoint. A missing or invalid model name can prevent a request from succeeding; use gemini_models to inspect available names. Rate limits and server errors are retried, but the documentation does not indicate that all failures are recoverable.

The README presents Claude Code as the primary setup example, while also stating that the server can be used with any MCP client. Client-specific registration syntax may therefore vary. The project is licensed under MIT.

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

gemini is an MCP server that connects MCP clients to Google Gemini and exposes tools for general questions, code or text analysis, multi-turn conversations, and model discovery. It runs with Node.js or npx and requires a Google AI Studio API key. Each tool can optionally select a Gemini model.

Install it by cloning the repository and running npm install, or launch the published package with npx -y claude-gemini-mcp. The cloned setup runs index.js with Node.js. Both approaches require registering the command in your MCP client configuration.

Set GEMINI_API_KEY in the MCP server's environment configuration. The value should be a Google AI Studio API key. You can also set GEMINI_MODEL to choose the default model; if omitted, the default is gemini-2.5-pro.

Use the gemini_models tool to list available model names. The documentation lists gemini-2.5-pro, gemini-2.5-flash, and gemini-2.0-flash. Every tool also accepts an optional model parameter for per-call selection.

Yes, the server is described as usable with any MCP client, and Cursor is an MCP client. The README provides an explicit Claude Code registration example rather than Cursor-specific configuration, so use Cursor's standard MCP server setup with the documented command and environment variables.

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 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gemini?style=directory)](https://allmcps.com/mcp/gemini)
HTML Embed
<a href="https://allmcps.com/mcp/gemini"><img src="https://allmcps.com/api/badge/gemini?style=directory" alt="Gemini on AllMCPs" /></a>