Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyDesign and media

MCP Image Generator

Lets your AI agent generate and edit images with Gemini, OpenAI or Seedream, improving short prompts first.

187 stars on GitHubby shinprLicense MITUpdated 19 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add image -- npx -y mcp-image

What to fill in

NameWhat it isRequired
IMAGE_PROVIDERImage provider to use: 'gemini' (default), 'openai', or 'seedream'No
GEMINI_API_KEYGoogle Gemini API key for image generation when IMAGE_PROVIDER=gemini (get from https://aistudio.google.com/apikey)No
OPENAI_API_KEYOpenAI API key for image generation when IMAGE_PROVIDER=openai. Requires OpenAI organization verification to access GPT Image 2.6 (https://platform.openai.com/settings/organization/general)No
ARK_API_KEYBytePlus ModelArk AP region API key required when IMAGE_PROVIDER=seedreamNo
IMAGE_OUTPUT_DIRAbsolute or working-directory-relative path where generated images will be saved (defaults to ./output)No
IMAGE_QUALITYDefault quality preset: 'fast' (default), 'balanced', or 'quality'No
SKIP_PROMPT_ENHANCEMENTSet to 'true' to disable automatic prompt optimization and use direct promptsNo

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Generate a product photo of a ceramic coffee mug on a wooden desk.
Edit /path/to/image.jpg so the person is facing right.

What it is

This server sends your image requests to Gemini, OpenAI GPT Image or BytePlus Seedream and saves the result to a folder on your computer. Before generating, it rewrites short requests into more detailed prompts, such as adding lighting or layout, while keeping your text. You can also edit an existing image by giving its path.

What it can do

  • generate_image: create an image from a prompt
  • generate_image with input image paths: edit an existing image
  • Quality presets: fast, balanced or quality
  • Choose the provider per request: Gemini, OpenAI or Seedream
  • Set aspect ratio and image size (1K, 2K, 4K where supported)
  • Keep a character consistent across images

When to use

  • β€ΊWhen you need a product photo, poster or illustration without opening an image tool
  • β€ΊWhen you want to change an existing picture, such as turning a person to face right
  • β€ΊWhen you want to compare providers by switching between Gemini, OpenAI and Seedream

What you need

Node.js 22 or later and an API key for one provider: GEMINI_API_KEY, OPENAI_API_KEY or ARK_API_KEY for Seedream.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

The server is MIT licensed. The image providers charge their own fees, and higher quality settings can cost more.

Which providers work?

Gemini (default), OpenAI and BytePlus Seedream. Set IMAGE_PROVIDER or pass a provider on each request.

Where are images saved?

In IMAGE_OUTPUT_DIR, or ./output if unset. Use an absolute path in your MCP configuration.

Can I turn off the prompt rewriting?

Yes. Set SKIP_PROMPT_ENHANCEMENT=true to send your prompt unchanged.

What image files can I edit?

PNG, JPEG or WebP, up to 10 MiB each. Seedream editing accepts PNG and JPEG only.

Any provider limits?

Google Search grounding works with Gemini only, Seedream does not support 4K, and OpenAI may need organization verification.

If it does not work

  • β€ΊIf you see API key not found, check that the key for the chosen provider is in the server environment, then restart your client.
  • β€ΊFor input image not found, use absolute paths and make sure the server can read the file.
  • β€ΊIf a provider rejects a request, check the size options and your account quota or organization settings.

5 new skills a week. 1 minute to read.