Gemini MCP Server
MCP server that connects Claude Desktop to Google Gemini, enabling multimodal analysis with file attachments (video, image, audio, PDF).
README
gemini-mcp-server
MCP server that connects Claude Desktop to Google Gemini. Send text prompts or attach local files (video, image, audio, PDF) for multimodal analysis.
What it does
Exposes a single tool — gemini_chat — that lets Claude send messages to Gemini, optionally with a file attachment. Files are uploaded to the Gemini File API, processed, and cleaned up automatically after use.
Supported file types: MP4, MOV, AVI, WebM, MKV, MPG, WMV, PNG, JPG, GIF, WebP, PDF, MP3, WAV, OGG, FLAC.
Setup
1. Get a Google API key
- Go to Google AI Studio
- Sign in with your Google account
- Click Create API Key and select a Google Cloud project (or create one)
- Copy the generated key
The free tier is generous for most use cases. See the Gemini API docs for details on quotas and pricing.
2. Install
git clone https://github.com/opedrenyo/gemini-mcp-server.git
cd gemini-mcp-server
npm install
3. Configure Claude Desktop
Add this to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"gemini": {
"command": "node",
"args": ["/absolute/path/to/gemini-mcp-server/index.js"],
"env": {
"GOOGLE_API_KEY": "your-api-key-here"
}
}
}
}
Replace /absolute/path/to/ with the actual path where you cloned the repo.
4. Restart Claude Desktop
The gemini_chat tool will be available in your next conversation.
Configuration
| Environment variable | Required | Default | Description |
|---|---|---|---|
GOOGLE_API_KEY |
Yes | — | Google AI Studio API key |
GEMINI_MODEL |
No | gemini-2.0-flash |
Model to use |
To change the model, add GEMINI_MODEL to your env block:
"env": {
"GOOGLE_API_KEY": "your-api-key-here",
"GEMINI_MODEL": "gemini-2.5-pro"
}
Some available models:
| Model | Best for |
|---|---|
gemini-2.0-flash |
Fast, cheap, good for most tasks (default) |
gemini-2.5-flash |
Reasoning + speed balance |
gemini-2.5-pro |
Complex analysis, high quality |
gemini-3-flash-preview |
Fast frontier-class performance at low cost |
gemini-3.1-pro-preview |
Most advanced model for complex tasks |
gemini-3.1-flash-lite-preview |
High-volume, low latency, cost-efficient |
Full list at Gemini model docs.
Usage examples
Text only:
"Ask Gemini to explain quantum computing in simple terms"
With file:
"Analyze this video" + file_path:
/path/to/video.mp4
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.