Back to Home
trustspirit icon

mcp

Verified Safe

by trustspirit

Overview

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.

Installation

Run Command
docker run -i --rm -e GEMINI_API_KEY=your-api-key gemini-mcp

Environment Variables

  • GEMINI_API_KEY
  • MCP_MODE
  • PORT

Security Notes

The server correctly loads API keys from environment variables and does not appear to contain 'eval' or other dynamic code execution vulnerabilities. It uses standard Node.js and Google Generative AI SDKs. CORS is enabled, which is acceptable for local client integration but would require stricter origin control if exposed publicly. Notably, the Gemini safety settings are configured to 'BLOCK_NONE' for all harm categories, meaning the model will not proactively block potentially harmful content. This is a configuration choice for AI output, not a vulnerability in the server's code, but users should be aware of this setting.

Similar Servers

Stats

Interest Score26
Security Score9
Cost ClassHigh
Avg Tokens500
Stars1
Forks0
Last Update2026-01-07

Tags

Gemini APIModel Context ProtocolAINode.jsDocker