Gemini MCP Server
Model Context Protocol (MCP) server implementation that enables Claude Desktop to interact with Google's Gemini AI models.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
No tools |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
GEMINI_API_KEY | Yes | Your Gemini API key used to authenticate with Google's Gemini AI models. |
Gemini MCP Server
Model Context Protocol (MCP) server implementation that enables Claude Desktop to interact with Google's Gemini AI models.
Features
- Full MCP protocol support
- Real-time response streaming
- Secure API key handling
- Configurable model parameters
- TypeScript implementation
Quick Start
- Get Gemini API Key
- Visit Google AI Studio
- Create a new API key
- Configure Claude Desktop
- Locate your config file:CopyMac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json
- Add Gemini configuration:Copy{ "mcpServers": { "gemini": { "command": "npx", "args": ["-y", "github:aliargun/mcp-server-gemini"], "env": { "GEMINI_API_KEY": "your_api_key_here" } } } }
- Locate your config file:
- Restart Claude Desktop
Documentation
- Claude Desktop Setup Guide - Detailed setup instructions
- Examples and Usage - Usage examples and advanced configuration
- Implementation Notes - Technical implementation details
- Development Guide - Guide for developers
- Troubleshooting Guide - Common issues and solutions
Local Development
Contributing
Contributions are welcome! Please see our Contributing Guide.
Common Issues
- Connection Issues
- Check if port 3005 is available
- Verify internet connection
- See Troubleshooting Guide
- API Key Problems
- Verify API key is correct
- Check permissions
- See Setup Guide
Security
- API keys are handled via environment variables only
- No sensitive data is logged or stored
- Regular security updates
License
MIT
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: