image.serv
Verified Safeby jenreh
Overview
Provides an AI-powered server for generating and editing images from text prompts using OpenAI and Google models, accessible via both MCP and REST APIs.
Installation
uv run python -m server.serverEnvironment Variables
- OPENAI_API_KEY
- OPENAI_BASE_URL
Security Notes
The server uses environment variables for API keys, preventing hardcoded secrets. It employs a layered architecture which aids in maintainability and potential security reviews. However, the `url_to_bytes` utility function accepts arbitrary URLs for image input, which could pose a Server-Side Request Forgery (SSRF) risk if not properly restricted in a production environment (e.g., to prevent access to internal network resources). Additionally, the `/_upload` endpoint, used for serving generated images, mounts a temporary directory (`TMP_PATH`) using FastAPI's `StaticFiles` with `check_dir=False`. While generated filenames are unique (UUID-based) which mitigates direct path traversal, careful consideration is needed to ensure the `TMP_PATH` has appropriate permissions and is not exposed beyond its intended use.
Similar Servers
nanobanana-api-mcp
An MCP server providing image generation and editing capabilities via the Google Gemini API, integrable with various AI coding assistants and IDEs.
imgenx
AI image and video generation and processing, functioning as a command-line tool or MCP server.
image-gen-mcp-server
This repository functions as a landing page and documentation for an AI image generation plugin that unifies multiple AI image providers through a single interface for Claude Code users.
fal-reve-edit-mcp-server
Facilitates text-to-image generation and image editing using the FAL AI Reve model via the Model Context Protocol.