Integrates Google's Gemini AI to provide advanced code analysis, implementation planning, strategic roadmaps, technical concept explanations, technology comparisons, test strategy generation, documentation creation, and debugging assistance for development workflows.
Gemini MCP Server
A Model Context Protocol (MCP) server that integrates Google's Gemini AI with Claude Code for enhanced development workflows.
Overview
This MCP server provides Claude Code with access to Gemini AI capabilities for advanced code analysis, planning, and consultation. It bridges the gap between Claude's development assistance and Gemini's powerful language understanding, offering a comprehensive AI-powered development experience.
Features
Current Tools
Planning & Strategy
generate-plan- Generate detailed implementation plans for development tasksstrategic-plan- Create high-level strategic roadmaps for complex featuresreview-approach- Review and validate implementation approaches before coding
Analysis & Understanding
analyze-codebase- Analyze codebase structure and patterns before making changesexplain-concept- Get comprehensive explanations of technical concepts and patternscompare-technologies- Compare different technologies, frameworks, or approaches
Development Support
gemini-consult- Get expert guidance when stuck on problems or need additional contextgenerate-tests- Generate comprehensive test strategies and plansgenerate-docs- Create documentation structure and content strategiesdebug-assist- Analyze errors and get systematic debugging assistance
Claude Commands
Each tool is accessible via Claude Code commands:
Planning & Strategy
/plan- Generate detailed implementation plans/strategy- Create strategic roadmaps for complex features/review- Review and validate implementation approaches
Analysis & Understanding
/analyze- Analyze codebase architecture and patterns/explain- Get comprehensive explanations of technical concepts/compare- Compare technologies, frameworks, or approaches
Development Support
/consult- Get expert guidance and development advice/tests- Generate comprehensive test strategies/docs- Create documentation structure and strategies/debug- Get systematic debugging assistance
Prerequisites
Node.js 18+ and pnpm
Gemini CLI installed and configured
Valid Google AI API credentials for Gemini access
Claude Code CLI
Installation
Clone the repository:
git clone https://github.com/yourusername/gemini-mcp.git cd gemini-mcpInstall dependencies:
pnpm installBuild the project:
pnpm buildConfigure Gemini CLI with your API credentials:
gemini auth login
Usage
Running the Server
For development:
For production:
Integration with Claude Code
Add this server to your Claude Code configuration:
Adding custom commands
Copy the content of claude-commands to your .claude/commands folder
Using the Tools
Once configured, you can use the tools directly in Claude Code:
Planning and Strategy
Analysis and Understanding
Development Support
Development
Project Structure
Available Scripts
pnpm dev- Run in development mode with hot reloadpnpm build- Compile TypeScript and auto-generate commandspnpm generate-commands- Generate claude-commands from tool configurationspnpm start- Run the compiled serverpnpm typecheck- Run TypeScript type checkingpnpm clean- Remove build artifacts
Adding New Tools
Add new prompt template in
src/prompts.tsAdd tool configuration in
src/tools.tsImplement the method in
src/gemini.tsAdd case in
src/server.tsswitch statementRun
pnpm generate-commandsto auto-create documentationUpdate this README if needed
The system automatically generates claude-commands from tool configurations, ensuring consistency.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
MIT License - see LICENSE file for details