# MCP Gemini [Health: Active]

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/crunchtools/mcp-gemini  
**GitHub Stars:** 0  
**Views:** 15  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-gemini

## Description
MCP server for Google Gemini AI - text, image, video, research, and more

## Tools
Capabilities this server exposes over MCP:

- **gemini_query_tool** — Query Gemini with a prompt. Supports Google Search grounding.
- **gemini_brainstorm_tool** — Brainstorm ideas on a topic using Gemini.
- **gemini_analyze_code_tool** — Analyze code with Gemini.
- **gemini_analyze_text_tool** — Analyze text with Gemini.
- **gemini_summarize_tool** — Summarize content with Gemini.
- **gemini_generate_image_tool** — Generate an image from a text prompt using Gemini's native image model.
- **gemini_generate_image_with_input_tool** — Generate/edit an image using a local image file as input.

Upload a local image and give Gemini instructions for how to modify it.
Use cases: add watermarks, change styles, composite images, etc.
- **gemini_image_prompt_tool** — Help craft an effective image generation prompt.
- **gemini_imagen_generate_tool** — Generate images using Google Imagen 4 models.

Models (sorted by price):
- imagen-4.0-fast-generate-001 ($0.02/image, fastest)
- imagen-4.0-generate-001 ($0.04/image, standard)
- imagen-4.0-ultra-generate-001 ($0.06/image, highest quality)
- **gemini_start_image_edit_tool** — Start a multi-turn image editing session.

Optionally provide an existing image file as the starting point.
Without file_path, Gemini generates a new image from the prompt.
Use gemini_continue_image_edit_tool to make further edits.
- **gemini_continue_image_edit_tool** — Continue editing in an active image session.
- **gemini_end_image_edit_tool** — End an image editing session and free resources.
- **gemini_list_image_sessions_tool** — List all active image editing sessions.
- **gemini_analyze_image_tool** — Analyze and describe a local image file.
- **gemini_search_tool** — Search the web using Gemini with Google Search grounding.
- **gemini_analyze_document_tool** — Analyze a document (PDF, DOCX, TXT, etc.).
- **gemini_summarize_pdf_tool** — Summarize a PDF document.
- **gemini_extract_tables_tool** — Extract tables from a document.
- **gemini_analyze_url_tool** — Analyze one or more URLs.
- **gemini_compare_urls_tool** — Compare two URLs.
- **gemini_extract_from_url_tool** — Extract specific data from a URL.
- **gemini_generate_video_tool** — Generate a video using Veo. Returns an operation ID to poll.
- **gemini_check_video_tool** — Check the status of a video generation operation.
- **gemini_youtube_tool** — Analyze a YouTube video.
- **gemini_youtube_summary_tool** — Summarize a YouTube video.
- **gemini_speak_tool** — Convert text to speech.
- **gemini_dialogue_tool** — Generate multi-voice dialogue audio.
- **gemini_list_voices_tool** — List available voices for text-to-speech.
- **gemini_deep_research_tool** — Start a deep research task using a specialized Gemini model.

Performs multi-step web research to answer complex questions.
Completes in a single call; the result is returned immediately.
- **gemini_check_research_tool** — Check the status of a deep research operation.
- **gemini_research_followup_tool** — Ask a follow-up question about completed research.
- **gemini_create_cache_tool** — Create a content cache for repeated queries.

Upload content once and query it multiple times without re-sending.
- **gemini_query_cache_tool** — Query content in a cache.
- **gemini_list_caches_tool** — List all active content caches.
- **gemini_delete_cache_tool** — Delete a content cache.
- **gemini_structured_tool** — Get structured JSON output from Gemini.
- **gemini_extract_tool** — Extract structured data from text.
- **gemini_count_tokens_tool** — Count the number of tokens in content.
- **gemini_run_code_tool** — Execute code using Gemini's built-in code execution.

Gemini writes and runs Python code to answer questions,
perform calculations, or process data.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-gemini": {
    "command": "uvx",
    "args": ["mcp-gemini-crunchtools"],
    "env": {
      "GEMINI_API_KEY": "",
      "GEMINI_API_KEY_FILE": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY`, `GEMINI_API_KEY_FILE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What MCP Gemini does

MCP Gemini connects MCP-compatible clients to Google Gemini and related Google generative AI capabilities. Its tools cover both analysis and generation, making the server suitable for workflows that move between text, files, images, URLs, videos, and audio.

Text tools handle general prompts, brainstorming, code review, text analysis, summaries, structured extraction, token counting, and Python execution through Gemini. Search-enabled tools can query the web with Google Search grounding. Document features accept formats such as PDF, DOCX, and TXT, with separate operations for summarization and table extraction. URL tools analyze pages, compare multiple URLs, or retrieve selected information.

Multimedia support includes native Gemini image generation, image editing from a local file, Google Imagen 4 generation, image inspection, Veo video generation, YouTube analysis, text-to-speech, and multi-speaker dialogue audio. Deep research performs multi-step web research and provides a separate operation-status tool.

## How it works

The server runs locally over stdio and sends requests to Google’s Gemini services using an API key. MCP clients invoke individual tools with prompts, file paths, URLs, or other tool parameters. Generated images, audio, and video can be written to a configured output directory.

Some operations are stateful or asynchronous. Image editing sessions can be started, continued, listed, and ended; ending a session releases its resources. Video generation returns an operation ID that can be checked later. Deep research likewise has a status-check operation, while the research result is returned from the completed task flow.

## Setup and configuration

Install with `uvx mcp-gemini-crunchtools`, install the `mcp-gemini-crunchtools` package with pip, or run the container image `quay.io/crunchtools/mcp-gemini`. The container requires a host directory mounted at `/output` when generated files need to be shared.

Create a Google Gemini API key in Google AI Studio and provide it through `GEMINI_API_KEY`. For better secret handling, set `GEMINI_API_KEY_FILE` to a file containing the key instead; the direct key variable takes precedence. `GEMINI_OUTPUT_DIR` can select the destination for generated files when running outside a container. The project documents Claude Code configuration for both uvx and Podman-based launches.

The container supports Linux, macOS, and Windows host workflows through its container runtime. When using Podman with SELinux, the documented shared volume label is `:z`.

## Tools and capabilities

The available tool groups include:

- General prompts, brainstorming, code and text analysis, summaries, structured output, token counting, and Gemini code execution.
- Native Gemini image generation, local-image editing, prompt assistance, Imagen 4 generation, image analysis, and multi-turn edit sessions.
- Google-grounded web search, document analysis, PDF summaries, table extraction, URL comparison, and data extraction.
- Veo video generation and operation checks, plus YouTube analysis and summaries.
- Text-to-speech, multi-voice dialogue, and voice listing.
- Deep research, research status checks, follow-up questions, and content caching for repeated queries.

Imagen generation offers fast, standard, and ultra model choices with different per-image prices. The server also exposes cache creation, lookup, listing, and deletion operations for reusable content.

## Limitations and notes

Google API access and any model or feature availability depend on the configured Gemini account and service. Video and research operations may require a follow-up status check. Local-file features require the MCP process or container to have access to the referenced paths, and containerized file workflows need an appropriate output mount. API keys can be supplied directly or through a protected file; the file-based option avoids placing the secret directly in client configuration.

_Full upstream README: https://allmcps.com/mcp/mcp-gemini/readme_

