Integrates with Google's Gemini AI models (including variants like gemini-2.5-pro-preview, gemini-1.5-pro, etc.) to provide AI capabilities with automatic fallback mechanisms between experimental and stable models.
Gemini MCP Server
A Model Context Protocol (MCP) server that enables Claude to collaborate with Google's Gemini AI models.
Features
- 🤖 Multiple Gemini Tools: Ask questions, review code, brainstorm ideas, generate tests, and get explanations
- 🔄 Dual-Model Support: Automatic fallback from experimental to stable models
- ⚡ Configurable Models: Easy switching between different Gemini variants
- 🛡️ Reliable: Never lose functionality with automatic model fallback
- 📊 Transparent: Shows which model was used for each response
Quick Start
1. Prerequisites
- Python 3.8+
- Claude Desktop
- Google AI API Key
2. Installation
3. Configuration
Edit .env
to configure your models:
4. Development Setup
For development with PyCharm or other IDEs:
5. Register with Claude
Available Tools
ask_gemini
General questions and problem-solving assistance.
gemini_code_review
Get code review feedback focusing on security, performance, and best practices.
gemini_brainstorm
Collaborative brainstorming for architecture and design decisions.
gemini_test_cases
Generate comprehensive test scenarios for your code.
gemini_explain
Get clear explanations of complex code or concepts.
server_info
Check server status and model configuration.
Model Configurations
Best Quality (Default)
Best Performance
Most Cost-Effective
Development
Project Structure
Running Tests
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Updating
To update your local MCP installation after making changes:
This will copy the latest version to your MCP servers directory.
Troubleshooting
Server not found
API Key Issues
Model Availability
Some models may not be available in all regions. Check the fallback model in logs if primary fails consistently.
License
MIT License - see LICENSE file for details.
Acknowledgments
- Built for Claude using the Model Context Protocol
- Powered by Google's Gemini AI
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that enables Claude to collaborate with Google's Gemini AI models, providing tools for question answering, code review, brainstorming, test generation, and explanations.
Related MCP Servers
- -securityAlicense-qualityModel Context Protocol (MCP) server implementation that enables Claude Desktop to interact with Google's Gemini AI models.Last updated -53TypeScriptMIT License
- -securityFlicense-qualityA server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.Last updated -Python
- -security-license-qualityAn MCP server implementation that allows using Google's Gemini AI models (specifically Gemini 1.5 Pro) through Claude or other MCP clients via the Model Context Protocol.Last updated -1JavaScript
- -securityFlicense-qualityA Model Context Protocol server that enables Claude Desktop to interact with Google's Gemini 2.5 Pro Experimental AI model, with features like Google Search integration and token usage reporting.Last updated -JavaScript