Skip to main content
Glama

@houtini/gemini-mcp

npm version MCP Registry

I've been running this MCP server in my Claude Desktop setup for months. It's one of the few I leave on permanently — not because Gemini replaces Claude, but because grounded search, image generation, SVG diagrams, and video are things Gemini does genuinely well. Having them as tools inside Claude beats switching browser tabs.

Thirteen tools. One npx command.


Quick Navigation

Get started | What it does | SVG generation | Image output | Configuration | Tools | Models | Requirements


What it looks like

Generated images, SVGs, and videos render inline in Claude Desktop with zoom controls, file paths, and prompt context:

Image generation

SVG / diagram generation

Image preview

SVG preview

Image embed

SVG embed

Video embed

Image embed

SVG embed

Video embed


Related MCP server: Gemini MCP Server

Get started in two minutes

Step 1: Get a Gemini API key

Go to Google AI Studio and create one. The free tier covers most development use — you'll hit rate limits on deep research if you're hammering it, but for day-to-day work it's fine.

Step 2: Add to your Claude Desktop config

Config file locations:

  • Windows: C:\Users\{username}\AppData\Roaming\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "gemini": {
      "command": "npx",
      "args": ["@houtini/gemini-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Step 3: Restart Claude Desktop

That's it. Tools show up automatically. npx pulls the package on first run — no separate install needed.

Local build instead

For development, or if you'd rather not rely on npx:

git clone https://github.com/houtini-ai/gemini-mcp
cd gemini-mcp
npm install --include=dev
npm run build

Then point your config at the local build:

{
  "mcpServers": {
    "gemini": {
      "command": "node",
      "args": ["C:/path/to/gemini-mcp/dist/index.js"],
      "env": {
        "GEMINI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code (CLI)

Claude Code uses a different registration mechanism — it doesn't read claude_desktop_config.json. Use claude mcp add instead:

claude mcp add -e GEMINI_API_KEY=your-api-key-here -s user gemini -- npx -y @houtini/gemini-mcp

With optional image output directory:

claude mcp add \
  -e GEMINI_API_KEY=your-api-key-here \
  -e GEMINI_IMAGE_OUTPUT_DIR=/path/to/output \
  -s user \
  gemini -- npx -y @houtini/gemini-mcp

Verify with claude mcp get gemini — you should see Status: Connected.


What it does

Chat with Google Search grounding

Use gemini:gemini_chat to ask: "What changed in the MCP spec in the last month?"

Grounding is on by default. Gemini searches Google before answering, so you get current information rather than training cutoff answers. Sources come back as markdown links. For questions where you want pure reasoning — "explain this code" or similar — set grounding: false.

Supports thinking_level on Gemini 3 models: high for maximum reasoning depth, low to keep it fast, medium/minimal on Gemini 3 Flash only.

Deep research

Use gemini:gemini_deep_research with:
  research_question="What are the current approaches to AI agent memory management?"
  max_iterations=5

Runs multiple grounded search iterations then synthesises a full report. Takes 2-5 minutes depending on complexity — worth it for anything needing comprehensive coverage rather than a quick answer.

Set max_iterations to 3-4 in Claude Desktop (4-minute tool timeout). In IDEs (Cursor, Windsurf, VS Code) or agent frameworks, 7-10 iterations produces noticeably better synthesis. Pass focus_areas as an array to steer toward specific angles.

Image generation with search grounding

Use gemini:generate_image with:
  prompt="Stock price chart showing Apple (AAPL) closing prices for the last 5 trading days"
  use_search=true
  aspectRatio="16:9"

Default model is gemini-3-pro-image-preview (Nano Banana Pro). Also supports gemini-2.5-flash-image for faster generation.

When use_search=true, Gemini searches Google for current data before generating. Financial and news queries work reliably. The full-resolution image saves to disk automatically — the inline preview is resized for transport but the original is untouched.

Video generation with Veo 3.1

Use gemini:generate_video with:
  prompt="A close-up shot of a futuristic coffee machine brewing a glowing blue espresso, steam rising dramatically. Cinematic lighting."
  resolution="1080p"
  durationSeconds=8

Uses Google's Veo 3.1 model. Generates 4-8 second videos at up to 4K with native synchronised audio. Processing takes 2-5 minutes — the tool polls automatically until ready.

Options worth knowing:

  • aspectRatio — 16:9 landscape or 9:16 portrait/vertical

  • generateAudio — on by default, produces dialogue and sound effects matching the prompt

  • sampleCount — generate up to 4 variations in one call

  • seed — deterministic output across runs

  • generateThumbnail — extracts a frame via ffmpeg (needs ffmpeg in PATH)

  • firstFrameImage — animate from a starting image (image-to-video)

SVG generation

This is the one people underestimate. SVG output isn't just diagrams — it's production-ready vector graphics you can drop straight into a codebase, a presentation, or a web page. Clean, scalable, no raster artefacts.

Use gemini:generate_svg with:
  prompt="Architecture diagram showing a microservices system with API gateway, three services, and a shared database"
  style="technical"
  width=1000
  height=600

Four styles:

Style

Best for

technical

Architecture diagrams, flowcharts, system maps

artistic

Illustrations, decorative graphics, icons

minimal

Clean data visualisations, simple charts

data-viz

Complex charts, dashboards, infographics

The output is actual SVG code — edit it, animate it, embed it in HTML, commit it to a repo. No rasterising, no export steps, no Figma required.

SVG generation in Claude Desktop

Image editing and analysis

Conversational editing — Gemini 3 Pro Image maintains context across editing turns. Pass thought signatures back on subsequent edit_image calls for full continuity:

Use gemini:edit_image with:
  prompt="Change the colour scheme to blue and green"
  images=[{data: imageBase64, mimeType: "image/png", thoughtSignature: "fromPreviousCall"}]

Analysis — two tools for different purposes:

  • describe_image — Fast general descriptions using Gemini 3 Flash

  • analyze_image — Structured extraction and detailed reasoning using Gemini 3.1 Pro

Load local files:

Use gemini:load_image_from_path with filePath="C:/screenshots/error.png"

Media resolution control

Reduce token usage by up to 75% whilst maintaining quality for the task:

Level

Tokens

Savings

Best for

MEDIA_RESOLUTION_LOW

280

75%

Simple tasks, bulk operations

MEDIA_RESOLUTION_MEDIUM

560

50%

PDFs/documents (OCR saturates here)

MEDIA_RESOLUTION_HIGH

1120

default

Detailed analysis

MEDIA_RESOLUTION_ULTRA_HIGH

2000+

per-image only

Maximum detail

For PDF OCR, MEDIUM gives identical text extraction quality to HIGH at half the tokens.

Landing page generation

Use gemini:generate_landing_page with:
  brief="A SaaS tool that helps developers monitor API latency"
  companyName="PingWatch"
  primaryColour="#6366F1"
  style="startup"
  sections=["hero", "features", "pricing", "cta"]

Returns a self-contained HTML file — inline CSS and vanilla JS, no external dependencies. Styles: minimal, bold, corporate, startup.

Professional chart design systems

gemini_prompt_assistant includes 9 professional chart design systems:

System

Inspiration

Best for

storytelling

Cole Nussbaumer Knaflic

Executive presentations

financial

Financial Times

Editorial journalism — FT Pink, serif titles

terminal

Bloomberg / Fintech

High-density dark mode with neon

modernist

W.E.B. Du Bois

Bold geometric blocks, stark contrasts

professional

IBM Carbon / Tailwind

Enterprise dashboards

editorial

FiveThirtyEight / Economist

Data journalism

scientific

Nature / Science

Academic rigour

minimal

Edward Tufte

Maximum data-ink ratio

dark

Observable

Modern dark mode

Help system

Use gemini:gemini_help with topic="overview"

Full documentation without leaving Claude. Topics: overview, image_generation, image_editing, image_analysis, chat, deep_research, grounding, media_resolution, models, all.


Image output and storage

By default, images return as inline previews rendered directly in Claude. Set GEMINI_IMAGE_OUTPUT_DIR to auto-save everything:

"env": {
  "GEMINI_API_KEY": "your-api-key-here",
  "GEMINI_IMAGE_OUTPUT_DIR": "C:/Users/username/Pictures/gemini-output"
}

The server uses a two-tier approach to handle the MCP protocol's 1MB JSON-RPC limit whilst preserving full-resolution files:

Tier

Purpose

Full-res

Saved to disk immediately, untouched

Preview

Resized JPEG for inline transport — dynamically sized to fit under the cap

Gemini returns 2-5MB images. The resize is smart — it measures the non-image overhead in each response and calculates the exact binary budget available, stepping down dimensions (800→600→400→300→200px) until it fits. The full image is always there on disk.


Configuration reference

Variable

Required

Default

Description

GEMINI_API_KEY

Yes

—

Google AI API key from AI Studio

GEMINI_DEFAULT_MODEL

No

gemini-3.1-pro-preview

Default model for gemini_chat and analyze_image

GEMINI_DEFAULT_GROUNDING

No

true

Enable Google Search grounding by default

GEMINI_IMAGE_OUTPUT_DIR

No

—

Auto-save directory for generated images and videos

GEMINI_ALLOW_EXPERIMENTAL

No

false

Include experimental/preview models in auto-discovery

GEMINI_MCP_LOG_FILE

No

false

Write logs to ~/.gemini-mcp/logs/

DEBUG_MCP

No

false

Log to stderr for debugging tool calls

Tools reference

Tool

Description

gemini_chat

Chat with Gemini 3.1 Pro. Google Search grounding on by default. Supports thinking_level

gemini_deep_research

Multi-step iterative research with Google Search. Synthesises comprehensive reports

gemini_list_models

Lists available models from the Gemini API

gemini_help

Documentation for all features without leaving Claude

gemini_prompt_assistant

Expert guidance for image generation with 9 chart design systems

generate_image

Image generation with optional search grounding. Full-res saved to disk

edit_image

Edit images with natural-language instructions. Multi-turn continuity via thought signatures

describe_image

Fast image descriptions using Gemini 3 Flash

analyze_image

Structured extraction and analysis using Gemini 3.1 Pro

load_image_from_path

Read a local image file and return base64 for any image tool

generate_video

Video generation with Veo 3.1 — 4-8 seconds at up to 4K with native audio

generate_svg

Production-ready SVG: diagrams, illustrations, icons, data visualisations

generate_landing_page

Self-contained HTML landing pages with inline CSS/JS


Model reference

Model

Used by

Notes

gemini-3.1-pro-preview

gemini_chat, analyze_image

Default. Advanced reasoning

gemini-3-pro-image-preview

generate_image, edit_image

Nano Banana Pro — highest quality image generation

gemini-2.5-flash-image

generate_image (optional)

Faster generation, higher volume

gemini-3-flash-preview

describe_image

Fast general descriptions

veo-3.1-generate-preview

generate_video

Veo 3.1 — 4K video with native audio

Gemini 3 notes: Temperature is forced to 1.0 on Gemini 3 models (Google's requirement — lower values cause looping). Thinking level only applies to gemini_chat.


Requirements

  • Node.js 18+

  • A Gemini API key from Google AI Studio

  • ffmpeg (optional, for video thumbnail extraction)

Licence

Apache-2.0

Available Tools

13 tools
analyze_imageAnalyze ImageA

Analyze and extract information from one or more images using Gemini multimodal understanding. Returns a text analysis - no image is generated. Default model: gemini-3-pro-preview. DO NOT SET max_tokens - the server allocates the model's full output ceiling automatically; a small cap is spent on Gemini 3 thinking and returns empty output that looks like a timeout. [MCP_RECOMMENDED_TIMEOUT_MS: 300000]

Inputs: images (required), prompt (required), model, max_tokens, +1 more. Returns: content, success

describe_imageDescribe Image (Nano Banana Pro)A

Analyze and describe one or more images using Google Gemini image models (Nano Banana Pro). Returns a text description — no image is generated. Default model: gemini-3-flash-preview. [MCP_RECOMMENDED_TIMEOUT_MS: 180000]

Inputs: images (required), model, prompt, global_media_resolution. Returns: content, success

edit_imageEdit Image with GeminiA

Edit one or more images using Google Gemini image models (Nano Banana Pro). Provide images and natural-language instructions for how to modify them. Returns edited image with inline preview and saves full-resolution to disk.

Inputs: images (required), prompt (required), model, outputPath, +2 more.

gemini_chatGemini ChatA

Chat with Google Gemini models. Grounded in Google Search by default, on gemini-3.1-pro-preview. DO NOT SET max_tokens - the server allocates the model's full output ceiling automatically. It is a cap, not consumption, so unused headroom costs nothing; setting a small one makes Gemini 3 thinking burn the whole budget and return empty output that looks like a timeout. [MCP_RECOMMENDED_TIMEOUT_MS: 300000]

Inputs: message (required), model, grounding, max_tokens, +3 more. Returns: content, success

gemini_deep_researchGemini Deep ResearchA

Conduct deep research on complex topics using iterative multi-step analysis with Gemini. This performs multiple searches and synthesizes comprehensive research reports (takes several minutes). [MCP_RECOMMENDED_TIMEOUT_MS: 900000]

Inputs: research_question (required), model, focus_areas, max_iterations. Returns: content, success

gemini_helpGemini MCP HelpB

Get comprehensive help about Gemini MCP features, settings, and best practices

Inputs: topic.

gemini_list_modelsList Gemini ModelsA

List available Gemini models and their descriptions

Inputs: no named parameters. Returns: content, success

gemini_prompt_assistantImage & Chart Prompt AssistantA

Get expert prompt templates and guidance for Gemini image generation. Covers photography (portraits, products, cinematic), chart/diagram design (9 professional design systems including FT, Bloomberg, Tufte, Du Bois), lighting, colour grading, lens simulation, and style aesthetics. For charts: use chart_design with a color_scheme to get a full professional design system prompt.

Inputs: request_type (required), emphasis, use_case, chart_type, +3 more.

generate_imageGenerate Image with GeminiA

Generate an image using Google Gemini image models (Nano Banana Pro). Returns image with inline preview in Claude Desktop and saves full-resolution to disk. Default model: gemini-3-pro-image-preview.

Inputs: prompt (required), model, images, imageSize, +4 more.

generate_landing_pageGenerate Landing PageA

Generate a complete, self-contained HTML landing page using Gemini. Returns inline preview with responsive viewport controls. No external dependencies; inline CSS and vanilla JS only. [MCP_RECOMMENDED_TIMEOUT_MS: 300000]

Inputs: brief (required), model, style, sections, +3 more.

generate_svgGenerate SVG GraphicA

Generate scalable vector graphics (SVG) using Gemini. Creates clean, production-ready SVG code for diagrams, illustrations, icons, and data visualizations. Returns inline preview with SVG viewer. [MCP_RECOMMENDED_TIMEOUT_MS: 240000]

Inputs: prompt (required), model, style, width, +2 more.

generate_videoGenerate VideoA

Generate videos using Google Veo 3.1 AI model. Creates realistic 4-8 second videos from text prompts with optional first-frame image and reference images for character/style consistency. Supports native audio generation. Processing time: 2-5 minutes for 1080p videos. Returns video file path with optional thumbnail and HTML preview player. ⚠️ IMPORTANT: Video generation is ASYNC and takes 2-5 minutes. The tool will poll for completion automatically.

Inputs: prompt (required), seed, model, outputPath, +9 more.

load_image_from_pathLoad Image from File PathA

Read a local image file and return it as base64-encoded data ready to pass to generate_image, edit_image, describe_image, or analyze_image tools. Supports JPEG, PNG, GIF, WebP, BMP.

Inputs: filePath (required). Returns: content, success

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools are clearly distinct (help, list_models, chat, research, image generation/editing, video generation). However, describe_image and analyze_image overlap significantly—both analyze images and return text—with only subtle differences in default model and phrasing, which could cause misselection. Also, gemini_help overlaps with what an agent might expect from general documentation but is distinct enough.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (gemini_list_models, generate_image, edit_image, generate_landing_page, generate_svg, generate_video), but some tools omit the 'gemini_' prefix (describe_image, analyze_image, load_image_from_path) creating minor inconsistency. The use of 'generate' for different output types is clear, but 'describe' vs 'analyze' could be more distinct. Patterns are mostly predictable.

    Tool Count5/5

    With 13 tools, this server is well-scoped for a multimodal AI assistant covering chat, research, image, video, and text generation. Each tool has a clear purpose and covers distinct capabilities (help, models, prompting, chat, deep research, image in/out, editing, landing page, SVG, video). The count is appropriate without being excessive.

    Completeness5/5

    The tool surface covers the key workflows: image generation (generate_image), image editing (edit_image), image analysis (describe/analyze_image), local image loading (load_image_from_path), video generation (generate_video), text generation (generate_svg/landing_page), and interactive use (chat, deep_research). A clear lifecycle exists for image tasks (load→analyze→generate/edit). Missing features like image manipulation beyond editing or direct video editing are minor and likely out of scope.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers