Back to Home
maan314 icon

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

Run Command
node cli.js start-server

Environment 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

Stats

Interest Score0
Security Score2
Cost ClassHigh
Avg Tokens250
Stars0
Forks0
Last Update2025-12-03

Tags

GeminiAICLIServerChatbot