Claude-to-Gemini

Provides an MCP server to route Claude Code interactions to Google Gemini for large-context analysis, code review, and image generation.
  • typescript

0

GitHub Stars

typescript

Language

7 months ago

First Indexed

3 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "yoon-jongho-claude-to-gemini": {
      "command": "node",
      "args": [
        "/ABSOLUTE_PATH/claude-to-gemini/index.js"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

You run an MCP server that connects Claude Code with Google Gemini to perform large-context analysis, codebase reviews, and image generation. This server exposes a set of tools that let you ask Gemini to generate text or code, analyze your codebase, and produce images, all orchestrated through Claude Code using MCP protocols.

How to use

You interact with the Gemini MCP server through end-to-end flows using an MCP client. Start the Claude Code environment, register and start the GEMINI MCP server, and then invoke the available tools from Claude Code to: generate text or code, analyze your codebase for architecture, duplications, security issues, or performance opportunities, and generate images with Gemini or Imagen.

How to install

Prerequisites you need before installing the server.

node --version
npm --version

Install Node.js 18 or newer and ensure you have a Claude Pro/Max plan ready. Obtain a Google Gemini API key from ai.google.dev.

Clone the project, install dependencies, and prepare to register the MCP server.

git clone https://github.com/YOUR_USERNAME/claude-to-gemini.git
cd claude-to-gemini

npm install

Register the MCP server with Claude using the runtime path and your API key.

claude mcp add gemini \
  --env GEMINI_API_KEY=YOUR_API_KEY_HERE \
  -- node /ABSOLUTE_PATH/claude-to-gemini/index.js

Replace YOUR_API_KEY_HERE with your actual Gemini API key and /ABSOLUTE_PATH/ with the full path to your project location, for example: /Users/you/projects/claude-to-gemini/index.js.

Verify the MCP server registration.

claude mcp list

You should see an entry like: gemini - node /Users/you/projects/claude-to-gemini/index.js.

Additional sections

Configuration and security notes help you keep the server reliable and safe.

Security and credentials are handled via environment variables. Keep your Gemini API key in environment variables only and avoid hard-coding keys in code.

Here are practical usage notes and examples for typical scenarios.

Available tools

ask_gemini

Generate text or code by querying Gemini with large context, offering model options like flash and pro, up to 1M tokens.

gemini_analyze_codebase

Analyze an entire codebase for architecture patterns, duplications, security issues, performance opportunities, or a general assessment.

generate_image_gemini

Create images with Gemini 2.5 Flash Image, including context-aware editing, element addition/removal, and multi-image composition. Free tier available.

generate_image_imagen

Produce high-quality images using Imagen 3 with SynthID watermarking, high resolution, and photorealistic rendering.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational