# MCP Image Generator

> Optimize prompts for image generation and editing.

- **URL**: https://followmcp.com/en/servers/mcp-image
- **Category**: Other
- **Origin**: Community
- **Stars**: 198
- **FMRS Score**: 58/100 (Grade C)
- **Source**: https://github.com/shinpr/mcp-image
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 22+
- **Auth**: API key / credential required

## Overview
MCP Image Generator is an MCP server for generating and editing images through an MCP client. It can optimize prompts and supports Gemini, OpenAI, and BytePlus Seedream. Generated images are saved to a configured directory and returned as MCP resources.

## Best for
- Users who want to generate or edit images through an MCP client and have visual prompt details added automatically.
- Users willing to configure an API key for Gemini, OpenAI, or BytePlus Seedream.

## Not for
- Users who need image generation without an external image provider API key.
- Users who need capabilities beyond image generation and editing.

## Required permissions
- Requires the selected provider's API key in the server environment: GEMINI_API_KEY, OPENAI_API_KEY, or ARK_API_KEY.
- Requires permission to write generated images to IMAGE_OUTPUT_DIR; the default is ./output relative to the working directory.
- For editing, the server needs to read the files at the supplied input image paths.

## Risks
- Image generation and editing requests are sent to the selected external image provider; the source does not describe data retention or privacy practices.
- Higher quality presets may take longer and cost more; results vary by provider.
- Input images must be no larger than 10 MiB each; Seedream editing accepts PNG and JPEG only.

## Client config (JSON)
```json
{"mcpServers":{"mcp-image":{"command":"npx","args":["-y","mcp-image"],"env":{"GEMINI_API_KEY":"your_gemini_api_key_here","IMAGE_OUTPUT_DIR":"/absolute/path/to/images"}}}}
```

## Tools (1)
- `generate_image`: Generate an image from a prompt or edit images using input image paths; options include provider, quality, size, aspect ratio, and other image controls.
