Back to Home
pietrozullo icon

image_gen_mcp

Verified Safe

by pietrozullo

Overview

Generate and transform images using Google's Gemini AI model through the MCP protocol.

Installation

Run Command
python server.py

Environment Variables

  • GEMINI_API_KEY
  • PORT
  • MCP_URL
  • IMAGE_STORAGE_DIR
  • GEMINI_IMAGE_MODEL
  • IMAGE_TTL_SECONDS
  • CLEANUP_INTERVAL_SECONDS

Security Notes

The server implements good security practices including loading API keys from environment variables, robust validation for uploaded and remote images (size, format, type), and protection against directory traversal for served images. It also converts uploaded images to PNG which can strip potentially malicious metadata. The `0.0.0.0` host binding is standard for cloud deployments but requires external network configuration (firewall/proxy) in production.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2026-01-18

Tags

GeminiImage GenerationImage TransformationAIMCP