
Gemini
Connects Claude to Google's Gemini API so you can bounce questions off a second model without leaving your workflow. Exposes four tools: gemini_ask for one-off questions, gemini_analyze for targeted code review or text analysis, gemini_chat for multi-turn conversations with history, and gemini_models to list what's available. Supports all current Gemini models including the 1M token context window on 2.5-pro. Handles rate limits with retry logic and lets you override the model per call. Useful when you want a different perspective on architecture decisions, need massive context windows, or want to compare how two frontier models approach the same problem.
- tools
- 8
- auth
- Secret needed
- transport
- STDIO
- env var
- 1
- last updated
- Mar 10, 2026
Tools
8 toolsPublic tool metadata for what this MCP can expose to an agent.
GEMINI_COUNT_TOKENSCounts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.2 params
Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.
modelstringtextstringGEMINI_EMBED_CONTENTGenerates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.4 params
Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.
modelstringtask_typestringtextstringtitlestringGEMINI_GENERATE_CONTENTGenerates text content from prompts using Gemini models. Supports various models like Gemini Flash and Pro with configurable temperature, token limits, and safety settings for diverse text generation tasks.9 params
Generates text content from prompts using Gemini models. Supports various models like Gemini Flash and Pro with configurable temperature, token limits, and safety settings for diverse text generation tasks.
max_output_tokensintegermodelstringpromptstringsafety_settingsarraystop_sequencesarraysystem_instructionstringtemperaturenumbertop_kintegertop_pnumberGEMINI_GENERATE_IMAGEGenerates images from text prompts using Gemini 2.5 Flash Image Preview model (Nano Banana). Supports creative image generation with customizable parameters like aspect ratio, safety settings, and optional local file saving. Generated images are automatically uploaded to S3 an...9 params
Generates images from text prompts using Gemini 2.5 Flash Image Preview model (Nano Banana). Supports creative image generation with customizable parameters like aspect ratio, safety settings, and optional local file saving. Generated images are automatically uploaded to S3 an...
max_output_tokensintegermodelstringpromptstringsafety_settingsarraysave_pathstringsystem_instructionstringtemperaturenumbertop_kintegertop_pnumberGEMINI_GENERATE_VIDEOSGenerates videos from text prompts using Google's Veo models. Creates high-quality video content. Returns operation ID for tracking progress. After this, call GEMINI_WAIT_FOR_VIDEO to download the video using the operation ID.4 params
Generates videos from text prompts using Google's Veo models. Creates high-quality video content. Returns operation ID for tracking progress. After this, call GEMINI_WAIT_FOR_VIDEO to download the video using the operation ID.
extrasobjectmodelstringperson_generationstringpromptstringGEMINI_GET_VIDEOS_OPERATIONChecks the status of a Veo video generation operation. Use the operation name from GenerateVideos to track progress and get the download URL when complete.1 params
Checks the status of a Veo video generation operation. Use the operation name from GenerateVideos to track progress and get the download URL when complete.
operation_namestringGEMINI_LIST_MODELSLists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.1 params
Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.
filter_prefixstringGEMINI_WAIT_FOR_VIDEOPolls a Veo video generation operation until completion, then downloads and returns the video as a FileDownloadable with public URL.1 params
Polls a Veo video generation operation until completion, then downloads and returns the video as a FileDownloadable with public URL.
operation_namestringSponsors
Configuration
GEMINI_API_KEY*secretGoogle Gemini API key
Readme
gemini-mcp
Lightweight MCP server that exposes Google Gemini as tools for Claude Code (or any MCP client).
Use Gemini for second opinions, large-context analysis, code review, or anything where a different model perspective helps.
Tools
| Tool | Description |
|---|---|
gemini_ask | Ask Gemini a question or give it a task |
gemini_analyze | Send code/text for analysis with a specific instruction |
gemini_chat | Multi-turn conversation with full history |
gemini_models | List available Gemini models |
Quick Start
1. Get an API key
Go to Google AI Studio and create a free API key.
2. Install
Option A — Clone (recommended for Claude Code)
Details
- Repository
- github.com/pavelguzenfeld/gemini-mcp
- Category
- AI & LLM Tools
- Package
claude-gemini-mcp- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active