Gemini MCP Server

by garblesnarff

17 stars
250 downloads
Not rated
GitHub

About

Bridges Claude Desktop with Google's Gemini for seamless, configurable image generation via a JSON-RPC protocol that enables direct conversational image creation.

Details

Author
garblesnarff
Repository
Garblesnarff/gemini-mcp-server
GitHub stars
17
Downloads
250
License
MIT License
Categories
Cloud Service, AI, Other, Productivity, Developer Tools, Design, Media, Infrastructure, Frontend
Tags
#anthropic, #integration

- 7 AI tools: image generation, editing, chat, audio transcription, code execution, video analysis, image analysis
- Smart Tool Intelligence: self-learning context detection and prompt enhancement
- Persistent memory of preferences across sessions with automatic migration
- Verbatim audio transcription mode capturing filler words and emotions
- Secure sandboxed Python code execution
- Supports multiple file types with defined size limits (images/audio 20MB, video 100MB)

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 MCP Server
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /path/to/gemini-mcp-server/gemini-server.js
    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 your Gemini API key from Google AI Studio
2. Copy the environment template:

   cp .env.example .env

3. Edit .env and add your API key:
   GEMINI_API_KEY=your_actual_api_key_here
OUTPUT_DIR=/path/to/your/output/directory # Optional
DEBUG=false # Optional

npm start

bash
git clone https://github.com/Garblesnarff/gemini-mcp-server.git
cd gemini-mcp-server
npm install
npm run dev
```

generate_image

Generate images from text descriptions using Gemini 2.0 Flash. Parameters: prompt (string, required), context (string, optional)

gemini-edit-image

Edit existing images using natural language instructions. Parameters: image_path (string, required), edit_instruction (string, required), context (string, optional)

gemini-chat

Interactive conversations with Gemini AI that learns your preferences. Parameters: message (string, required), context (string, optional)

gemini-transcribe-audio

Convert audio files to text with Smart Tool Intelligence enhancement. Parameters: file_path (string, required), language (string, optional), context (string, optional), preserve_spelled_acronyms (boolean, optional)

gemini-code-execute

Execute Python code in a secure sandbox environment. Parameters: code (string, required), context (string, optional)

gemini-analyze-video

Analyze video content for summaries, transcripts, and detailed insights. Parameters: file_path (string, required), analysis_type (string, optional), context (string, optional)

gemini-analyze-image

Extract detailed information from images including objects, text, and descriptions. Parameters: file_path (string, required), analysis_type (string, optional), context (string, optional)

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "gemini mcp server": {
            "env": {
                "GEMINI_API_KEY": "your_api_key_here"
            },
            "args": [
                "/path/to/gemini-mcp-server/gemini-server.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "GEMINI_API_KEY": "your_api_key_here"
    },
    "args": [
        "/path/to/gemini-mcp-server/gemini-server.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "GEMINI_API_KEY": "your_api_key_here"
    },
    "args": [
        "/path/to/gemini-mcp-server/gemini-server.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "GEMINI_API_KEY": "your_api_key_here"
    },
    "args": [
        "/c",
        "node",
        "/path/to/gemini-mcp-server/gemini-server.js"
    ],
    "command": "cmd"
}

Gemini MCP Server with Smart Tool Intelligence

Welcome to the Gemini MCP Server, the first MCP server with Smart Tool Intelligence - a revolutionary self-learning system that adapts to your preferences and improves over time. This comprehensive platform provides 7 AI-powered tools with automatic prompt enhancement and context awareness.

🚀 Features Overview

🤖 7 AI-Powered Tools

- Image Generation - Create images from text prompts using Gemini 2.0 Flash - Image Editing - Edit existing images with natural language instructions - Chat - Interactive conversations with context-aware responses - Audio Transcription - Convert audio to text with optional verbatim mode - Code Execution - Run Python code in a secure sandbox environment - Video Analysis - Analyze video content for summaries, transcripts, and insights - Image Analysis - Extract objects, text, and detailed descriptions from images

🧠 Smart Tool Intelligence System (First in MCP Ecosystem)

- Self-Learning - Automatically learns from successful interactions - Context Detection - Recognizes consciousness research, coding, debugging contexts - Pattern Recognition - Identifies usage patterns and user preferences - Prompt Enhancement - Refines prompts for better AI model performance - Persistent Memory - Stores learned preferences across sessions - Automatic Migration - Seamlessly upgrades preference storage

📦 Quick Start

Installation

git clone https://github.com/Garblesnarff/gemini-mcp-server.git
cd gemini-mcp-server
npm install

Configuration

1. Get your Gemini API key from Google AI Studio
2. Copy the environment template:

   cp .env.example .env

3. Edit .env and add your API key:
   GEMINI_API_KEY=your_actual_api_key_here
OUTPUT_DIR=/path/to/your/output/directory # Optional
DEBUG=false # Optional

Running the Server

```bash
npm start

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.