Back to Home
Garblesnarff icon

gemini-mcp-server

by Garblesnarff

Overview

An MCP server providing a suite of 7 AI-powered tools (Image Gen/Edit, Chat, Audio Transcribe, Code Execute, Video/Image Analysis) powered by Google Gemini, featuring a self-learning "Smart Tool Intelligence" system for prompt enhancement and user preference adaptation.

Installation

Run Command
npx gemini-mcp-server

Environment Variables

  • GEMINI_API_KEY
  • OUTPUT_DIR
  • DEBUG
  • DEBUG_ADVANCED_IMAGE
  • OPENROUTER_API_KEY
  • USE_OPENROUTER_FOR_ADVANCED_IMAGE

Security Notes

CRITICAL: The `config.js` file contains hardcoded fallback Google Gemini API keys. If the `GEMINI_API_KEY` environment variable is not set, these exposed keys will be used, posing a severe security risk (e.g., unauthorized access, quota abuse). CRITICAL: Several tools (e.g., Image Analysis, Audio Transcription, Image Editing, Video Analysis, File Upload) take `file_path` as a direct argument and use it in file system operations without sufficient path sanitization or validation for absolute paths. This creates a significant path traversal vulnerability, potentially allowing an attacker to read, write, or delete arbitrary files on the server. Network risks involve outbound calls to Google Gemini and OpenRouter APIs. While these are generally trusted, the lack of robust input validation could allow crafted file content to be processed by AI models in unintended ways.

Similar Servers

Stats

Interest Score39
Security Score2
Cost ClassMedium
Avg Tokens1000
Stars15
Forks4
Last Update2025-12-02

Tags

MCP ServerGemini AISmart Tool IntelligenceMultimodal AIAI Agent Tools