Gemini

by aliargun

159 stars
932 downloads
Not rated
GitHub

About

Integrates Google's Gemini AI models enabling real-time response streaming and LLM processing capabilities.

Details

Author
aliargun
Repository
aliargun/mcp-server-gemini
GitHub stars
159
Downloads
932
License
MIT License
Categories
Cloud Service, AI, Other, Productivity, Developer Tools, Design, Community, Communication, API, Infrastructure

- 6 Powerful Tools: Text generation, image analysis, token counting, model listing, embeddings, and self-documenting help
- Latest Gemini Models: Support for Gemini 2.5 series with thinking capabilities
- Advanced Features: JSON mode, Google Search grounding, system instructions, conversation memory
- Full MCP Protocol: Standard stdio communication for seamless integration with any MCP client
- Self-Documenting: Built-in help system - no external docs needed
- TypeScript & ESM: Modern, type-safe implementation

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Gemini
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 github:aliargun/mcp-server-gemini
    Environment
    • GEMINI_API_KEY your_api_key_here

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Get Gemini API Key
- Visit Google AI Studio
- Create a new API key
- IMPORTANT: Keep your API key secure and never commit it to version control

2. Configure Your MCP Client

<details>
<summary><b>Claude Desktop</b></summary>

Config location:
- Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
- Linux: ~/.config/Claude/claude_desktop_config.json

   {
     "mcpServers": {
       "gemini": {
         "type": "stdio",
         "command": "npx",
         "args": ["-y", "github:aliargun/mcp-server-gemini"],
         "env": {
           "GEMINI_API_KEY": "your_api_key_here"
         }
       }
     }
   }
   
</details>

<details>
<summary><b>Cursor</b></summary>

Add to Cursor's MCP settings:

   {
"gemini": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:aliargun/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}

</details>

<details>
<summary><b>Windsurf</b></summary>

Configure in Windsurf's MCP settings following their documentation.
</details>

<details>
<summary><b>Other MCP Clients</b></summary>

Use the standard MCP stdio configuration:

   {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:aliargun/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}

</details>

3. Restart Your MCP Client

npm install

cp .env.example .env

explain_quantum_computing

Use Gemini to explain the concept of quantum computing.

analyze_image

Analyze a specified image using Gemini's capabilities.

list_gemini_models

Retrieve a list of all available Gemini models.

get_help

Obtain help on using Gemini and its features.

review_code

Use Gemini 2.5 Pro with specified temperature to review a piece of code.

extract_key_points

Use Gemini in JSON mode to extract key points based on a provided schema.

research_quantum_computing

Use Gemini with grounding to conduct research on the latest developments in quantum computing.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "gemini": {
            "env": {
                "GEMINI_API_KEY": "your_api_key_here"
            },
            "args": [
                "-y",
                "github:aliargun/mcp-server-gemini"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": {
        "GEMINI_API_KEY": "your_api_key_here"
    },
    "args": [
        "-y",
        "github:aliargun/mcp-server-gemini"
    ],
    "command": "npx"
}

Macos

{
    "env": {
        "GEMINI_API_KEY": "your_api_key_here"
    },
    "args": [
        "-y",
        "github:aliargun/mcp-server-gemini"
    ],
    "command": "npx"
}

Windows

{
    "env": {
        "GEMINI_API_KEY": "your_api_key_here"
    },
    "args": [
        "/c",
        "npx",
        "-y",
        "github:aliargun/mcp-server-gemini"
    ],
    "command": "cmd"
}

Gemini MCP Server

smithery badge
npm version
License: MIT
TypeScript
MCP Version

A powerful MCP (Model Context Protocol) server that brings Google's latest Gemini AI models to your favorite development environment. Access Gemini 2.5's thinking capabilities, vision analysis, embeddings, and more through a seamless integration.

πŸš€ Works with: Claude Desktop, Cursor, Windsurf, and any MCP-compatible client
🎯 Why use this: Get Gemini's cutting-edge AI features directly in your IDE with full parameter control
πŸ“š Self-documenting: Built-in help system means you never need to leave your editor

Features

- 6 Powerful Tools: Text generation, image analysis, token counting, model listing, embeddings, and self-documenting help
- Latest Gemini Models: Support for Gemini 2.5 series with thinking capabilities
- Advanced Features: JSON mode, Google Search grounding, system instructions, conversation memory
- Full MCP Protocol: Standard stdio communication for seamless integration with any MCP client
- Self-Documenting: Built-in help system - no external docs needed
- TypeScript & ESM: Modern, type-safe implementation

Supported Models

| Model | Context | Features | Best For |
|-------|---------|----------|----------|
| gemini-2.5-pro | 2M tokens | Thinking, JSON, Grounding | Complex reasoning |
| gemini-2.5-flash ⭐ | 1M tokens | Thinking, JSON, Grounding | General use |
| gemini-2.5-flash-lite | 1M tokens | Thinking, JSON | Fast responses |
| gemini-2.0-flash | 1M tokens | JSON, Grounding | Standard tasks |
| gemini-1.5-pro | 2M tokens | JSON | Legacy support |

Quick Start

1. Get Gemini API Key
- Visit Google AI Studio
- Create a new API key
- IMPORTANT: Keep your API key secure and never commit it to version control

2. Configure Your MCP Client

<details>
<summary><b>Claude Desktop</b></summary>

Config location:
- Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
- Linux: ~/.config/Claude/claude_desktop_config.json

   {
     "mcpServers": {
       "gemini": {
         "type": "stdio",
         "command": "npx",
         "args": ["-y", "github:aliargun/mcp-server-gemini"],
         "env": {
           "GEMINI_API_KEY": "your_api_key_here"
         }
       }
     }
   }
   
</details>

<details>
<summary><b>Cursor</b></summary>

Add to Cursor's MCP settings:

   {
"gemini": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:aliargun/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}

</details>

<details>
<summary><b>Windsurf</b></summary>

Configure in Windsurf's MCP settings following their documentation.
</details>

<details>
<summary><b>Other MCP Clients</b></summary>

Use the standard MCP stdio configuration:

   {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:aliargun/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}

</details>

3. Restart Your MCP Client

How to Use

Once configured, you can use natural language in your MCP client to access Gemini's capabilities:

Basic Commands

"Use Gemini to explain quantum computing"
"Analyze this image with Gemini" 
"List all Gemini models"
"Get help on using Gemini"

Advanced Examples

"Use Gemini 2.5 Pro with temperature 0.3 to review this code"
"Use Gemini in JSON mode to extract key points with schema {title, summary, tags}"
"Use Gemini with grounding to research the latest in quantum computing"

πŸ“– See the complete Usage Guide for detailed examples and advanced features.

Why Gemini MCP Server?

- Access Latest Models: Use Gemini 2.5 with thinking capabilities - Google's most advanced models
- Full Feature Set: All Gemini API features including JSON mode, grounding, and system instructions
- Easy Setup: One-line npx installation, no complex configuration needed
- Production Ready: Comprehensive error handling, TypeScript types, and extensive documentation
- Active Development: Regular updates with new Gemini features as they're released

Documentation

- Usage Guide - Complete guide on using all tools and features
- Parameters Reference - Detailed documentation of all parameters
- Quick Reference - Quick commands cheat sheet
- Enhanced Features - Detailed list of v4.0.0 capabilities
- 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

```bash

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.