Enables calling Gemini models through an OpenAI-compatible API, providing tools for deep analysis, brainstorming, code review, and general queries using Gemini's language models.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Claude Code Gemini MCPbrainstorm 5 ideas for a new productivity app with gamification elements"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude Code Gemini MCP
MCP Server that enables Claude Code to call Gemini models through OpenAI-compatible API.
Installation
Configuration
Environment Variables
Variable | Description | Required |
| Your API key | Yes |
| API endpoint (OpenAI-compatible) | Yes |
| Model ID (default: | No |
Claude Code Integration
Add to your project's .mcp.json:
Or add to global settings (~/.claude/settings.json).
Available Tools
gemini_think
Deep analysis and reasoning for complex problems.
Parameters:
problem(string, required) - The problem to analyzecontext(string, optional) - Background informationthinkingStyle(string, optional) - One of:analytical,creative,critical,systematic
gemini_brainstorm
Generate multiple creative ideas with pros and cons.
Parameters:
topic(string, required) - The topic to brainstormconstraints(string, optional) - Constraints or requirementscount(number, optional) - Number of ideas, 3-10 (default: 5)
gemini_review
Code, architecture, security, or performance review.
Parameters:
content(string, required) - Content to reviewreviewType(string, required) - One of:code,architecture,security,performancefocus(string, optional) - Specific aspects to focus on
gemini_query
General purpose query with full control.
Parameters:
prompt(string, required) - The prompt to sendsystemPrompt(string, optional) - System prompttemperature(number, optional) - 0-2 (default: 0.7)
Testing
Development
License
MIT