MCP ExplorerExplorer

Mcp Server Gemini

@aliargunon 21 days ago
144 MIT
FreeCommunity
AI Systems
MCP server implementation for Google's Gemini API

Overview

What is Mcp Server Gemini

mcp-server-gemini is an implementation of the Model Context Protocol (MCP) server that allows Claude Desktop to interact with Google’s Gemini AI models.

Use cases

Use cases for mcp-server-gemini include integrating Gemini AI models into applications, enhancing user interactions with real-time responses, and developing AI-driven features within Claude Desktop.

How to use

To use mcp-server-gemini, obtain a Gemini API key from Google AI Studio, configure Claude Desktop by adding the Gemini settings to the configuration file, and then restart Claude Desktop to apply the changes.

Key features

Key features include full MCP protocol support, real-time response streaming, secure handling of API keys, configurable model parameters, and a TypeScript implementation.

Where to use

undefined

Content

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

  1. Get Gemini API Key

  2. Configure Claude Desktop

    • Locate your config file:
      Mac: ~/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:
      {
        "mcpServers": {
          "gemini": {
            "command": "npx",
            "args": [
              "-y",
              "github:aliargun/mcp-server-gemini"
            ],
            "env": {
              "GEMINI_API_KEY": "your_api_key_here"
            }
          }
        }
      }
  3. Restart Claude Desktop

Documentation

Local Development

# Clone repository
git clone https://github.com/aliargun/mcp-server-gemini.git
cd mcp-server-gemini

# Install dependencies
npm install

# Start development server
npm run dev

Contributing

Contributions are welcome! Please see our Contributing Guide.

Common Issues

  1. Connection Issues

  2. 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

Tools

No tools

Comments