mcp-image
Verified Safeby shinpr
Overview
AI image generation and editing using Google Gemini 3 Pro Image (Nano Banana Pro), with intelligent prompt optimization using Gemini 2.0 Flash, integrated as an MCP server for AI assistants like Codex, Cursor, and Claude Code.
Installation
npx -y mcp-imageEnvironment Variables
- GEMINI_API_KEY
- IMAGE_OUTPUT_DIR
- SKIP_PROMPT_ENHANCEMENT
Security Notes
The server includes a dedicated `SecurityManager` to prevent common file-related vulnerabilities like path traversal (`..`), null byte injection (`\0`), and ensures file operations are confined to allowed directories (current working directory, IMAGE_OUTPUT_DIR, /tmp). Input parameters are extensively validated (prompt length, image size up to 10MB, supported MIME types, aspect ratios). Environment variables, including the API key, are securely loaded, and sensitive data is actively redacted in logs. External API calls to Google's Gemini are handled with comprehensive error management. No `eval` or code obfuscation was detected.
Similar Servers
awesome-mcp-servers
A central directory for discovering and referencing various Model Context Protocol (MCP) servers, clients, and frameworks for AI agents.
keyboard-local
Enables AI clients to execute real-world tasks through connected third-party tools (APIs, CLIs, SDKs) with human approval, leveraging a secure GitHub Codespace environment.
Accurate-Cyber-Box-Alpha
Accurate-Cyber-Box is an advanced cybersecurity tool designed for penetration testing, cyber drills, real-time network monitoring, and incident response, integrated with MCP servers and Telegram for enhanced communication and control.
mcp-server-weixin
Provides a service for AI systems to send templated messages to WeChat public account users.