# mcp-image [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/shinpr/mcp-image  
**GitHub Stars:** 196  
**npm Downloads (last month):** 7419  
**Views:** 15  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-image

## Description
AI image generation and editing with prompt optimization and quality presets. Powered by Nano Banana

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — Generate a new image from a text prompt or edit and combine reference images using inputImagePaths. Saves the result and returns a file resource. Prompt enhancement expands these arguments into the final image prompt without seeing the conversation, filling in the details they leave open, so pass the user's intent as they gave it; anything you add is expanded too. When a guess at the image's purpose or style would likely miss what the user needs, ask them first.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-image": {
    "command": "npx",
    "args": ["-y","mcp-image"],
    "env": {
      "IMAGE_PROVIDER": "",
      "GEMINI_API_KEY": "",
      "OPENAI_API_KEY": "",
      "ARK_API_KEY": "",
      "IMAGE_OUTPUT_DIR": "",
      "IMAGE_QUALITY": "",
      "SKIP_PROMPT_ENHANCEMENT": ""
    }
  }
}
```

**Requires environment variables:** `IMAGE_PROVIDER`, `GEMINI_API_KEY`, `OPENAI_API_KEY`, `ARK_API_KEY`, `IMAGE_OUTPUT_DIR`, `IMAGE_QUALITY`, `SKIP_PROMPT_ENHANCEMENT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-image does

mcp-image gives MCP-compatible assistants an image generation and editing tool named `generate_image`. Requests can describe a new image or instruct the tool to change an existing file. Generated files are written to disk and returned to the assistant as MCP resources.

The server can expand brief prompts with visual direction while preserving the requested subject and any text intended to appear in the image. It considers the stated purpose and image category when adding details such as composition, lighting, camera angle, or layout. Set `SKIP_PROMPT_ENHANCEMENT=true` when the original prompt should be sent unchanged.

Three providers are supported:

- Gemini, the default, with 1K, 2K, and 4K image sizes
- OpenAI, with 1K, 2K, and 4K output and PNG or JPEG support
- BytePlus Seedream, with 1K and 2K output and PNG or JPEG support

## How it works

Run the package as an MCP process through a client configuration using `npx -y mcp-image`, or build the repository locally and start its compiled entry point. The client sends a prompt and optional generation parameters to `generate_image`. For edits, provide absolute paths in `inputImagePaths`.

A request can choose a provider and quality level independently of the server defaults. The tool also accepts an output filename, aspect ratio, image size, blending guidance, character-consistency guidance, purpose, category, and world-knowledge options. Google Search grounding is available only with Gemini and can be enabled with `useGoogleSearch`.

## Setup and configuration

Node.js 22 or later and an API key for at least one image provider are required. Set `GEMINI_API_KEY` for Gemini, `OPENAI_API_KEY` and `IMAGE_PROVIDER=openai` for OpenAI, or `ARK_API_KEY` and `IMAGE_PROVIDER=seedream` for Seedream. Provider selection can also be passed on an individual request.

Set `IMAGE_OUTPUT_DIR` to control where files are saved. An absolute path is recommended in MCP configuration because the client determines the server working directory; otherwise output defaults to `./output`. `IMAGE_QUALITY` accepts `fast`, `balanced`, or `quality`, with `fast` as the default. Higher settings may take longer and cost more. Restart the MCP client after changing its configuration.

Codex and Cursor use stdio configuration entries that launch the package with `npx`. Claude Code can register the same command with `claude mcp add`. Keep provider keys out of version control.

## Tools and capabilities

`generate_image` supports:

- New image generation and edits using one or more absolute input paths
- Gemini, OpenAI, and Seedream provider selection
- `fast`, `balanced`, and `quality` presets
- Aspect ratios from square and portrait formats through wide, panoramic, and tall ratios
- Provider-dependent 1K, 2K, and 4K image sizes
- PNG or JPEG selection for OpenAI and Seedream through the output filename
- Image blending and character-consistency instructions
- Purpose and category hints for prompt enhancement
- Optional Gemini Google Search grounding

## Limitations and notes

Image size availability depends on the selected provider. Google Search grounding is limited to Gemini. OpenAI image generation may require organization verification. The assistant should provide absolute source paths for image editing, and an absolute output directory avoids ambiguity between client working directories.

_Full upstream README: https://allmcps.com/mcp/mcp-image/readme_

