
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
mcp-gemini-crunchtools
Advanced tools
A secure MCP (Model Context Protocol) server for Google Gemini AI - text, image, video, research, and more.
This MCP server is designed to be:
quay.io/crunchtools/mcp-gemini built on Hummingbird Python base image| Component | Name |
|---|---|
| GitHub repo | crunchtools/mcp-gemini |
| Container | quay.io/crunchtools/mcp-gemini |
| Python package (PyPI) | mcp-gemini-crunchtools |
| CLI command | mcp-gemini-crunchtools |
| Module import | mcp_gemini_crunchtools |
The container image is built on the Hummingbird Python base image from Project Hummingbird, which provides:
This means your MCP server runs in a hardened environment with fewer vulnerabilities than typical Python container images.
gemini_query - Query Gemini with optional Google Search groundinggemini_brainstorm - Generate creative ideas on a topicgemini_analyze_code - Analyze code for security, performance, bugsgemini_analyze_text - Analyze text for sentiment, tone, contentgemini_summarize - Summarize content in various formatsgemini_generate_image - Generate images from text prompts (native Gemini)gemini_generate_image_with_input - Edit/modify existing imagesgemini_image_prompt - Craft effective image generation promptsgemini_imagen_generate - Generate images using Google Imagen 4 modelsgemini_start_image_edit - Start a multi-turn image editing sessiongemini_continue_image_edit - Continue editing in an active sessiongemini_end_image_edit - End an image editing sessiongemini_list_image_sessions - List all active editing sessionsgemini_analyze_image - Analyze and describe local image filesgemini_search - Web search using Gemini with Google Search groundinggemini_analyze_document - Analyze PDFs, DOCX, TXT, etc.gemini_summarize_pdf - Summarize PDF documentsgemini_extract_tables - Extract tables from documentsgemini_analyze_url - Analyze one or more URLsgemini_compare_urls - Compare two URLsgemini_extract_from_url - Extract specific data from a URLgemini_generate_video - Generate videos using Veogemini_check_video - Check video generation statusgemini_youtube - Analyze YouTube videosgemini_youtube_summary - Summarize YouTube videosgemini_speak - Convert text to speechgemini_dialogue - Generate multi-voice dialogue audiogemini_list_voices - List available voicesgemini_deep_research - Perform multi-step web researchgemini_check_research - Check research operation statusgemini_research_followup - Ask follow-up questionsgemini_create_cache - Create content cache for repeated queriesgemini_query_cache - Query cached contentgemini_list_caches - List all active cachesgemini_delete_cache - Delete a cachegemini_structured - Get structured JSON outputgemini_extract - Extract structured data from textgemini_count_tokens - Count tokens in contentgemini_run_code - Execute Python code via GeminiTotal: 39 tools
uvx mcp-gemini-crunchtools
pip install mcp-gemini-crunchtools
# Create a shared output directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads
podman run -v ~/.local/share/mcp-uploads-downloads:/output:z \
-e GEMINI_API_KEY=your_key \
-e GEMINI_OUTPUT_DIR=/output \
quay.io/crunchtools/mcp-gemini
SELinux note: Use
:z(lowercase, shared) instead of:Z(uppercase, private). MCP servers run as long-lived stdio processes. With:Z, files copied into the directory after container start won't have the container's private MCS label and will be invisible inside the container. The:zflag sets a sharedcontainer_file_tcontext that all containers and the host can read/write.Tip: Use the same shared directory (
~/.local/share/mcp-uploads-downloads/) across multiple MCP container servers (e.g., mcp-gemini and mcp-wordpress) so generated images are immediately available for WordPress upload without copying.
Navigate to Google AI Studio
Create API Key
Copy Your API Key
AI... (e.g., AIzaSy...)claude mcp add mcp-gemini-crunchtools \
--env GEMINI_API_KEY=your_api_key_here \
-- uvx mcp-gemini-crunchtools
Or for the container version:
# Create a shared output directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads
claude mcp add mcp-gemini-crunchtools \
--env GEMINI_API_KEY=your_api_key_here \
--env GEMINI_OUTPUT_DIR=/output \
-- podman run -i --rm \
-v ~/.local/share/mcp-uploads-downloads:/output:z \
-e GEMINI_API_KEY \
-e GEMINI_OUTPUT_DIR=/output \
quay.io/crunchtools/mcp-gemini
For generated images, audio, and videos when running without a container:
claude mcp add mcp-gemini-crunchtools \
--env GEMINI_API_KEY=your_api_key_here \
--env GEMINI_OUTPUT_DIR=$HOME/.local/share/mcp-uploads-downloads \
-- uvx mcp-gemini-crunchtools
User: What are the latest developments in quantum computing?
Assistant: [calls gemini_query with use_google_search=true]
User: Generate a photorealistic image of a sunset over mountains
Assistant: [calls gemini_generate_image with prompt and style]
User: Analyze this research paper at /path/to/paper.pdf
Assistant: [calls gemini_analyze_document with file_path]
User: Summarize this YouTube video: https://youtube.com/watch?v=...
Assistant: [calls gemini_youtube_summary with url]
User: Research the environmental impact of electric vehicles
Assistant: [calls gemini_deep_research then gemini_check_research]
User: Analyze this Python code for security issues
Assistant: [calls gemini_analyze_code with focus="security"]
This server was designed with security as a primary concern. See SECURITY.md for:
API Key Protection
Input Validation
API Hardening
Automated CVE Scanning
git clone https://github.com/crunchtools/mcp-gemini.git
cd mcp-gemini
uv sync
uv run pytest
uv run ruff check src tests
uv run mypy src
podman build -t mcp-gemini .
AGPL-3.0-or-later
Contributions welcome! Please read SECURITY.md before submitting security-related changes.
FAQs
MCP server for Google Gemini AI - text, image, video, research, and more
The pypi package mcp-gemini-crunchtools receives a total of 45 weekly downloads. As such, mcp-gemini-crunchtools popularity was classified as not popular.
We found that mcp-gemini-crunchtools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.