Gemini MCP Server
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
- Repository
- Garblesnarff/gemini-mcp-server
- License
- MIT
Explore
- 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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Gemini MCP ServerCommand (node, npx, python, etc.)nodeArguments-
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.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
git clone https://github.com/Garblesnarff/gemini-mcp-server.git
cd gemini-mcp-server
npm install
npm start
bashgit 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)
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.
- 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
- 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
Want to add this revolutionary capability to your own MCP server? Here's how:
1. Create tool file in src/tools/my-new-tool.js
2. Extend BaseTool class
3. Implement execute method with intelligence integration
4. Register in src/tools/index.js
// src/tools/my-new-tool.js
class MyNewTool extends BaseTool {
constructor(geminiService, intelligenceSystem) {
super('my-new-tool', 'Description of my tool', geminiService, intelligenceSystem);
}
async execute(args) {
// Use intelligence system for enhancement
const context = args.context || this.detectContext(args.input);
const enhancedPrompt = await this.enhancePrompt(args.input, context);
// Your tool logic here
const result = await this.geminiService.someMethod(enhancedPrompt);
// Store successful pattern
await this.storeSuccessfulPattern(args.input, enhancedPrompt, context);
return result;
}
}
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"
}
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



