MCP Image logo

MCP Image

Generates and edits images through Gemini, OpenAI, or Seedream with prompt enhancement, quality presets, and MCP file output.

Install MCP Image

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "IMAGE_PROVIDER": "YOUR_VALUE_HERE",
        "GEMINI_API_KEY": "YOUR_VALUE_HERE",
        "OPENAI_API_KEY": "YOUR_VALUE_HERE",
        "ARK_API_KEY": "YOUR_VALUE_HERE",
        "IMAGE_OUTPUT_DIR": "YOUR_VALUE_HERE",
        "IMAGE_QUALITY": "YOUR_VALUE_HERE",
        "SKIP_PROMPT_ENHANCEMENT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

mcp-image generates and edits images through an MCP-compatible client, using Gemini by default or OpenAI and BytePlus Seedream as alternatives. It expands brief image requests with visual direction such as composition, lighting, and camera angle before sending them to the selected provider. Generated files are saved to a configured directory and returned to the assistant as MCP resources. Use it for image creation, edits from local files, provider-specific generation, and requests that benefit from consistent characters, image blending, or optional Google Search grounding.

Use cases

  • Generate product photos for websites and catalogs
  • Edit an existing image from an absolute file path
  • Create scenes with controlled aspect ratios and output sizes
  • Blend visual elements into a new composition
  • Maintain a character’s appearance across images

Key features

  • Prompt enhancement for composition, lighting, and camera direction
  • Gemini, OpenAI, and BytePlus Seedream provider support
  • Image generation and editing from local input files
  • Fast, balanced, and quality presets
  • Aspect-ratio and image-size controls
  • Optional character consistency and Google Search grounding

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

16/16 checks healthy over the last 55d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · mcp-image (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars188Stargazers on the source repository.
npm downloads8kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Directory activity13 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Image works

What mcp-image does

mcp-image gives an MCP client a single image-generation and editing workflow backed by Gemini, OpenAI, or BytePlus Seedream. Its main operation, generate_image, accepts a text description or editing instruction and can also take one or more absolute paths to existing images. Results are written to disk and exposed back to the assistant as an MCP resource.

Short requests are normally expanded before generation. The server preserves the requested subject and intent while adding visual details such as composition, lighting, camera position, depth of field, and other scene direction. Set SKIP_PROMPT_ENHANCEMENT=true when the original prompt should be sent unchanged.

How it works

The server runs as a standard MCP process, commonly launched with npx -y mcp-image. The client invokes generate_image, and the server selects the provider from the request or from IMAGE_PROVIDER. A request-level provider takes precedence over the environment default.

The tool can create a new image or modify source images supplied through inputImagePaths. Optional controls include aspect ratio, output size, output filename, quality preset, image blending guidance, character consistency, world knowledge, and intended purpose. Gemini requests can also enable Google Search grounding for current information.

The generated file is saved under IMAGE_OUTPUT_DIR. If that setting is omitted, the default location is ./output relative to the MCP process working directory, which can vary by client.

Setup and configuration

Node.js 22 or later and an MCP-compatible client are required. Configure one provider API key in the client’s MCP environment:

  • Gemini uses GEMINI_API_KEY and is the default provider. It supports 1K, 2K, and 4K output sizes.
  • OpenAI uses IMAGE_PROVIDER=openai and OPENAI_API_KEY. It supports 1K, 2K, and 4K sizes, with PNG or JPEG selected through the output filename.
  • BytePlus Seedream uses IMAGE_PROVIDER=seedream and ARK_API_KEY. It supports 1K and 2K sizes, also with PNG or JPEG output selection.

Set IMAGE_OUTPUT_DIR to an absolute path in MCP client configuration. The default quality is fast; IMAGE_QUALITY also accepts balanced and quality. These presets can be overridden per request. Higher settings may take longer and cost more, depending on the provider.

Codex and Cursor configurations launch the package with npx -y mcp-image, while Claude Code can register the same command with claude mcp add. Restart the MCP client after changing its configuration. A local checkout can be built with pnpm install followed by pnpm run build, then launched from dist/index.js.

Tools and capabilities

The generate_image tool supports:

  • New image generation and edits based on local input images.
  • Provider and quality selection for each request.
  • Output names and PNG or JPEG selection where supported.
  • Aspect ratios from square and portrait formats through wide formats such as 21:9, plus several panoramic ratios.
  • 1K, 2K, and 4K image-size requests where the selected provider supports them.
  • Blending guidance for combining visual elements.
  • Character-appearance consistency across images.
  • Additional context for historical figures, landmarks, and factual scenes.
  • Gemini-only Google Search grounding.
  • A purpose value, such as a cookbook cover or social media post, to inform prompt enhancement.

Limitations and notes

Provider capabilities differ. Gemini is the only provider with Google Search grounding, and image-size availability varies between providers. OpenAI may require organization verification before image generation is enabled. Input image paths must be absolute, and the selected provider’s API key must be available in the MCP server environment.

The default aspect ratio is 1:1. Supported output extensions are .png, .jpg, and .jpeg; the extension controls the format for OpenAI and Seedream. API keys should be kept out of version control.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Image

mcp-image is an MCP server that connects AI assistants to Gemini, OpenAI, and BytePlus Seedream for image generation and editing. Its main tool, generate_image, enhances prompts, accepts optional input image paths, applies quality and composition controls, saves results to disk, and returns them to the assistant as MCP resources.

Install it through the MCP client with `npx -y mcp-image`; Node.js 22 or later is required. Configure one provider API key and an output directory, then restart the client. A local checkout can instead be built with `pnpm install` and `pnpm run build`.

mcp-image supports Gemini, OpenAI, and BytePlus Seedream. Gemini is the default and uses `GEMINI_API_KEY`; OpenAI uses `OPENAI_API_KEY` with `IMAGE_PROVIDER=openai`; Seedream uses `ARK_API_KEY` with `IMAGE_PROVIDER=seedream`.

Give the assistant an absolute path to the source image and describe the change, or pass the path through `inputImagePaths` in `generate_image`. The server sends the editing instruction to the selected image provider and saves the resulting file in the configured output directory.

Yes. Add it to Cursor’s global `~/.cursor/mcp.json` or a project’s `.cursor/mcp.json`, using `npx -y mcp-image` and the required provider environment variables. Restart Cursor after changing the MCP configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Image AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-image?style=directory)](https://allmcps.com/mcp/mcp-image)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-image"><img src="https://allmcps.com/api/badge/mcp-image?style=directory" alt="MCP Image on AllMCPs" /></a>