mcp-server-gemini_cli
by maan314
Overview
Provides a command-line interface and an unauthenticated HTTP API server for interacting with Google's Gemini generative AI model, enabling chat functionalities and dynamic configuration of the API key and model.
Installation
node cli.js start-serverEnvironment Variables
- GOOGLE_GEMINI_API_KEY
- PORT
Security Notes
The server features unauthenticated HTTP POST endpoints (`/set-api-key`, `/set-model`) that allow any client to set the Google Gemini API key and model used by the server. If this server is exposed to any network, an attacker can easily hijack the Gemini API key, leading to unauthorized usage and potential billing issues. The API key is persisted to a local `config.json` file, compounding the risk.
Similar Servers
gemini-cli
Provides an A2A (Agent-to-Agent) server for the Gemini CLI, enabling external agents to interact with and utilize the CLI's capabilities for executing tasks and accessing tools.
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.
GeminiMCP
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.
mcp
Integrate Google Gemini API features (text generation, chat, image analysis, web search, embeddings, image/video generation) into a Model Context Protocol (MCP) server for local or remote AI client applications.