# MCP Image

> MCP Image is an open-source MCP server for design and media. Generates and edits images with Gemini, OpenAI or Seedream after enhancing the prompt. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/shinpr/mcp-image
- **MCP Registry name:** io.github.shinpr/mcp-image
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

Before an image is sent to the model, short requests are rewritten into more specific prompts that fit the stated purpose, such as lighting and camera angle for a photo or layout for a poster. Text you want in the image stays as written, in your language, and setting SKIP_PROMPT_ENHANCEMENT turns the rewriting off.

It supports three providers with your own keys: Gemini by default, OpenAI, and BytePlus Seedream, switchable per request. A single generate_image tool takes a prompt, quality preset (fast, balanced or quality), aspect ratios from 1:1 to 21:9 and 8:1, image sizes of 1K to 4K depending on the provider, input image paths for editing, character consistency and blending options. Google Search grounding is Gemini-only, and OpenAI may need organisation verification.

Images are saved to a configured folder and returned to the assistant as an MCP resource. Node.js 22 or later is required. The package is MIT licensed.

## Features

- **Prompt enhancement:** Expands short requests with purpose-aware visual detail.
- **Three providers:** Gemini, OpenAI or Seedream.
- **Image editing:** Edit images from absolute paths.
- **Quality presets:** fast, balanced or quality.
- **Aspect ratios:** Many ratios including 21:9.
- **Character consistency:** Keep a subject's look across images.

## Good for

- Generate a product photo for a website
- Edit a photo's pose or composition
- Create a poster layout from a brief
- Produce wide cinematic landscapes

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-image --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env ARK_API_KEY='<ARK_API_KEY>' -- npx -y mcp-image
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-image --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env ARK_API_KEY='<ARK_API_KEY>' -- npx -y mcp-image
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-image]
command = "npx"
args = ["-y", "mcp-image"]
env = { GEMINI_API_KEY = "<GEMINI_API_KEY>", OPENAI_API_KEY = "<OPENAI_API_KEY>", ARK_API_KEY = "<ARK_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GEMINI_API_KEY='<GEMINI_API_KEY>' -e OPENAI_API_KEY='<OPENAI_API_KEY>' -e ARK_API_KEY='<ARK_API_KEY>' mcp-image npx -- -y mcp-image

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ARK_API_KEY": "<ARK_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `generate_image`: Generates or edits an image from a prompt with provider and quality options.

## FAQ

### Which keys do I need?

One for your chosen provider: GEMINI_API_KEY, OPENAI_API_KEY or ARK_API_KEY.

### Can I turn off prompt rewriting?

Yes, set SKIP_PROMPT_ENHANCEMENT to true.

### Where are images saved?

In IMAGE_OUTPUT_DIR, default ./output.

### What licence?

MIT.

### Is MCP Image free?

Yes. MCP Image is open source, so you can use and self-host it for free.

### How do I add MCP Image to Claude Code?

Run this command in your terminal: claude mcp add mcp-image --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env ARK_API_KEY='<ARK_API_KEY>' -- npx -y mcp-image

### What are the best alternatives to MCP Image?

The closest alternatives to MCP Image are HyperFrames by HeyGen, headroom, omniget, ffmpeg-skill and next-ai-draw-io.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/mcp-image-2
