MCP server for Google Gemini AI
## Gemini MCP Server: Google AI Integration The **Gemini MCP Server** connects Google Antigravity to Google's Gemini family of AI models. This integration provides access to Google's most capable models for text, code, vision, and multimodal applications. ### Why Gemini MCP? Gemini offers Google's AI excellence: - **Multimodal**: Native text, image, audio, video understanding - **Long Context**: 1M+ token context for massive documents - **Code Generation**: Strong coding capabilities - **Grounding**: Connect to Google Search for current info - **Cost Effective**: Competitive pricing ### Key Features #### 1. Text Generation ```python import google.generativeai as genai genai.configure(api_key="your-key") model = genai.GenerativeModel("gemini-1.5-pro") response = model.generate_content( "Explain microservices architecture with examples" ) print(response.text) ``` #### 2. Multimodal Input ```python import PIL.Image # Analyze images with text image = PIL.Image.open("architecture.png") response = model.generate_content([ "Describe this system architecture diagram and identify potential issues", image ]) print(response.text) ``` #### 3. Chat Conversations ```python chat = model.start_chat(history=[]) response = chat.send_message("What is dependency injection?") print(response.text) response = chat.send_message("Show me an example in Python") print(response.text) ``` ### Configuration ```json { "mcpServers": { "gemini": { "command": "npx", "args": ["-y", "@anthropic/mcp-gemini"], "env": { "GOOGLE_API_KEY": "your-api-key" } } } } ``` ### Use Cases **Code Analysis**: Analyze large codebases with Gemini's extended context window. **Diagram Understanding**: Extract information from architecture and design diagrams. **Documentation**: Generate documentation from code with visual context. The Gemini MCP Server brings Google's multimodal AI to Antigravity development.
{
"mcpServers": {
"gemini": {
"mcpServers": {
"gemini": {
"env": {
"GOOGLE_API_KEY": "YOUR_GOOGLE_API_KEY"
},
"args": [
"-y",
"mcp-server-gemini"
],
"command": "npx"
}
}
}
}
}