GeminiMCP
Verified Safeby chew-z
Overview
Integrate Google's Gemini API for AI-powered tasks and search with Model Control Protocol (MCP) clients, focusing on developer-centric features like code analysis and context handling.
Installation
./bin/mcp-geminiEnvironment Variables
- GEMINI_API_KEY
Security Notes
The server handles API keys and JWT secrets via environment variables. Local file access via `file_paths` is restricted to `stdio` transport and includes robust path traversal and symlink checks. CORS defaults to `*` for HTTP transport, which is a production security risk, but this is explicitly warned about in the README with clear configuration instructions. JWT authentication for HTTP is implemented, though the `GEMINI_AUTH_SECRET_KEY` length is only warned about (not enforced as an error) if less than 32 characters, which is a minor weakness. Input to prompts (e.g., `problem_statement`) is HTML-escaped to prevent prompt injection into the generated instructions. No 'eval' or direct malicious code patterns were found.
Similar Servers
gemini-mcp-tool
A Model Context Protocol (MCP) server that enables AI assistants to interact with the Google Gemini CLI for comprehensive code and file analysis, structured edit suggestions, and creative brainstorming.
gemini-mcp-server
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.
Ops-Tools
A Rust-based command-line interface (CLI) toolset designed for DevOps workflows, offering features like infrastructure-as-code cache cleanup, AI code assistant management, system package installation, security scanning, LLM prompt generation, container image building, and Kubernetes configuration management.
gemini-mcp-rs
A high-performance Rust MCP server that enables AI-driven tasks by wrapping the Gemini CLI, facilitating integration with MCP-compatible clients like Claude Code.